More Seven Theme issues: #1986434: New visual style for Seven

Motivation

The Seven style guide is heavily being implemented in a sandbox at https://drupal.org/sandbox/ry5n/1932040. Members of the Spark team wanted to attempt to marry the proposed Overlay style from the UX team with forms changes proposed, so looking at implementing the overlay style as proposed in the style guide is needed.

Proposal

Although a sandbox issue for implementing (outside of core) prototype for overlay exists at #1945556: Add Overlay and Modal components, to attempt to marry the overlay with #1880168: Introduce top-level sections for all forms we need to build a core implementation. It can be taken and cleaned up later on and either included with the sandbox or used as one of many stepping points for the style guide to get into core.

The proposed design looks like the following:

21.overlay.png

CommentFileSizeAuthor
#93 Screen Shot 2013-10-28 at 18.50.13.png231.64 KBLewisNyman
#93 Screen Shot 2013-10-28 at 18.53.21.png232.29 KBLewisNyman
#93 Screen Shot 2013-10-28 at 18.50.30.png275.67 KBLewisNyman
#93 Screen Shot 2013-10-28 at 18.53.08.png264.31 KBLewisNyman
#91 overlay-restyle-1953374-91.patch11.03 KBLewisNyman
#91 content-header-and-tabs-and-overlay-combined-91.patch60.9 KBLewisNyman
#82 Screen Shot 2013-07-26 at 2.33.36 PM.png19.65 KBtkoleary
#82 Screen Shot 2013-07-26 at 2.33.13 PM.png16.3 KBtkoleary
#82 Screen Shot 2013-07-26 at 2.30.43 PM.png47.93 KBtkoleary
#82 Screen Shot 2013-07-26 at 2.30.33 PM.png56.12 KBtkoleary
#81 overlay-restyle-1953374-81.patch55.93 KBLewisNyman
#75 overlay-restyle-1953374-72.patch56.11 KBLewisNyman
#72 overlay-restyle-1953374-72.patch56.83 KBLewisNyman
#71 overlay-after.png14.57 KBechoz
#71 overlay-before.png15.51 KBechoz
#71 overlay-restyle-1953374-71.patch24.89 KBechoz
#70 overlay-restyle-70.patch24.86 KBLewisNyman
#66 interdiff.txt846 bytesGábor Hojtsy
#66 overlay-restyle-66.patch24.91 KBGábor Hojtsy
#63 Screenshot_6_18_13_4_20_PM.png44.05 KBGábor Hojtsy
#63 Screenshot_6_18_13_4_25_PM.png18.53 KBGábor Hojtsy
#63 overlay-restyle-62.patch25.68 KBGábor Hojtsy
#63 interdiff.txt761 bytesGábor Hojtsy
#60 Screenshot_6_18_13_2_51_PM.png39.3 KBGábor Hojtsy
#60 Screenshot_6_18_13_2_50_PM.png60.61 KBGábor Hojtsy
#59 overlay-restyle-59.patch25.81 KBGábor Hojtsy
#59 interdiff.txt516 bytesGábor Hojtsy
#58 overlay-restyle-58.patch25.74 KBGábor Hojtsy
#56 overlay-restyle-56.patch25.81 KBGábor Hojtsy
#56 interdiff.txt1.54 KBGábor Hojtsy
#53 Screenshot_6_17_13_3_15_PM.png64.77 KBGábor Hojtsy
#52 overlay-restyle-52.patch25.82 KBGábor Hojtsy
#52 interdiff.txt7.43 KBGábor Hojtsy
#51 overlay-restyle-51.patch25.55 KBGábor Hojtsy
#42 tabs.png54.99 KBry5n
#33 Screenshot_6_3_13_3_52_PM.png70.29 KBGábor Hojtsy
#32 overlay-restyle-32.patch26.44 KBGábor Hojtsy
#23 tabs-new.png9.61 KBry5n
#23 tabs-new-overlay.png14.76 KBry5n
#21 overlay-restyle-1953374-21.patch22.68 KBLewisNyman
#21 Screen Shot 2013-04-05 at 16.40.34.png156.89 KBLewisNyman
#20 interdiff_18-to-20.txt4.21 KBjessebeach
#20 overlay-restyle-1953374-20.patch23.1 KBjessebeach
#19 Screenshot_4_4_13_1_24_PM-3.png24.64 KBjessebeach
#18 Screenshot_4_4_13_6_42_PM.png47.5 KBGábor Hojtsy
#18 Screenshot_4_4_13_6_39_PM.png25.33 KBGábor Hojtsy
#18 interdiff.txt4.35 KBGábor Hojtsy
#18 seventy-eight-overlay-restyle-18.patch21.66 KBGábor Hojtsy
#14 seventy-eight-overlay-restyle-14.patch21.22 KBGábor Hojtsy
#13 close.png1.28 KBGábor Hojtsy
#13 shortcut.png5 KBGábor Hojtsy
#10 seventy-eight-overlay-restyle-9.patch22.02 KBGábor Hojtsy
#9 interdiff.txt13.8 KBGábor Hojtsy
#9 seventy-eight-overlay-restyle-9.patch0 bytesGábor Hojtsy
#9 Screenshot_3_27_13_2_50_PM.png46.57 KBGábor Hojtsy
#9 Screenshot_3_27_13_2_51_PM.png48.88 KBGábor Hojtsy
#9 Screenshot_3_27_13_2_51_PM 2.png40.54 KBGábor Hojtsy
#8 interdiff.txt6.07 KBGábor Hojtsy
#8 seventy-eight-overlay-restyle-8.patch9.29 KBGábor Hojtsy
#8 Screenshot_3_27_13_9_47_AM.png50.36 KBGábor Hojtsy
#8 Screenshot_3_27_13_9_48_AM.png59.9 KBGábor Hojtsy
#8 Screenshot_3_27_13_9_49_AM.png70.66 KBGábor Hojtsy
#3 interdiff.txt1.54 KBGábor Hojtsy
#3 seventy-eight-overlay-restyle-3.patch7.65 KBGábor Hojtsy
#3 Screenshot_3_26_13_7_49_PM.png62.09 KBGábor Hojtsy
#2 Screenshot_3_26_13_7_26_PM.png76.03 KBGábor Hojtsy
#2 Screenshot_3_26_13_7_28_PM.png111.47 KBGábor Hojtsy
#2 seventy-eight-overlay-restyle.patch7.71 KBGábor Hojtsy
#1 21.overlay.png36.07 KBGábor Hojtsy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Gábor Hojtsy’s picture

