-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforeground.css
175 lines (147 loc) · 5.82 KB
/
foreground.css
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
/*
* variables
*/
:root {
--color-primary: #2980b9;
--color-secondary: #4CB9E2;
--color-tertiary: #2494B9;
--text-color: black;
--text-color-secondary: #3b3b3b;
--background-color: #fff;
--background-color-secondary: #e9e9e9;
}
/* improve main nav usability per fitt's law */
nav ul li {
padding: unset !important;
}
nav ul li a {
display: block !important;
padding: 10px 0 !important;
transition: color .3s !important;
}
/* add open in new tab indicator */
[target="_blank"]::after {
background: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --%3E%3Cpath d='M256 64C256 46.33 270.3 32 288 32H415.1C415.1 32 415.1 32 415.1 32C420.3 32 424.5 32.86 428.2 34.43C431.1 35.98 435.5 38.27 438.6 41.3C438.6 41.35 438.6 41.4 438.7 41.44C444.9 47.66 447.1 55.78 448 63.9C448 63.94 448 63.97 448 64V192C448 209.7 433.7 224 416 224C398.3 224 384 209.7 384 192V141.3L214.6 310.6C202.1 323.1 181.9 323.1 169.4 310.6C156.9 298.1 156.9 277.9 169.4 265.4L338.7 96H288C270.3 96 256 81.67 256 64V64zM0 128C0 92.65 28.65 64 64 64H160C177.7 64 192 78.33 192 96C192 113.7 177.7 128 160 128H64V416H352V320C352 302.3 366.3 288 384 288C401.7 288 416 302.3 416 320V416C416 451.3 387.3 480 352 480H64C28.65 480 0 451.3 0 416V128z'/%3E%3C/svg%3E") no-repeat !important;
content: " " !important;
display: inline-block !important;
filter: invert(47%) sepia(18%) saturate(897%) hue-rotate(165deg) brightness(92%) contrast(87%) !important;
height: .7em !important;
width: .7em !important;
margin-left: .3em !important;
opacity: .5 !important;
}
[target="_blank"]:hover::after {
filter: invert(75%) sepia(0%) saturate(1%) hue-rotate(156deg) brightness(93%) contrast(84%) !important;
}
/* reduce margin of notes */
td ul {
margin: 0.5em !important;
}
td li {
margin-left: -1em !important;
}
@media (prefers-color-scheme: light) {
/* one light */
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}
.hljs{color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#a0a1a7;
font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword{color:#a626a4}.hljs-deletion,
.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e45649}.hljs-literal
{color:#0184bb}.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string,.hljs-regexp,
.hljs-string{color:#50a14f}.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,
.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#986801}
.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title
{color:#4078f2}.hljs-built_in,.hljs-class .hljs-title,.hljs-title.class_
{color:#c18401}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}
.hljs-link{text-decoration:underline}
}
/* dark mode */
@media (prefers-color-scheme: dark) {
:root {
--color-primary: #2980b9;
--color-secondary: #4CB9E2;
--color-tertiary: #2494B9;
--text-color: #ffffff;
--text-color-secondary: #e2e2e2;
--background-color: #222;
--background-color-secondary: #262626;
}
html,
body,
table {
background: var(--background-color) !important;
color: var(--text-color-secondary) !important;
}
h2 {
color: var(--color-primary) !important;
}
::selection {
background: var(--color-tertiary) !important;
color: var(--text-color) !important;
}
a:link {
color: var(--color-secondary) !important;
}
nav a:link {
color: var(--color-secondary) !important;
}
a:visited {
color: var(--color-secondary) !important;
}
a:hover {
color: var(--text-color) !important;
}
nav a:hover {
color: var(--text-color) !important;
}
table {
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
color: var(--text-color-secondary) !important;
}
td {
border-left: solid 1px var(--background-color-secondary) !important;
}
td strong {
color: var(--color-primary) !important;
}
th {
background: var(--color-primary) !important;
color: var(--text-color) !important;
}
tbody tr:nth-child(odd) {
background-color: var(--background-color) !important;
}
tbody tr:nth-child(even) {
background-color: var(--background-color-secondary) !important;
}
div.title a:hover {
color: rgba(69, 131, 163, 0.8) !important;
}
.footer {
border-top: solid 3px var(--background-color) !important;
}
nav {
background: var(--background-color) !important;
}
[target="_blank"]:hover::after {
filter: invert(47%) brightness(999%) !important;
}
* {
color-scheme: dark !important;
}
/* one dark */
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs
{color:#abb2bf;background:#282c34}.hljs-keyword,.hljs-operator,.hljs-pattern-match
{color:#f92672}.hljs-function,.hljs-pattern-match .hljs-constructor{color:#61aeee}
.hljs-function .hljs-params{color:#a6e22e}.hljs-function .hljs-params .hljs-typing
{color:#fd971f}.hljs-module-access .hljs-module{color:#7e57c2}.hljs-constructor
{color:#e2b93d}.hljs-constructor .hljs-string{color:#9ccc65}.hljs-comment,
.hljs-quote{color:#b18eb1;font-style:italic}.hljs-doctag,.hljs-formula{color:#c678dd}
.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e06c75}
.hljs-literal{color:#56b6c2}.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string
,.hljs-regexp,.hljs-string{color:#98c379}.hljs-built_in,.hljs-class .hljs-title,
.hljs-title.class_{color:#e6c07b}.hljs-attr,.hljs-number,.hljs-selector-attr,
.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,
.hljs-variable{color:#d19a66}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,
.hljs-symbol,.hljs-title{color:#61aeee}.hljs-emphasis{font-style:italic}
.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}
}