Merge pull request #20508 from overleaf/as-cms-bs5-link-colours

[web] Adjust link behaviour for Website Redesign in BS5

GitOrigin-RevId: d09831de1f51c4e2a9bc06b0c9fd9f4a1909d7f0
This commit is contained in:
Jessica Lawshe 2024-09-24 10:19:38 -05:00 committed by Copybot
parent e8f602db9b
commit e4b3ee8988
3 changed files with 28 additions and 11 deletions

View file

@ -10,13 +10,13 @@
a { a {
color: var(--link-color); color: var(--link-color);
&:hover {
color: var(--link-hover-color);
}
&:visited { &:visited {
color: var(--link-visited-color); color: var(--link-visited-color);
} }
&:hover {
color: var(--link-hover-color);
}
} }
.link-monospace { .link-monospace {

View file

@ -96,9 +96,9 @@ $border-disabled: $neutral-20;
$border-active: $blue-50; $border-active: $blue-50;
$border-danger: $red-50; $border-danger: $red-50;
$border-divider: $neutral-20; $border-divider: $neutral-20;
$link-web: $green-60; $link-web: $green-50;
$link-web-hover: $green-70; $link-web-hover: $green-70;
$link-web-visited: $green-70; $link-web-visited: $green-50;
$link-ui: $blue-50; $link-ui: $blue-50;
$link-ui-hover: $blue-60; $link-ui-hover: $blue-60;
$link-ui-visited: $blue-60; $link-ui-visited: $blue-60;
@ -213,9 +213,9 @@ $link-ui-visited-dark: $blue-40;
--border-active: var(--blue-50); --border-active: var(--blue-50);
--border-danger: var(--red-50); --border-danger: var(--red-50);
--border-divider: var(--neutral-20); --border-divider: var(--neutral-20);
--link-web: var(--green-60); --link-web: var(--green-50);
--link-web-hover: var(--green-70); --link-web-hover: var(--green-70);
--link-web-visited: var(--green-70); --link-web-visited: var(--green-50);
--link-ui: var(--blue-50); --link-ui: var(--blue-50);
--link-ui-hover: var(--blue-60); --link-ui-hover: var(--blue-60);
--link-ui-visited: var(--blue-60); --link-ui-visited: var(--blue-60);

View file

@ -27,6 +27,10 @@
} }
.website-redesign { .website-redesign {
--link-color: var(--link-web);
--link-hover-color: var(--link-web-hover);
--link-visited-color: var(--link-web-visited);
// hero section of features, enterprises, and universities will have an image that will overflow the page // hero section of features, enterprises, and universities will have an image that will overflow the page
--bs-body-color: var(--neutral-70); --bs-body-color: var(--neutral-70);
@ -34,7 +38,9 @@
overflow-x: hidden; overflow-x: hidden;
a { a {
text-decoration: none; &:hover {
text-decoration: underline;
}
&:focus, &:focus,
&:focus-visible { &:focus-visible {
@ -45,8 +51,6 @@
@include box-shadow-button-input; @include box-shadow-button-input;
} }
// TODO: remove visited?
i { i {
vertical-align: middle; vertical-align: middle;
margin-left: var(--spacing-02); margin-left: var(--spacing-02);
@ -61,6 +65,19 @@
line-height: inherit; line-height: inherit;
} }
} }
// Specific overrides for link styles
&.link-monospace {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
&.btn:hover {
text-decoration: none;
}
} }
h1, h1,