Skip to content

Commit

Permalink
Revert "Global links underlined by default (#3166)"
Browse files Browse the repository at this point in the history
This reverts commit 5d2107e.
  • Loading branch information
bandana147 authored Nov 13, 2024
1 parent 931e97a commit 5f856a5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 46 deletions.
1 change: 0 additions & 1 deletion libs/blocks/card-horizontal/card-horizontal.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

.card-horizontal a {
color: var(--text-color);
text-decoration: none;
}

.card-horizontal a:focus {
Expand Down
4 changes: 0 additions & 4 deletions libs/blocks/global-footer/global-footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
list-style-type: none;
}

.global-footer a {
text-decoration: unset;
}

.global-footer a:hover {
text-decoration: none;
}
Expand Down
1 change: 0 additions & 1 deletion libs/blocks/marquee-anchors/marquee-anchors.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ html {
cursor: pointer;
position: relative;
color: var(--text-color);
text-decoration: none;
}

.marquee-anchors .links .anchor-link .heading-xs {
Expand Down
3 changes: 1 addition & 2 deletions libs/blocks/text/link-farms.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@
text-decoration: underline;
}

.link-farm.text-block a:is(:hover, :focus) {
.link-farm.text-block a:hover {
text-decoration-style: double;
outline-offset: 3px;
}


Expand Down
6 changes: 0 additions & 6 deletions libs/styles/iconography.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ dealing w/ groups of media and associated text

.lockup-area > * { line-height: 0; }

.lockup-area a { text-decoration: none; }

.lockup-area a:hover,
.lockup-area a:focus,
.lockup-area a:active { text-decoration: underline; }

.center .lockup-area { justify-content: center; }
.right .lockup-area { justify-content: flex-end; }

Expand Down
40 changes: 8 additions & 32 deletions libs/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,6 @@ header.global-navigation.has-promo {
min-height: calc(var(--global-height-nav) + var(--global-height-navPromo));
}

header.global-navigation a {
text-decoration: unset;
}

@media (min-width: 900px) {
header.global-navigation.has-breadcrumbs {
padding-bottom: var(--global-height-breadcrumbs);
Expand Down Expand Up @@ -792,46 +788,25 @@ a.fragment {

a {
color: var(--link-color);
text-decoration: underline;
text-decoration: none;
}

a:hover,
a:focus,
a:active {
a:hover {
text-decoration: underline;
color: var(--link-hover-color);
}

a:has(> sub:only-child) { text-decoration: unset; }
a > sub:only-child { text-decoration: underline; }

/* Links Quiet */
a.quiet,
a.quiet:hover,
a.quiet:focus,
a.quiet:active {
text-decoration: none;
}

/* Links Static */
a.static,
a.static:hover,
a.static:focus,
a.static:active {
a.static:hover {
color: var(--text-color);
text-decoration: underline;
}

.dark a.static,
.dark a.static:hover,
.dark a.static:focus,
.dark a.static:active {
.dark a.static:hover {
color: var(--color-white);
}

:is(h1, h2, h3, h4, h5, h6) a,
:is(h1, h2, h3, h4, h5, h6) a:hover,
:is(h1, h2, h3, h4, h5, h6) a:focus,
:is(h1, h2, h3, h4, h5, h6) a:active {
color: currentColor;
text-decoration: underline;
}

/* Buttons */
Expand All @@ -841,6 +816,7 @@ a.static:active {

.static-links a:not([class*="button"]) {
color: inherit;
text-decoration: underline;
}

.copy-link {
Expand Down

0 comments on commit 5f856a5

Please sign in to comment.