FileSize
36.07 KB

Demonstration image.

Gábor Hojtsy’s picture

Issue summary: View changes

Add overlay image

Gábor Hojtsy’s picture

Status: Active » Needs review
FileSize
7.71 KB
111.47 KB
76.03 KB

Tada! First version:

Screenshot_3_26_13_7_26_PM.png

Some notes:

- Font types and sizes from the style guide are obviously *not* applied
- Applied the style guide provided hsla(0, 0%, 42%, 0.65) for title bar background
- No radius value specified, so took 5px for edges of overlay and tabs bar
- No padding value specified, so took 15px 25px
- Attempted to align paddings for different things (eg. close button is 25px positioned inside the title bar too)
- Used "burlap" color for tabs background, assuming that is right

Missing/incorrect:

- Do not have X for close button and star image for shortcuts, so kept them as-is
- Second level tabs are still displayed as part of the page, not at top
- Tabs not yet aligned with content indentation
- Dropped bottom padding, but we surely need some(?)
- It certainly does not follow the latest and greatest CSS code style... eg. I modified the tabs CSS that I took from http://drupal.org/node/1945542 to apply the right selectors for current tabs markup instead of attempting to align Drupal's menu rendering outright :)
- Let me know everything else :D

Screenshot_3_26_13_7_28_PM.png

Gábor Hojtsy’s picture

Fixed color of tab background. Used the color that used to be the border bottom. With the border lost, I could position the tabs more easily, so they are not 1px out of line now. Also fixed the indentation so the contents are 15px indented like the tabs vs. 25px before. So tabs line up with content. The design has some fancy backgrops for tabs that the implementation in #1945542: Add Navigation Tabs did not have, so this does not have that either.

Screenshot_3_26_13_7_49_PM.png

jessebeach’s picture

jessebeach’s picture

+++ b/core/modules/overlay/overlay-child.cssundefined
@@ -36,12 +39,17 @@
 #overlay-title-wrapper {
   overflow: hidden;
+  padding: 15px;
 }
 #overlay-title {
   color: #fff;
@@ -64,75 +72,18 @@

@@ -64,75 +72,18 @@
 
 #overlay-close-wrapper {
   position: absolute;
-  right: 0; /* LTR */
+  right: 46px; /* LTR */
+  top: 18px;

As much as possible let's use ems for these types of placement and padding values.

