mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-01 02:37:05 +00:00
Reduce specificity by using classes without element selector addition
That's not only good practice, it also allows to widely simplify 'watchstar.less' selectors. Change-Id: Ic31452f985e99d60f6fc71473be7de08bdc16148
This commit is contained in:
parent
1d7c3fac99
commit
190d9830ca
|
@ -41,30 +41,6 @@
|
|||
line-height: @line-height-nav;
|
||||
white-space: nowrap;
|
||||
|
||||
&.new {
|
||||
a,
|
||||
a:visited {
|
||||
color: @color-link-new;
|
||||
}
|
||||
}
|
||||
|
||||
&.selected {
|
||||
.background-image('images/tab-current-fade.png');
|
||||
|
||||
a,
|
||||
a:visited {
|
||||
color: @color-link-selected;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.icon {
|
||||
a {
|
||||
background-position: bottom right;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: @color-link;
|
||||
display: block;
|
||||
|
@ -76,6 +52,30 @@
|
|||
}
|
||||
}
|
||||
|
||||
.new {
|
||||
a,
|
||||
a:visited {
|
||||
color: @color-link-new;
|
||||
}
|
||||
}
|
||||
|
||||
.selected {
|
||||
.background-image('images/tab-current-fade.png');
|
||||
|
||||
a,
|
||||
a:visited {
|
||||
color: @color-link-selected;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
a {
|
||||
background-position: bottom right;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
.background-image('images/tab-break.png');
|
||||
|
@ -184,12 +184,12 @@
|
|||
cursor: pointer;
|
||||
font-size: @font-size-tabs;
|
||||
}
|
||||
}
|
||||
|
||||
&.selected a,
|
||||
&.selected a:visited {
|
||||
color: @color-link-selected;
|
||||
text-decoration: none;
|
||||
}
|
||||
.selected a,
|
||||
.selected a:visited {
|
||||
color: @color-link-selected;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue