Merge "Scope codex link styles to footer and content body, remove cached CSS"

This commit is contained in:
jenkins-bot 2024-09-27 21:49:01 +00:00 committed by Gerrit Code Review
commit bf1e3a2d08
5 changed files with 16 additions and 32 deletions

View file

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

View file

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

View file

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

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