+++ b/core/modules/overlay/overlay-tabs.cssundefined
@@ -0,0 +1,83 @@
+.secondary-tabs__item__link {
+  border-bottom: 1px solid transparent;
+  color: #0074bd;
+  display: block;
+  margin-left: 15px;
+  padding: 15px 0 5px 0;
+  text-decoration: none;
+  transition: all 0.3s;

We'll need to pull base styles apart from theme styles.

+++ b/core/modules/overlay/templates/overlay.tpl.phpundefined
@@ -24,13 +24,13 @@
+    <div id="overlay-title-wrapper" class="clearfix">
+      <h1 id="overlay-title"<?php print $title_attributes; ?>><?php print $title; ?></h1>

Let's get rid of these superfluous wrapper divs.

+++ b/core/modules/overlay/overlay-child.cssundefined
@@ -21,13 +24,13 @@
 #overlay-titlebar {
-  padding: 0 20px;

Set a solid background color for browsers that can't do hsla()

+++ b/core/modules/overlay/overlay-child.cssundefined
@@ -4,6 +4,9 @@
+/* Import working version from https://drupal.org/node/1945542 */
+@import 'overlay-tabs.css';

Is this temporary? Seems to be an end run around cache

ry5n’s picture

This is starting to shape up already. I do feel like we’re still validating the design (over in the sandbox), so I worry a little about getting into implementation details too early. On the other hand, it might be a good way to see how things integrate? On the whole, I’m happy to see this and happy to help.

One other thing: the style guide intentionally omits breadcrumbs! For some reason we neglected to highlight that fact in the proposal… and possibly no-one noticed?

Gábor Hojtsy’s picture

@jesse: the use of px stems from the tabs styles from #1945542: Add Navigation Tabs as well as the fact that the title header, the tabs and the page body use varying font sizes, so using the same or similar em sizes would not line up their first letters. Which makes me notice I did not update the positioning of the close button when I updated stuff to use 15px spacing. The 46px left position with a 26px wide close button comes down the 20px padding that was used prior. That needs to be fixed.

@ry5n: yay for removing breadcrumb :) will do.

Gábor Hojtsy’s picture

Updates:

- implemented secondary tabs on the overlay instead of in the page
- fixed positioning of the close button (note that it is 26px wide but the actual visual X is in the middle, so the positioning math does not end up, but the right edge of the circle is at the 15px spacing position from the border) - this will need to change when the actual proposed X comes anyway
- removed breadcrumb and added a 15px top-bottom padding instead to #page (otherwise the page content was running all the way against the tabs/header given that no #branding is displayed now)

I did not address Jesse's feedback yet (did not integrate tabs for ease of interdiffing (and also since it is supposed to be used for the same tabs in the admin area.

I also contacted Bojhan for images for the X and the stars for shortcuts.

Overlay with no tabs:

Screenshot_3_27_13_9_47_AM.png

Overlay with one level of tabs:

Screenshot_3_27_13_9_48_AM.png

Overlay with two levels of tabs:

Screenshot_3_27_13_9_49_AM.png

Gábor Hojtsy’s picture

Got a close image and star images from Bojhan. The close image was black so I made it white, the star images were individual, and I made them a quick sprite. The images now have my editor's metadata. I don't expect these to stay as-is so I did not bother optimising them further. The stars required changes to the regular seven shortcut actions too, so did that quickly too.

I see the bordered background thing behind the text for shortcuts is mostly gone, there were minor leftovers. However, the star itself looks good / swaps color when hovered over, the text display is pretty clumsy. The design does not really have anything for this, so I'm not sure how best to fix.

Overlay with new close button and star:

Screenshot_3_27_13_2_50_PM.png

Page which is not in shortcuts (gray star):

Screenshot_3_27_13_2_51_PM.png

Page in regular backend Seven theme with star:

Screenshot_3_27_13_2_51_PM 2.png

Gábor Hojtsy’s picture

Better than a 0 bytes patch :D

Gábor Hojtsy’s picture

Bojhan had several problems with the tabs (colors, borders, etc.) See http://drupal.org/node/1945542#comment-7226540 for chatlog. Style may be better resolved there first.

tkoleary’s picture

@gabor Hojtsy

A subtle changes that align better with the intent of the design* (bolded):

#overlay-tabs-secondary li a:active, #overlay-tabs-secondary li.active a {
border-bottom: 2px solid #0074bd;
color: #000;

}

*ry5n please correct me if I'm misinterpreting

Gábor Hojtsy’s picture

FileSize
5 KB
1.28 KB

Uploading images based on feedback from lewisnyman that it did not properly apply for him.

