-
Notifications
You must be signed in to change notification settings - Fork 143
/
style-light.scss
74 lines (63 loc) · 2.04 KB
/
style-light.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* Override font color in Sandstone theme */
.theme-sandstone {
color: #A51C30; /* Set font color to #A51C30 */
}
/*-- scss:defaults --*/
:root {
--link-color: #A51C30; /* Define the CSS variable for link color */
}
/*-- scss:rules --*/
body {
-webkit-font-smoothing: auto;
}
a {
color: var(--link-color); /* Use the CSS variable for link color */
text-decoration: underline;
-webkit-text-decoration: underline;
-moz-text-decoration: underline;
-ms-text-decoration: underline;
-o-text-decoration: underline;
}
a:hover {
color: var(--link-color); /* Ensure link color remains the same on hover */
}
a:not([href]):not([class]),
a:not([href]):not([class]):hover {
color: inherit;
text-decoration: none;
}
/* Set color and link styles for active items in the sidebar */
div.sidebar-item-container .active,
div.sidebar-item-container .show > .nav-link,
div.sidebar-item-container .sidebar-link > code {
color: var(--link-color);
}
/* Set color for TOC links on hover */
.sidebar nav[role=doc-toc] ul > li > a:hover,
.sidebar nav[role=doc-toc] ul > li > ul > li > a:hover {
color: var(--link-color) !important;
}
/* Set border color and text color for active TOC links */
.sidebar nav[role=doc-toc] ul > li > a.active,
.sidebar nav[role=doc-toc] ul > li > ul > li > a.active {
border-left: 1px solid var(--link-color);
color: var(--link-color) !important;
}
/* Set text color for active TOC links on hover */
.sidebar nav[role=doc-toc] ul > li > a.active:hover,
.sidebar nav[role=doc-toc] ul > li > ul > li > a.active:hover {
color: var(--link-color);
/* Add any additional hover styles here */
}
.navbar-dark,
.navbar[data-bs-theme=dark] {
--bs-navbar-active-color: var(--link-color);
--bs-navbar-brand-hover-color: var(--link-color);
--bs-navbar-hover-color: var(--link-color);
--bs-navbar-hover-color: var(--link-color);
--bs-navbar-active-color: var(--link-color);
--bs-navbar-brand-hover-color: var(--link-color);
}
.navbar .quarto-navbar-tools .quarto-navigation-tool:hover {
color: var(--link-color);
}