-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathextra.css
More file actions
186 lines (157 loc) · 5.18 KB
/
extra.css
File metadata and controls
186 lines (157 loc) · 5.18 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
.md-footer-social {
order: 1;
}
.md-copyright {
order: 2;
}
.md-footer-generator {
order: 3;
}
/*
Make logo larger to be legible,
based on this suggestion: https://github.com/squidfunk/mkdocs-material/discussions/2933#discussioncomment-1168075
*/
.md-header__button.md-logo {
margin: 0;
padding: 1;
}
.md-header__button.md-logo img, .md-header__button.md-logo svg {
height: 2.8rem;
width: 2.8rem;
}
/*
Define colors for theme
Color palette as defined here: https://github.com/Imageomics/Collaborative-distributed-science-guide/issues/59
*/
body {
--color-lm-primary: #245963; /* light mode primary color (teal-9) */
--color-lm-url: #3c707a; /* light mode URL + note color (teal-11) */
--color-lm-url-10: #3c707a1a; /* 10% alpha */
--color-lm-accent: #7eac55; /* light mode accent color (lime-9) */
--color-lm-accent-10: #7eac551a; /* 10% alpha */
--color-dm-primary: #174952; /* dark mode primary color (teal-10) */
--color-dm-url: #7dc7d6; /* dark mode contrast url (teal-11) */
--color-dm-accent: #73a049; /* dark mode accent color (lime-10) */
--color-dm-accent-10: #73a0491a; /* 10% alpha */
}
/* Light mode colors */
[data-md-color-scheme="default"] {
--md-primary-fg-color: var(--color-lm-primary);
--md-accent-fg-color: var(--color-lm-accent);
--md-accent-fg-color-10: var(--color-lm-accent-10);
}
/* GitHub panel color (mobile and small screen, issue 18) */
.md-nav__source {
background-color: var(--md-primary-fg-color);
}
.md-source {
background-color: var(--md-primary-fg-color);
}
/* Set colors for collapsible summary component */
.md-typeset details {
border-color: var(--color-lm-url);
box-shadow: none !important;
}
/* icon color */
.md-typeset summary:before {
background-color: var(--color-lm-url);
}
/* shaded part (title/heading) */
.md-typeset summary {
background-color: var(--color-lm-url-10);
}
/*
Set admonition (note and info) colors to stand out better
Define through LM/DM scheme color variables to change with mode
*/
.md-typeset .admonition.note, .md-typeset details.note,
.md-typeset .admonition.info, .md-typeset details.info {
border-color: var(--color-lm-url);
box-shadow: var(--color-lm-url-10);
}
/* icon color */
.md-typeset .admonition.note > .admonition-title::before,
.md-typeset .admonition.info > .admonition-title::before {
background-color: var(--color-lm-url);
}
/* shaded part (title/heading) */
.md-typeset .note>.admonition-title,.md-typeset .note>summary,
.md-typeset .info>.admonition-title, .md-typeset .info>summary {
background-color: var(--color-lm-url-10);
}
/*
Set admonition (question and tip) colors
Change with LM/DM (set through scheme color variables)
*/
.md-typeset .admonition.question, .md-typeset details.question,
.md-typeset .admonition.tip, .md-typeset details.tip {
border-color: var(--md-accent-fg-color);
box-shadow: var(--md-accent-fg-color-10);
}
/* icon color */
.md-typeset .admonition.question > .admonition-title::before,
.md-typeset .admonition.tip > .admonition-title::before {
background-color: var(--md-accent-fg-color);
}
/* shaded part (title/heading) */
.md-typeset .question>.admonition-title, .md-typeset .question>summary,
.md-typeset .tip>.admonition-title, .md-typeset .tip>summary {
background-color: var(--md-accent-fg-color-10);
}
/* Set lightmode URL colors */
/* Content URLs */
[data-md-color-scheme="default"] .md-typeset a {
color: var(--color-lm-url);
font-weight: bold;
}
[data-md-color-scheme="default"] .md-typeset a:hover {
color: var(--md-accent-fg-color);
}
/* Navigation URL (side panel contents)
to better distinguish from those that are above */
[data-md-color-scheme="default"] .md-nav .md-nav__link--active {
color: var(--color-lm-url);
font-weight: bold;
}
[data-md-color-scheme="default"] .md-nav .md-nav__link--active:hover {
color: var(--md-accent-fg-color);
}
/* Dark mode colors */
[data-md-color-scheme="slate"] {
--md-primary-fg-color: var(--color-dm-primary);
--md-accent-fg-color: var(--color-dm-accent);
--md-accent-fg-color-10: var(--color-dm-accent-10);
}
/* Dark mode custom link color */
[data-md-color-scheme="slate"] .md-typeset a {
color: var(--color-dm-url);
font-weight: bold;
}
[data-md-color-scheme="slate"] .md-typeset a:hover {
color: var(--md-accent-fg-color);
}
/* Dark mode custom active link color (side panel) */
[data-md-color-scheme="slate"] .md-nav .md-nav__link--active {
color: var(--color-dm-url);
font-weight: bold;
}
[data-md-color-scheme="slate"] .md-nav .md-nav__link--active:hover {
color: var(--md-accent-fg-color);
}
/* Small screen adjustments */
@media screen and (max-width: 76.2344em) {
.md-nav--primary .md-nav__title {
background-color: var(--md-primary-fg-color);
/* bg defined by main theme as #fff */
color: var(--md-primary-bg-color);
}
/* Dark mode custom active parent color (side panel) */
[data-md-color-scheme="slate"] .md-nav .md-nav__item--active > .md-nav__link {
color: var(--color-dm-url);
font-weight: bold;
}
/* Dark mode custom active parent hover color (side panel) */
[data-md-color-scheme="slate"] .md-nav .md-nav__item--active:hover > .md-nav__link {
color: var(--md-accent-fg-color);
}
}