Gábor Hojtsy’s picture

Rerolled against current Drupal 8 head.

Status: Needs review » Needs work
Issue tags: -Usability, -sprint, -Spark

The last submitted patch, seventy-eight-overlay-restyle-14.patch, failed testing.

Gábor Hojtsy’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
Issue tags: +Usability, +sprint, +Spark

The last submitted patch, seventy-eight-overlay-restyle-14.patch, failed testing.

Gábor Hojtsy’s picture

Incorporated changes from @ry5n from #1945542: Add Navigation Tabs however most of what that did is it broke the placement of things. I needed to add a new wrapper for all of the tabs to accommodate for the system there, and otherwise carried over the suggested styles. For some reason the tabs will not take up as much as vertical space as intended though... Did not manage to track this down although probably pretty simple. @ry5n, @jbeach can you help? :)

Screenshot_4_4_13_6_42_PM.png

If you make the overflow: hidden removed from the list, it shows the items got things disappear above/below the area that can be seen.

Screenshot_4_4_13_6_39_PM.png

All I did is I incorporated ALL the changes from http://drupal.org/node/1945542#comment-7240378 from @ry5n based on the interdiff posted there. I attempted to take @tkoleary's suggestion above but that was not compatible with the latest setup from @ry5an. I did not cross-check these with Bojhan's review assuming @ry5n already did that, although he did not state that. I also did not cross-check with #1945556: Add Overlay and Modal components, I've been told that uses the same styling that the prior version of this patch did.

jessebeach’s picture

From the styleguide, it seems that the tabs don't have overhanging pieces.

Screenshot_4_4_13_1_24_PM-3.png

The image above is a screenshot from the Seven Styleguide: http://groups.drupal.org/node/283223

jessebeach’s picture

I took a shot at the CSS to make it look more like the styleguide.

LewisNyman’s picture

Bojhan mentioned on IRC that the current style looked bad with Bartik in the background, the blue does not mix well with the overlaid colors.

This patch includes a minor edit to the Bartik CSS to make the theme grayscale when the overlay loads, just as a proof of concept.

Screenshot attached

LewisNyman’s picture

Bojhan mentioned on IRC that the current style looked bad with Bartik in the background, the blue does not mix well with the overlaid colors.

This patch includes a minor edit to the Bartik CSS to make the theme grayscale when the overlay loads, just as a proof of concept.

Screenshot attached

ry5n’s picture

FileSize
14.76 KB
9.61 KB

So as I mentioned in the sandbox issue, I want to propose a simplified version of the tabs. They’ve always felt heavy on the UI chrome, with extra borders and finicky bits. And it’s causing implementation headaches. So here’s something simpler, and I think better:

updated, minimal tabs
new tabs in overlay

Observations:
- Far easier to implement
- Looks cleaner
- Is basically what we currently have on drupal.org, so I doubt the more minimal style will cause usability issues.
- Spacing between tabs could be a tiny bit tighter, but I don’t want to waste any more time in Photoshop

jessebeach’s picture

I really like the simplification of the visual ornaments in #23.

tkoleary’s picture

@ry5n

Looks much better. Great work.

jessebeach’s picture

falcon03 asks that we move the tabs inside the #overlay-content div.

Finally, just a question: could we move tabs into the div that the "overlay-content" ID is assigned to?

#1964880-2: Convert the Overlay close button from an anchor element to a button element.

jessebeach’s picture

Issue summary: View changes

Updated issue summary.

Bojhan’s picture

Now part of #1986434: New visual style for Seven - can we get an updated patch for this?

Gábor Hojtsy’s picture

Issue tags: -sprint

My understanding above from ry5n's post was that the style of the design to implement is still in discussion and this is not really actionable to implement yet. See #23.

Bojhan’s picture

@Gabor Nope, you can push forth with the design now. Me, roy and r5yn agreed upon the direction provided in http://drupal.org/node/1490402#comment-7406260

Bojhan’s picture

Component: other » Seven theme
Priority: Normal » Major

Raising priority, this will significantly simplify the styling of the modal that still needs to be done and fix a major usability issue with tabs going unnoticed.

Gábor Hojtsy’s picture

Bojhan: the tab design in #1490402-62: Redesign tabs and the content header looks considerably different from what was proposed above. Also its display in the rounded overlay top bar would looks interesting with the boxed links, no? I wanted to look at rerolling this patch based on your suggestion but I still don't see if there is a clear direction(?!)

Gábor Hojtsy’s picture

Status: Needs work » Needs review
FileSize
26.44 KB

This is a patch rerolled from Lewis' #21. Now we need people who care enough about this getting into core to be involved.

Gábor Hojtsy’s picture

This is how it looks. Nothing surprising here.

Screenshot_6_3_13_3_52_PM.png

Gábor Hojtsy’s picture

What this needs at least IMHO:

- Whether this visual look is what we want. The tabs design/behavior that Bojhan linked to is not what is implemented here.
- CSS / HTML code review (mostly CSS)
- Replacement for the icons added here, those are not licensable under GPL, just for prototyping

Status: Needs review » Needs work

The last submitted patch, overlay-restyle-32.patch, failed testing.

David_Rothstein’s picture

Looks beautiful, but I don't see how the breadcrumbs can just be removed like that? (There are tons of admin interfaces in core, and even more in contrib, where you can navigate your way in and then would have no way back to where you were without the breadcrumbs to help you. For previous discussion of this issue, see #548806: No breadcrumbs in Seven.)

Maybe there's a way to add them back but have them be de-emphasized in the design?

tkoleary’s picture

David_Rothstein:

I have a design for that. I will find it and add to the issue.

One other thing, I am concerned about the transparency in the header. Visually it's not really as attractive as the original designs *and* depending on what it is on top of it can cause legibility issues. I'm leaning towards wanting to take it out.

LewisNyman’s picture

+++ b/core/modules/overlay/overlay-child.cssundefined
@@ -26,7 +29,9 @@
+  background: hsla(0, 0%, 42%, 0.65);

We don't have an official standard but it would be good stick to rgba if that's used elsewhere.

+++ b/core/modules/overlay/overlay-child.cssundefined
@@ -26,7 +29,9 @@
+  border-top-left-radius: 5px;
+  border-top-right-radius: 5px;

@@ -35,12 +40,17 @@
+  border-bottom-left-radius: 5px;
+  border-bottom-right-radius: 5px;

We can bring these into one property.

+++ b/core/modules/overlay/templates/overlay.html.twigundefined
@@ -22,15 +22,13 @@
+    <div id="overlay-title-wrapper" class="clearfix">

Let's change this to a class "overlay__title-wrapper"

+++ b/core/modules/overlay/templates/overlay.html.twigundefined
@@ -22,15 +22,13 @@
+    {% if tabs %}<div id="overlay-tabs">{{ tabs }}</div>{% endif %}

This should be a class "tabs--overlay" I think

+++ b/core/modules/shortcut/shortcut.theme.cssundefined
@@ -32,21 +32,21 @@
   background: transparent url(shortcut.png) no-repeat;

We have some icon sprites already in Seven, maybe we should just use those for now?

