overleaf/services/web/frontend/stylesheets/bootstrap-5/base/links.scss
Jessica Lawshe c37e6a17fb Merge pull request #21215 from overleaf/jel-redesign-black-links
[web] Consolidate black link CSS on pages using new design

GitOrigin-RevId: cdeccee0586efbf67e656828ed597e4441242edd
2024-10-22 08:07:34 +00:00

57 lines
1,005 B
SCSS

// Links
// Use CSS variables for link colors to make it easy to override in marketing page
:root {
--link-color: var(--link-ui);
--link-hover-color: var(--link-ui-hover);
--link-visited-color: var(--link-ui-visited);
--link-color-dark: var(--link-ui-dark);
--link-hover-color-dark: var(--link-ui-hover-dark);
--link-visited-color-dark: var(--link-ui-visited-dark);
}
a {
color: var(--link-color);
&:visited {
color: var(--link-visited-color);
}
&:hover {
color: var(--link-hover-color);
}
}
.link-monospace {
@extend .dm-mono;
font-weight: 500;
color: var(--green-50);
&:hover {
color: var(--green-60);
}
}
.link-black-text {
color: var(--neutral-90);
text-decoration: none;
font-weight: 600;
&:visited {
color: var(--neutral-90);
}
&:hover {
color: var(--neutral-90);
text-decoration: underline;
}
}
.link-black-full-width {
@extend .link-black-text;
display: flex;
width: 100%;
justify-content: space-between;
}