mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-15 10:27:31 +00:00
Scope codex link styles to footer and content body, remove cached CSS
Depends-on: I22e9c0d67b69ed37310c47db55bedb67f51efc90 Bug: T375832 Change-Id: I6e9e29fd5b140ae8eb4e6b011d558ea778c92028
This commit is contained in:
parent
91ca28e801
commit
3d74f38a51
|
@ -10,10 +10,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0.75em 0.875em;
|
padding: 0.75em 0.875em;
|
||||||
|
text-decoration: none;
|
||||||
&:hover {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggle-list-item__label {
|
.toggle-list-item__label {
|
||||||
|
|
|
@ -7,34 +7,15 @@
|
||||||
padding-bottom: 6px;
|
padding-bottom: 6px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
// TODO: 'a' selector after caching
|
|
||||||
a,
|
|
||||||
.minerva__tab-text {
|
.minerva__tab-text {
|
||||||
font-size: @font-size-tag-line;
|
font-size: @font-size-tag-line;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: @color-subtle;
|
color: @color-subtle;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&.new {
|
|
||||||
color: @color-link-red;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Remove entire selector after caching
|
&.new .minerva__tab-text {
|
||||||
// Currently needed to override default link styles
|
color: @color-link-red;
|
||||||
a:not( [ role='button' ] ) {
|
|
||||||
&:link,
|
|
||||||
&:visited,
|
|
||||||
&:hover,
|
|
||||||
&:active {
|
|
||||||
color: @color-subtle;
|
|
||||||
text-decoration: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Remove entire selector after caching
|
|
||||||
&.new a:not( [ role='button' ] ) {
|
|
||||||
.cdx-mixin-link-red();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
|
|
|
@ -18,13 +18,16 @@ a:not( [ href ] ) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This not does apply to links with role button per discussion on T373989 */
|
footer,
|
||||||
a:not( [ role='button' ] ):not( .minerva__tab-text ) {
|
.mw-body-content {
|
||||||
.cdx-mixin-link-base();
|
/* This not does apply to links with role button per discussion on T373989 */
|
||||||
}
|
a:not( [ role='button' ] ):not( .mw-selflink ):not( .cdx-card ) {
|
||||||
|
.cdx-mixin-link-base();
|
||||||
|
|
||||||
a:not( [ role='button' ] ):not( .minerva__tab-text ).new {
|
&.new {
|
||||||
.cdx-mixin-link-red();
|
.cdx-mixin-link-red();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// External links
|
// External links
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
.toggle-list-item__anchor:hover {
|
.toggle-list-item__anchor:hover {
|
||||||
box-shadow: inset 4px 0 0 0 @box-shadow-color-progressive--focus;
|
box-shadow: inset 4px 0 0 0 @box-shadow-color-progressive--focus;
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.client-nojs & .skin-minerva-list-item-jsonly {
|
.client-nojs & .skin-minerva-list-item-jsonly {
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
.notifications-overlay {
|
.notifications-overlay {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// needs to be more specific than .overlay rules
|
// needs to be more specific than .overlay rules
|
||||||
|
|
Loading…
Reference in a new issue