+++ b/core/themes/seven/style.cssundefined
@@ -229,7 +229,7 @@ pre {
+div[role=tab] ul.primary {

It looks like we've made this selector more specific then it was before, is there a reason for this?

Gábor Hojtsy’s picture

I'm not sure we should reform all the classes here too. Eg. id="overlay-title-wrapper" pre-exists this patch. We just move it around.

In terms of why the updated specificity in seven's styling for tabs is needed, that is because we now use the base theming for tabs to be on two levels. The overlay tabs are only different in terms of their wrapper not in the classes directly used on the primary and secondary tabs. If seven keeps using ul.primary, ul.secondary as selectors, then it will apply to the overlay tabs and we need to do an ungodly amount of style undoing. We can alternatively also introduce a theme function for tabs that is overlay specific, but the core one is in menu.inc/theme.inc and is supposed to be used system-wide I think. The code before this patch does not use that, because the overlay used to expose only the first level of the tabs and the second level was added to the page. Now both levels are excluded from the page and both levels are added on the overlay level.

LewisNyman’s picture

I think once we have the base Seven tabs implemented we'd have a parent varient class, tabs-primary--overlay, similar to the progress bar example. See the changes for .progress-bar__small.

It's hard for me to review the CSS if we are not taking into account all of the new standards. We can split it off into a follow up issue I guess?

Gábor Hojtsy’s picture

My focus was on implementing the visual look with as minimal changes to the CSS/markup as possible. I'm happy for someone else to take the lead on taking this forward if a bigger scope is needed. To me it sounded like this already had a scope big enough that people were shy to get involved.

ry5n’s picture

FileSize
54.99 KB

Last I checked I had stalled things on account of the tabs. I proposed a new interaction for small screens in Redesign Tabs for Touchscreens.

Assuming we want to use that interaction design, here is a revised style (almost identical to #23) but with all the variants and states taken into account. (If the image below looks confusing, try the prototype, it should make things clearer).

Photoshop source is available: Download PSD

tabs.png

Bojhan’s picture

Issue tags: -Usability

@r5yn I am not sure about this. The earlier design has a lot more hierarchy, that is now lost when you make the options blend in with the background. The only thing I would focus on improving is the indicator you have opened the tray. Also for sake of progress, could we get a first iteration in? This is a fundamental improvement, and I am afraid if we keep iterating endlessly in this thread no one will have the idea that we can move parts of this in.

The gradient is a bit misleading, obviously we do not want there to actually be a gradient.

ry5n’s picture

Yes, no gradient. Which version do you want to go with? EDIT: I assume you mean the one in the issue summary.

After considering it, I’m OK with moving forward with the original design for the sake of progress (unless a bunch of people express a preference).

tkoleary’s picture

@ry5n

I would not give up so quickly on this one. This is a simplification that removes quite a bit of visual noise from the UI with zero usability loss as far as I can see. You have my vote for pushing forward on it, especially since it only involves removing—not adding—code.

Awesome work.

-Kevin

Gábor Hojtsy’s picture

There is a lot more to the overlay patch than just the tabs. We keep focusing on the tabs questions and ignore solving the rest of the issues(?) I think there are enough details that we need to solve here that maybe we don't want to discuss and perfect everything in detail at once here?

ry5n’s picture

I think the updated tabs design is better, but it does not sound like we have consensus on that. Gábor is right: let’s get this moving again, and hopefully we have time to make a choice later about the tabs.

ry5n’s picture

Issue summary: View changes

meta issue added

tkoleary’s picture

@ry5n

Sounds sensible.

BTW Jesse beach just saw your tabs prototype and pronounced it "damn sweet"

Gábor Hojtsy’s picture

Status: Needs work » Needs review
Issue tags: -Spark

#32: overlay-restyle-32.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Spark

The last submitted patch, overlay-restyle-32.patch, failed testing.

Gábor Hojtsy’s picture

Status: Needs work » Needs review
FileSize
25.55 KB

Here is a direct reroll of the patch from #32 (last one) based on request from @tkoleary. I think given the pace of change in these files, and the number of things this patch touches, trying to limit ourselves in revamping the whole thing would be better. Unless someone wants to take full ownership of this, which would be amazing :)

Gábor Hojtsy’s picture

FileSize
7.43 KB
25.82 KB

- Changed the wrong shortcut.png above for some reason...
- Also fixed two background styles that crept in for secondary tabs
- The close button path not properly set with the images moved to an images folder

Gábor Hojtsy’s picture

Still looks the same as in #33 above. I uploaded a new screenshot I just made, but it looks exactly the same, so not embedding :) Now let's focus on getting icons that we can ship with legally and cleaning it up to get in? Then iterate on it as needed. Its a big and very interdependent beast that is better not kept endlessly rerolled until it gets moved to Drupal 9.x.

tkoleary’s picture

@Gábor Hojtsy

I think this is very close to being done. I only see a couple of things that need to be changed.

/* Remove the active state background from the secondary tabs */
#overlay-tabs ul.secondary a
- border-bottom: 1px solid transparent;
+ border-bottom: 2px solid transparent;
+ background: transparent;
}

And if we want to remove the styling on inactive tabs as in Ryan's design:

/* Remove the background from the parent */
#overlay-tabs {
- background-color: #ffffff;
+ background: transparent;
}

/* Remove the borders from the primary tabs */
#overlay-tabs ul.primary a {
- border-top: 1px solid #b3b3b3;
- border-left: 1px solid #b3b3b3;
}

/* Remove the background color and borders from the containing div */
#overlay-tabs ul.primary {
- background-color: #f2f2f0;
- border-radius: 5px 5px 0 0;
- border-top: 1px solid #b3b3b3;
}

/* remove the background color from the inactive tab and change the link color to contrast with the header background */
#overlay-tabs ul.primary a:hover {
- background-color: #fff;
+ background: transparent;
- color: #007ac7;
+ color: #8DD2FF;
}

/* add a hover color for the primary links and make it fade on */
#overlay-tabs ul.primary a:hover {
+ color: #fff;
+ -webkit-transition: all 1s;
}

/* add back white background but to secondary links only */
#overlay-tabs ul.secondary {
+ background-color: #ffffff;
}

Bojhan’s picture

Kevin could you provide the icons?

Gábor Hojtsy’s picture

FileSize
1.54 KB
25.81 KB

I *think* these are the changes @tkoleary suggested but the syntax of his pseudo-diff that was made up above was not trivial to parse. Eg. some section repeated, some section denoted new selectors, some changes to existing ones. The resemblance to actual diffs made it even harder to figure out it was not supposed to be understood as a diff (eg. the comments in the snippets were not to be added or found in the CSS, they were commenting on what changes were being proposed).

Status: Needs review » Needs work

The last submitted patch, overlay-restyle-56.patch, failed testing.

Gábor Hojtsy’s picture

Status: Needs work » Needs review
FileSize
25.74 KB

Of course it did not apply anymore to head, why would it.

Gábor Hojtsy’s picture

FileSize
516 bytes
25.81 KB

Doh, tabs lost in conflict resolution.

Gábor Hojtsy’s picture

Visual state of current patch (additionally to I'm not being sure there was/is an agreement that this tab style was supposed to be implemented?):

Screenshot_6_18_13_2_51_PM.png

Screenshot_6_18_13_2_50_PM.png

tkoleary’s picture

@Gábor Hojtsy

Ah. I think I missed a couple of attributes.

#overlay-tabs ul.primary .active ~ li a {
- border-left: 0;
- border-right: 1px solid #b3b3b3;
- border-radius: 0 5px 0 0;
}

#overlay-tabs ul.primary {
+ padding-left: 1em;
}

#overlay-tabs ul.primary a {
- color: #0074bd;
+ color: #8DD2FF;
}

The active and hove colors in the secondary tabs match the style guide.

tkoleary’s picture

And this:

#overlay-tabs ul.primary .active a {
- border-right: 1px solid #b3b3b3;
- -webkit-box-shadow: 2px -1px 2px -1px rgba(0, 0, 0, 0.2), -2px -1px 2px -1px rgba(0, 0, 0, 0.2);
- -moz-box-shadow: 2px -1px 2px -1px rgba(0, 0, 0, 0.2), -2px -1px 2px -1px rgba(0, 0, 0, 0.2);
- box-shadow: 2px -1px 2px -1px rgba(0, 0, 0, 0.2), -2px -1px 2px -1px rgba(0, 0, 0, 0.2);
}

Gábor Hojtsy’s picture

I'm not sure those style suggestions lead to something useful? The color looks better, but the padding? I don't think so.
Screenshot_6_18_13_4_20_PM.png

So did not take the padding, btu took the other two suggestions which seem fine. This way the tabs still line up with the secondary links (unlike with the added padding) and otherwise it looks reasonable too. Current patch screenshot:

Screenshot_6_18_13_4_25_PM.png

tkoleary’s picture

@Gábor Hojtsy

I see. I can fix that. I need to add a first child element.

Bojhan’s picture

Darn images dont load on my phone, probally wont be able to review till I am back from vacation. Not sure about the struggels the redesign should be pretty clear, if you need a clear updated psd i am sure that can happen.

Gábor Hojtsy’s picture

FileSize
24.91 KB
846 bytes

Applied the only outstanding suggestion from #62. Also moved the tabs into the overlay-child.css file instead of using an @import, which was just a temporary measure earlier. (Did not include that in the interdiff since that would obscure the actual change). The only visual change is that the tabs don't get a drop shadow anymore (which was this confusing blue looking but not actually blue thing that I noticed before on the side of active tabs).

LewisNyman’s picture

LewisNyman’s picture

#66: overlay-restyle-66.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +styleguide, +Spark, +styleguide-navigation

The last submitted patch, overlay-restyle-66.patch, failed testing.

LewisNyman’s picture

Status: Needs work » Needs review
FileSize
24.86 KB

Quick reroll.

echoz’s picture

Looking gorgeous! Only found this glitch noted in the 1st screenshot. Only added margin: 0; padding: 0; to #overlay-tabs to resolve, 2nd screenshot.

overlay-before.png

overlay-after.png

Also, notice in the patches there's a pretty big rdf tag for the images, looks like added by the graphics program. Never seen this in our patches before, I would think we need to save the images without it.

LewisNyman’s picture

This is a tricky patch, it relies on components that have been implemented from #1490402: Redesign tabs and the content header and #2022695: Content header style update. In this issue we've actually re-implemented components from both of those sections.

I've tagged all these issues with 'styleguide-navigation', just to group them for now, it's likely they will be committed together as one patch. I've created a Seven Style Guide Initiative sandbox that includes all of the style guide issue patches. It also includes a branch that merges together all three navigation issues. I've created a patch from that branch against 8.x. It's totally broken, but hopefully it's a better base to work from.

