Skip to content

Commit

Permalink
set color links same as in reports
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosQuildu committed Nov 27, 2024
1 parent 2ee065f commit ca22833
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
36 changes: 35 additions & 1 deletion assets/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,38 @@ html {
::-webkit-scrollbar-thumb {
background: var(--gray-500);
border-radius: $padding-8;
}
}



// Links
// main colors are set in _variables.scss
a:focus, a:focus-visible {
opacity: .75;
text-decoration: none;
outline-style: auto;
outline-color: var(--color-link-mono);
}

.markdown, .book-toc {
a:hover {
opacity: .75;
}
}

.markdown a {
&:hover {
text-decoration: underline;
text-decoration-color: var(--color-link-mono);
}

&:visited {
&:hover {
text-decoration-color: var(--color-visited-link-mono);
}

&:focus, &:focus-visible {
outline-color: var(--color-visited-link-mono);
}
}
}
21 changes: 21 additions & 0 deletions assets/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// had to copy the whole mixin from _default.scss
@mixin theme-light {
--gray-100: #f8f9fa;
--gray-200: #e9ecef;
--gray-500: #adb5bd;

// https://github.com/trailofbits/audit-reporting-tools/blob/88b75a31a7298e8079fb326c7992ff534868e497/make-report/make_report/colors.py#L86
--color-link: #ad182b;
--color-link-mono: #c93447; // monochromatic
--color-visited-link: #683700;
--color-visited-link-mono: #84531c; // monochromatic

--body-background: white;
--body-font-color: black;

--icon-filter: none;

--hint-color-info: #6bf;
--hint-color-warning: #fd6;
--hint-color-danger: #f66;
}

0 comments on commit ca22833

Please sign in to comment.