-
Notifications
You must be signed in to change notification settings - Fork 16
/
userstyle.css
169 lines (143 loc) · 3.99 KB
/
userstyle.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
/*******************************************************************************
* Nord2 - A sub-theme of Joplin's Built-in Nord theme.
*
* Latest Version: https://github.com/mattsbennett/joplin-Nord2
* Designed by: Matthew Bennett
* Goals: Readability, even, mid-contrast, minimalism.
*
* userstyle.css: Custom stylesheet for rendered Markdown.
******************************************************************************/
/* Variables ---------------------------------------------------------------- */
:root {
/* Nord2 values */
--lighter-grey: hsla(0, 0%, 95%, 1);
--light-grey: hsla(0, 0%, 85%, 1);
--mid-grey: hsla(0, 0%, 70%, 1);
--font-sans: "SF Pro Text", "Roboto", sans-serif;
--font-mono: "Fira Code", monospace;
/* Nord values */
--nord-highlight: #00AEEF;
--nord-sidebar-selection: rgb(94, 129, 172);
--nord-sidebar: rgb(67, 76, 94);
--nord-note-list: rgb(46, 52, 64);
--nord-note-list-selected: rgb(129, 161, 193);
/* Nord derivative values */
--nord-sidebar-selection-dark: hsla(213, 32%, 32%, 1);
--nord-highlight-light: hsla(196, 100%, 67%, 1);
--nord-sidebar-light: hsla(220, 17%, 40%, 1);
--nord-note-list-background-light: hsla(220, 16%, 25%, 1);
}
/* Base Elements ------------------------------------------------------------ */
body {
font-family: var(--font-sans) !important;
font-weight: 300 !important;
}
h1 {
border-bottom: 1px solid var(--nord-sidebar-light) !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
h7 {
font-weight: 400 !important;
}
ul {
margin-top: 0 !important;
}
li {
margin-bottom: 0 !important;
}
pre {
background-color: var(--nord-note-list) !important;
border-radius: 2px;
}
blockquote {
border-left-color: var(--mid-grey);
font-style: italic;
opacity: 0.85 !important;
}
#rendered-md {
padding: 3%;
}
/* Custom checkboxes -------------------------------------------------------- */
.checkbox-wrapper input[type="checkbox"] {
margin-left: -3.75em !important;
opacity: 0 !important;
}
.checkbox-wrapper label {
display: inline-block;
padding-left: 25px;
position: relative;
}
.checkbox-wrapper label::before,
.checkbox-wrapper label::after {
content: "";
display: inline-block;
position: absolute;
}
/* The fake checkbox */
.checkbox-wrapper label::before{
background-color: var(--light-grey);
border: 1px solid var(--light-grey);
height: 16px;
left: 0px;
top: 3px;
width: 16px;
}
.checkbox-wrapper label:hover::before {
opacity: 0.8;
transition: opacity 0.15s ease-in;
}
/* Checkmark of the fake checkbox */
.checkbox-wrapper label::after {
border-bottom: 2px solid;
border-left: 2px solid;
color: var(--nord-sidebar);
height: 5px;
left: 4px;
top: 7px;
transform: rotate(-45deg);
width: 9px;
}
/* Hide the checkmark by default */
.checkbox-wrapper input[type="checkbox"] + label::after {
content: none;
}
/* Unhide on the checked state */
.checkbox-wrapper input[type="checkbox"]:checked + label::after {
content: "";
}
/* Add focus styles on the outer-box of the fake checkbox*/
.checkbox-wrapper input[type="checkbox"]:focus + label::before {
outline: var(--nord-highlight-light) auto 2px;
}
/* Checked checkbox label styles */
.md-checkbox .checkbox-label-checked {
font-style: italic;
opacity: 0.65 !important;
}
li.md-checkbox {
margin-bottom: 0.4em !important;
}
/* Inline code -------------------------------------------------------------- */
.inline-code {
border-radius: 2px !important;
border: none !important;
color: var(--nord-highlight-light);
padding: .25em .5em !important;
}
/* Code blocks -------------------------------------------------------------- */
pre {
font-family: var(--font-mono) !important;
}
a {
color: var(--nord-highlight-light);
}
/* Resource icons (pdf etc) ------------------------------------------------- */
.resource-icon {
background-color: var(--nord-highlight-light) !important;
top: .35em !important;
}