LewisNyman’s picture

Ok, so the RTL patch of doom knocked everything for six. Prior to that I experimented with the theming for the overlay tabs and realised I could get them looking pretty good without any custom styling. There is still work to do but it's not nearly as much as we were doing before.

The sandbox branch this is based off is: navigation-2022685-1490402-1953374

Gábor Hojtsy’s picture

Lewis: looking forward for your updates!

LewisNyman’s picture

hm, I think I forgot to attach the patch with the last post... I had to remerge everything again anyway

Still some work to do here, most noticeably the add to favourites icon.

Bojhan’s picture

@Lewis I am reviewing this, am I correct the tabs are not styled like the style guide?

All other aspects look fine, the only thing I am contemplating whether we should ditch the transparency and just have a gray top.

LewisNyman’s picture

@bojhan A lot of the work to get to the latest patch was to merge the overlay work with the latest patch in #1490402: Redesign tabs and the content header. I removed all overlay specific tabs styling to give us a better view of what we need to add in. We aren't that far off

You might need to be more specific when referencing the style guide, I'm not sure if we have a complete canonical version anymore, the most recent designs are in this issue, we should be working towards that right?

Gábor Hojtsy’s picture

#75: overlay-restyle-1953374-72.patch queued for re-testing.

Gábor Hojtsy’s picture

Patch does not seem to apply anymore. @Bojhan: any way you can help move this forward? :) You posted some concerns 3 weeks ago and did not yet follow up on that.

Status: Needs review » Needs work

The last submitted patch, overlay-restyle-1953374-72.patch, failed testing.

LewisNyman’s picture

Status: Needs work » Needs review
FileSize
55.93 KB

Here's an attempt at a re-roll.

tkoleary’s picture

@LewisNyman

Looking pretty good. Some small issues:

Drop-button overflow is hidden
Responsive tabs not working correctly
Border-left on first child tab looks odd

image
image 2
image 3
image 4

webchick’s picture

Issue tags: -Spark

Doing a bit of housekeeping on the Spark queue in order to re-familiarize myself with it, and this doesn't look strictly related to me. Tentatively removing tag.

tkoleary’s picture

@LewisNyman

Bug from #82 is fixed ( ... no longer kicks up to the top right) but the tabs still break at under 320px. Try using the elipsis then tabbing to a different tab.

LewisNyman’s picture

@tkolery I don't consider that bug, the overlay should never open for mobile users, opening it in a desktop browser and resizing to a mobile width isn't a use case I considered supporting, I'm open to being convinced though, if you think it is a genuine use case.

tkoleary’s picture

@LewisNyman

Right. Good point. I should be testing in xcode.

tkoleary’s picture

Issue summary: View changes

updated related issues for meta

Bojhan’s picture

Status: Needs review » Reviewed & tested by the community

Going to mark this RTBC. Looks like Kevin his issues are resolved in all the other issues.

David_Rothstein’s picture

#81: overlay-restyle-1953374-81.patch queued for re-testing.

David_Rothstein’s picture

Doesn't look like the patch applies... but also, does this still have the breadcrumb problem (see #36 and #37)?

Status: Reviewed & tested by the community » Needs work

The last submitted patch, overlay-restyle-1953374-81.patch, failed testing.

LewisNyman’s picture

LewisNyman’s picture

Status: Needs work » Needs review
LewisNyman’s picture

webchick’s picture

I wonder if it's worth restoring the breadcrumbs and splitting the discussion about removing them into a separate issue. I'd hate to see this really nice styling get held up by a re-hash of the discussion that already happened in #548806: No breadcrumbs in Seven about this in D7. (The original version of Seven also intentionally didn't have breadcrumbs, for probbaly the same reasons as the Seven Style guide folks want to remove them, but it was deemed too difficult to navigate out of most admin pages which tend to be buried 2-3 levels deep.)

Status: Needs review » Needs work

The last submitted patch, content-header-and-tabs-and-overlay-combined-91.patch, failed testing.

LewisNyman’s picture

Agreed, although you could argue that the new toolbar fills that role, I'd rather that discussion did not block these three issues. I'll reopen #2022695: Content header style update.

Bojhan said that he would be happy for the breadcrumbs to sit below the secondary tabs for now, which would be nice as we wouldn't have to go back to design to figure out how to accommodate them in the content header.

LewisNyman’s picture

Issue summary: View changes

Added tabs

LewisNyman’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)
Issue tags: -styleguide-navigation