-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathextra.css
More file actions
153 lines (128 loc) · 4.21 KB
/
extra.css
File metadata and controls
153 lines (128 loc) · 4.21 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
.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 admonition (Note) colors to stand out better
Define through LM/DM scheme color variables to change with mode
*/
.md-typeset .admonition.note, .md-typeset details.note {
border-color: var(--color-lm-url);
box-shadow: var(--color-lm-url-10);
}
/* icon color */
.md-typeset .admonition.note > .admonition-title::before {
background-color: var(--color-lm-url);
}
/* shaded part (title/heading) */
.md-typeset .note>.admonition-title,.md-typeset .note>summary {
background-color: var(--color-lm-url-10);
}
/*
Set admonition (question) colors
Change with LM/DM (set through scheme color variables)
*/
.md-typeset .admonition.question, .md-typeset details.question {
border-color: var(--md-accent-fg-color);
box-shadow: var(--md-accent-fg-color-10);
}
/* icon color */
.md-typeset .admonition.question > .admonition-title::before {
background-color: var(--md-accent-fg-color);
}
/* shaded part (title/heading) */
.md-typeset .question>.admonition-title,.md-typeset .question>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);
}
[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);
}
[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);
}
[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);
}
[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) {
/* 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);
}
/* 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);
}
}