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:
bwang 2024-09-27 13:58:25 -05:00
parent 91ca28e801
commit 3d74f38a51
5 changed files with 16 additions and 32 deletions

View file

@ -10,11 +10,8 @@
display: flex;
align-items: center;
padding: 0.75em 0.875em;
&:hover {
text-decoration: none;
}
}
.toggle-list-item__label {
color: @color-subtle;

View file

@ -7,35 +7,16 @@
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 {
&.new .minerva__tab-text {
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();
}
&:last-child {
margin-right: 0;

View file

@ -18,14 +18,17 @@ a:not( [ href ] ) {
cursor: pointer;
}
footer,
.mw-body-content {
/* This not does apply to links with role button per discussion on T373989 */
a:not( [ role='button' ] ):not( .minerva__tab-text ) {
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();
}
}
}
// External links
// Use of `a` element selector due to its widespread usage and for limiting generic class scope.

View file

@ -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 {

View file

@ -2,6 +2,10 @@
.notifications-overlay {
visibility: visible;
a {
text-decoration: none;
}
}
// needs to be more specific than .overlay rules