Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/90171


Change subject: Rewrite vectorTabs and #p-personal with nesting
......................................................................

Rewrite vectorTabs and #p-personal with nesting

Helps group CSS rules better

Change-Id: I5e0a60f693ba847342c5f410cfed21e94bf4b1f2
---
M skins/vector/screen.less
1 file changed, 114 insertions(+), 95 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/71/90171/1

diff --git a/skins/vector/screen.less b/skins/vector/screen.less
index 2641a67..9d0389a 100644
--- a/skins/vector/screen.less
+++ b/skins/vector/screen.less
@@ -79,25 +79,29 @@
        right: 0.75em;
        /* Display on top of page tabs - bugs 37158, 48078 */
        z-index: 100;
+
+       h3 {
+               display: none;
+       }
+
+       ul {
+               list-style-type: none;
+               list-style-image: none;
+               margin: 0;
+               padding-left: 10em; /* Keep from overlapping logo */
+       }
+
+       li {
+               line-height: 1.125em;
+               /* @noflip */
+               float: left;
+               margin-left: 0.75em;
+               margin-top: 0.5em;
+               font-size: @menu-personal-font-size;
+               white-space: nowrap;
+       }
 }
-#p-personal h3 {
-       display: none;
-}
-#p-personal ul {
-       list-style-type: none;
-       list-style-image: none;
-       margin: 0;
-       padding-left: 10em; /* Keep from overlapping logo */
-}
-#p-personal li {
-       line-height: 1.125em;
-       /* @noflip */
-       float: left;
-       margin-left: 0.75em;
-       margin-top: 0.5em;
-       font-size: @menu-personal-font-size;
-       white-space: nowrap;
-}
+
 /* Navigation Containers */
 #left-navigation {
        float: left;
@@ -126,88 +130,103 @@
        /* @noflip */
        float: left;
        height: 2.5em;
-}
-div.vectorTabs {
        .background-image('images/tab-break.png');
        background-position: bottom left;
        background-repeat: no-repeat;
        padding-left: 1px;
+
+       ul {
+               /* @noflip */
+               float: left;
+               height: 100%;
+               list-style-type: none;
+               list-style-image: none;
+               margin: 0;
+               padding: 0;
+
+               /* IGNORED BY IE6 */
+               > li {
+                       display: block;
+               }
+       }
+
+       li {
+               /* @noflip */
+               float: left;
+               /* OVERRIDDEN BY COMPLIANT BROWSERS */
+               line-height: 1.125em;
+               display: inline-block;
+               height: 100%;
+               margin: 0;
+               padding: 0;
+               background-color: #f3f3f3;
+               .background-image('images/tab-normal-fade.png');
+               background-position: bottom left;
+               background-repeat: repeat-x;
+               white-space: nowrap;
+
+
+               &.new {
+                       a,
+                       a:visited{
+                               color: #a55858;
+                       }
+               }
+
+               &.selected {
+                       .background-image('images/tab-current-fade.png');
+                       a,
+                       a:visited{
+                               color: #333;
+                               text-decoration: none;
+                       }
+               }
+
+               &.icon {
+                       /* IGNORED BY IE6 */
+                       a {
+                               background-position: bottom right;
+                               background-repeat: no-repeat;
+                       }
+               }
+
+               /* OVERRIDDEN BY COMPLIANT BROWSERS */
+               a {
+                       display: inline-block;
+                       height: 1.9em;
+                       padding-left: 0.5em;
+                       padding-right: 0.5em;
+                       color: @menu-link-color;
+                       cursor: pointer;
+                       font-size: 0.8em;
+               }
+
+               /* IGNORED BY IE6 */
+               > a {
+                       display: block;
+               }
+       }
+
+       span {
+               display: inline-block;
+               .background-image('images/tab-break.png');
+               background-position: bottom right;
+               background-repeat: no-repeat;
+               /* IGNORED BY IE6 */
+               > a {
+                       /* @noflip */
+                       float: left;
+                       display: block;
+               }
+
+               /* OVERRIDDEN BY COMPLIANT BROWSERS */
+               a  {
+                       display: inline-block;
+                       padding-top: 1.25em;
+               }
+       }
 }
-div.vectorTabs ul {
-       /* @noflip */
-       float: left;
-       height: 100%;
-       list-style-type: none;
-       list-style-image: none;
-       margin: 0;
-       padding: 0;
-}
-/* OVERRIDDEN BY COMPLIANT BROWSERS */
-div.vectorTabs ul li {
-       /* @noflip */
-       float: left;
-       line-height: 1.125em;
-       display: inline-block;
-       height: 100%;
-       margin: 0;
-       padding: 0;
-       background-color: #f3f3f3;
-       .background-image('images/tab-normal-fade.png');
-       background-position: bottom left;
-       background-repeat: repeat-x;
-       white-space: nowrap;
-}
-/* IGNORED BY IE6 */
-div.vectorTabs ul > li {
-       display: block;
-}
-div.vectorTabs li.selected {
-       .background-image('images/tab-current-fade.png');
-}
-/* OVERRIDDEN BY COMPLIANT BROWSERS */
-div.vectorTabs li a {
-       display: inline-block;
-       height: 1.9em;
-       padding-left: 0.5em;
-       padding-right: 0.5em;
-       color: @menu-link-color;
-       cursor: pointer;
-       font-size: 0.8em;
-}
-/* IGNORED BY IE6 */
-div.vectorTabs li > a {
-       display: block;
-}
-div.vectorTabs li.icon a {
-       background-position: bottom right;
-       background-repeat: no-repeat;
-}
-/* OVERRIDDEN BY COMPLIANT BROWSERS */
-div.vectorTabs span a  {
-       display: inline-block;
-       padding-top: 1.25em;
-}
-/* IGNORED BY IE6 */
-div.vectorTabs span > a {
-       /* @noflip */
-       float: left;
-       display: block;
-}
-div.vectorTabs span {
-       display: inline-block;
-       .background-image('images/tab-break.png');
-       background-position: bottom right;
-       background-repeat: no-repeat;
-}
-div.vectorTabs li.selected a,
-div.vectorTabs li.selected a:visited{
-       color: #333;
-       text-decoration: none;
-}
-div.vectorTabs li.new a,
-div.vectorTabs li.new a:visited{
-       color: #a55858;
-}
+
 /* Variants and Actions */
 div.vectorMenu {
        /* @noflip */

-- 
To view, visit https://gerrit.wikimedia.org/r/90171
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5e0a60f693ba847342c5f410cfed21e94bf4b1f2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to