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;
|
||||
align-items: center;
|
||||
padding: 0.75em 0.875em;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.toggle-list-item__label {
|
||||
|
|
|
@ -7,34 +7,15 @@
|
|||
padding-bottom: 6px;
|
||||
display: inline-block;
|
||||
|
||||
// TODO: 'a' selector after caching
|
||||
a,
|
||||
.minerva__tab-text {
|
||||
font-size: @font-size-tag-line;
|
||||
font-weight: bold;
|
||||
color: @color-subtle;
|
||||
text-decoration: none;
|
||||
|
||||
&.new {
|
||||
color: @color-link-red;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Remove entire selector after caching
|
||||
// Currently needed to override default link styles
|
||||
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();
|
||||
&.new .minerva__tab-text {
|
||||
color: @color-link-red;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
|
|
|
@ -18,13 +18,16 @@ a:not( [ href ] ) {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* This not does apply to links with role button per discussion on T373989 */
|
||||
a:not( [ role='button' ] ):not( .minerva__tab-text ) {
|
||||
.cdx-mixin-link-base();
|
||||
}
|
||||
footer,
|
||||
.mw-body-content {
|
||||
/* 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 {
|
||||
.cdx-mixin-link-red();
|
||||
&.new {
|
||||
.cdx-mixin-link-red();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// External links
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
|
||||
.toggle-list-item__anchor:hover {
|
||||
box-shadow: inset 4px 0 0 0 @box-shadow-color-progressive--focus;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.client-nojs & .skin-minerva-list-item-jsonly {
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
.notifications-overlay {
|
||||
visibility: visible;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
// needs to be more specific than .overlay rules
|
||||
|
|
Loading…
Reference in a new issue