Opened 8 years ago
Closed 8 years ago
#1825 closed task (blessed) (fixed)
Style handbook with new O2 design
Reported by: | chriscct7 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Component: | Make (Get Involved) / P2 | Keywords: | |
Cc: |
Description
When the update to O2 was done to the make blog for meta, the template used on the homepage of that make blog wasn't copied over and as a result the side navigation bar used to navigate to all of the chapters of the handbook is missing
Attachments (1)
Change History (31)
#1
@
8 years ago
- Priority changed from normal to high
- Summary changed from Since O2 upgrade Meta Handbook is missing the sidebar to Style handbook with new O2 design
- Type changed from defect to task
#2
@
8 years ago
I can help here. I don't have much experience contributing yet, but I have the skill set to write the CSS based on the mockups. Let me know what I can do.
#4
follow-up:
↓ 5
@
8 years ago
[3687] added template handling for handbook in the new o2 theme (Breathe) as well as basic styling support:
- Moved the sidebar to the left.
- Styled the handbook name link which was added to the top of the handbook pages.
- Adjusted some header spacing.
The mockups for the handbooks linked above don't cover all elements of a handbook page:
- Handbook name at top of handbook pages is omitted. I've carried over the link and its style from the P2 theme. Especially given the multi-handbook setup some sites may have, the handbook name should be present somewhere.
- Table of Contents is omitted and thus has no direction for its styling.
- I don't understand the first two mockups for the landing page. Is there not to be a sidebar for that page?
Significant styling needs at this time:
- The "chapters" sidebar widget: It only has default list styling and needs to match the mockup.
- The "Table of Content" in-page widget: It should probably look something like it does under the wporg-p2 theme, but the mockups don't provide any direction.
- The handbook page-to-page navigation links: The theme already has styling for navigation links, but the markup used by the handbook plugin is custom. We can modify the handbook plugin to output the expected classes and markup or within the theme we can duplicate/adapt the o2 styles with the existing markup. (Note: the navigation links output by the handbook plugin is used for both the p2 and o2 themes, so any changes there will need to be accounted for in the p2 theme).
@kevinwhoffman: Except for possibly the navigation links, the theme should be ready for you to make CSS and JS modifications to match the mockups. Let us know if you're still interested and have any questions.
#5
in reply to:
↑ 4
;
follow-ups:
↓ 7
↓ 11
@
8 years ago
Replying to coffee2code:
- Handbook name at top of handbook pages is omitted. I've carried over the link and its style from the P2 theme. Especially given the multi-handbook setup some sites may have, the handbook name should be present somewhere.
I agree for multi-handbooks, but for most handbooks, it should be enough to style the subnav "Handbook" item as selected.
- Table of Contents is omitted and thus has no direction for its styling.
@mapk: Can you work up a style for Table of Contents? See the Topics box here.
- I don't understand the first two mockups for the landing page. Is there not to be a sidebar for that page?
Correct. It's going to be used as more of an introduction to the handbook and the team in general. I'll write up some content for the meta handbook.
- The handbook page-to-page navigation links: The theme already has styling for navigation links, but the markup used by the handbook plugin is custom. We can modify the handbook plugin to output the expected classes and markup or within the theme we can duplicate/adapt the o2 styles with the existing markup. (Note: the navigation links output by the handbook plugin is used for both the p2 and o2 themes, so any changes there will need to be accounted for in the p2 theme).
I prefer the mocked up page-to-page navigation style to the current ones, but they're not that different, are they? Looks like a different arrow to my eye, but the rest seems to be the same.
#6
@
8 years ago
A few requests to help me get started:
- Provide a list of the CSS, JS, and PHP files that will affect these changes. I'm not sure if I am to work off of existing files or if I should provide my own CSS/JS to be merged later.
- Provide a new complete set of mockups (sounds like there is still some debate regarding ToC).
- Provide a list of example URLs to accompany each of the mockups (so I can see what they look like now vs. what they should look like).
#7
in reply to:
↑ 5
@
8 years ago
Replying to samuelsidler:
I prefer the mocked up page-to-page navigation style to the current ones, but they're not that different, are they? Looks like a different arrow to my eye, but the rest seems to be the same.
Between the mockup and the existing handbook navigation, yeah, the main difference appears to be the arrow.
But I was referring to the page-to-page navigation style that is part of the p2-breathe theme. You can see it by editing the handbook nav links via browser dev tools to replace the <nav class="handbook-navigation" role="navigation">
block with something like:
<nav class="navigation" role="navigation"> <h1 class="screen-reader-text">Handbook navigation</h1> <p class="nav-older"> <a href="https://make.wordpress.org/meta/handbook/documentation/contributing-with-git/" rel="previous"><span class="meta-nav">←</span> Contributing With Git</a> </p> <p class="nav-newer"> <a href="https://make.wordpress.org/meta/handbook/documentation/feature-plugin-treatment/" rel="next">Feature Plugin Treatment <span class="meta-nav">→</span></a> </p> </nav>
It has a visible border above and between the nav links, and the nav links fill the full height (of their block) and 1/2 width of the main content div. See the attached screenshot.
I don't mind whatever style is used; just noting that p2-breathe already has styling for nav links (that we'd just need to change our output markup to match-- or copy the CSS rules to specifically apply to the handbook nav markup -- if we wish to take advantage of them).
#11
in reply to:
↑ 5
@
8 years ago
Replying to samuelsidler:
Replying to coffee2code:
- I don't understand the first two mockups for the landing page. Is there not to be a sidebar for that page?
Correct. It's going to be used as more of an introduction to the handbook and the team in general. I'll write up some content for the meta handbook.
I'm not a fan of this aspect of the design at all. The landing page effectively becomes a splash page that requires an additional click to get to the information most people want to get at. Sure, it'll have some helpful text, but it'll largely be introductory in nature and most relevant to people new to the handbook. For those seeking specific information, they now have to go to the handbook, then click past the landing page, then click to the topic of interest. Thumbs down from me.
That said, I implemented it in [3715] so it can be seen in action.
#12
@
8 years ago
Also, the mockups lack design guidance for sites that have a submenu. For instance, see: https://make.wordpress.org/community/handbook/wordcamp-organizer/first-steps/budget-and-finances/. (Note that the "Handbooks" and "Meetups" menu items are dropdown menus.)
That page is a good source example containing elements not currently styled in the existing mockups (some previously mentioned upthread):
- Submenu (with dropdowns)
- Handbook name header (the "WordCamp Organizer Handbook" link at the top)
- Table of contents (here called "Topics")
- Subsections of the page (the
h2
headers)
This ticket was mentioned in Slack in #meta by coffee2code. View the logs.
8 years ago
This ticket was mentioned in Slack in #meta-devhub by coffee2code. View the logs.
8 years ago
This ticket was mentioned in Slack in #wptv by sam. View the logs.
8 years ago
#23
@
8 years ago
Hey @pento
So a few things, the style is off - the arrows are not on the right
https://cloudup.com/cM_h4MnSl6U as compared to the proposed http://codepen.io/mapk/pen/WRNjPy
Also the items are expanded at the get-go. Is that expected behaviour? It differs from code pen.
In the current setup, some are expanded by default and some are not.
Maybe a cache bust is needed?
#24
@
8 years ago
@Kenshino: Cache did need busting, and has now been. I believe all your concerns have been addressed as a result.
#25
@
8 years ago
@coffee2code
Thanks for the cache bust :)
The arrows are now entirely missing - https://make.wordpress.org/docs/handbook/
Yeah... we haven't gotten to styling the handbook yet. But here are the mockups, if anyone's interested. :)