-
Notifications
You must be signed in to change notification settings - Fork 0
/
TheFermioin's Custom CSS.css
358 lines (329 loc) · 8.44 KB
/
TheFermioin's Custom CSS.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
@charset "UTF-8";
/* @settings
name: TheFermion's Custom CSS.
id: thefermion-custom-css-settings
settings:
# Colors
-
id: thefermion-Colors
title: Colors
type: heading
level: 1
collapsed: true
-
id: accent
title: Accent color
description: Accent color of obsidian. Open the dialogue and press save to apply the default accent.
type: variable-color
opacity: false
format: hsl-split
default: '#B05256'
# Typography
-
id: thefermion-typography
title: Typography
type: heading
level: 1
collapsed: true
-
id: font-text
title: Text font
description: Set font for editing and reading views.
type: variable-select
default: STIX Two Text
options:
- YuMincho
- STIX Two Text
- Hiragino Mincho ProN
- SF Pro
- Spectral
- IBM Plex Sans
- Inter
- New York
-
id: font-monospace
title: Monosapce font
description: Set font for places like code blocks and frontmatter.
type: variable-select
quotes: true
default: IBM Plex Mono
options:
- IBM Plex Mono
- SF Mono
- Monaco
-
id: thefermion-highlight-improve
title: Imporve text highlithing
description: Adds border radius and padding to the markdown highlighting.
type: class-toggle
default: true
-
id: thefermion-math
title: STIX Two Math font
description: Set font for math to STIX Two Math.
type: class-toggle
default: true
-
id: thefermion-math-font
title: Improve math renders
description: Fix discrepancies in LaTeX math renders
type: class-toggle
default: true
-
id: thefermion-indent
title: Indent Paragraphs
description: Add indent to the paragraphs like LaTeX document.
default: false
type: class-toggle
-
id: thefermion-justify
title: Justify text
description: Add justification and hyphenation to text in both editor and preview mode.
default: true
type: class-toggle
-
id: thefermion-underline
title: Remove underlines
description: Eliminate those ugly underlines from the links everywhere.
default: true
type: class-toggle
-
id: thefermion-canvas-font
title: Fix the canvas heading font
description: Changes the heading font to var(--font-text)
default: true
type: class-toggle
-
id: thefermion-canvas-center
title: Center align Canvas headings
description: Well, it does what the title says.
default: true
type: class-toggle
# Fixing UI elements
-
id: thefermion-UI-elements
title: UI elements
type: heading
level: 1
collapsed: true
-
id: thefermion-sidebar-title
title: Sidebar title cutoff
description: Specify the wrapping of title in the left sidebar.
type: class-select
default: thefermion-sidebar-title-nowrap
options:
-
label: "No wrap"
value: thefermion-sidebar-title-nowrap
-
label: Wrap
value: thefermion-sidebar-title-wrap
-
id: thefermion-image
title: Center align image
description: This will align the images on both editor and reader view to center.
type: class-toggle
default: true
-
id: file-line-width
title: File line width
description: Set visible space inside the editor that text can fill
type: variable-number
default: 700
format: px
-
id: thefermion-settings-shadow
title: Dim background
description: Add shadow in the background of settings pane
default: false
type: class-toggle
-
id: thefermion-external-link
title: Remove Link icon
description: Removes the ugly url icon that is present right next to any external links.
default: true
type: class-toggle
-
id: thefermion-settings-pane
title: Improve settings
description: Change size and poisiton.
type: class-select
default: thefermion-settings-improve
options:
-
label: Normal
value: thefermion-settings-improve
-
label: Mini
value: thefermion-settings-mini
# Plugin settings
-
id: thefermion-plugin
title: Plugins
type: heading
level: 1
collapsed: true
# Plugin settings:: Pandoc
-
id: thefermion-plugin-pandoc
title: Pandoc
type: heading
level: 2
collapsed: true
-
id: thefermion-pandoc-text-deco
title: Text decoration
description: Fixes the size and rotation of the pandoc reference list plugin's icon in the sidebar.
type: class-toggle
default: true
-
id: thefermion-pandoc-citation-accent
title: Pandoc citation accent
description: Changes the citation accent of pandoc references in editor and reading view.
type: class-toggle
default: true
# Plugin settings:: BCP
-
id: thefermion-plugin-bcp
title: Better Command Palette
type: heading
level: 2
collapsed: true
-
id: thefermion-bcp
title: Remove border and title
description: Remove the border and title from the BCP pane. Looks ugly!!
type: class-toggle
default: true
# Plugin settings:: Folder Notes
-
id: thefermion-plugin-foldernote
title: Folder Notes
type: heading
level: 2
collapsed: true
-
id: thefermion-foldernote
title: Decrease underline thickness
description: Reduces the underline thickness of the folder notes title.
type: class-toggle
default: true
*/
/* -----------Typography----------------- */
/** FIX CANVAS FONT */
.thefermion-canvas-font.canvas-path-label,
.canvas-node-label {
font-family: var(--font-text);
}
.thefermion-canvas-center.canvas-node-content h1 {
text-align: center;
}
/** math font */
.thefermion-math mjx-math.MJX-TEX {
font-family: STIX Two Math !important;
}
.thefermion-math-font .cm-s-obsidian span.cm-math,
.thefermion-math-font .cm-s-obsidian span.hmd-fold-math-placeholder {
font-style: normal;
}
/** justify text */
.thefermion-justify .markdown-preview-view,
.thefermion-justify .markdown-rendered p,
.thefermion-justify .cm-s-obsidian {
text-align: justify;
hyphens: auto;
}
/** highlightr color fix */
.thefermion-highlight-improve .cm-s-obsidian span.cm-formatting-highlight,
.thefermion-highlight-improve .cm-s-obsidian span.cm-highlight,
.thefermion-highlight-improve .markdown-rendered mark {
/* background-color: rgba(var(--anp-highlight-color), 0.3);
color: rgb(var(--ctp-text)); */
border-radius: 5px;
padding: 2px;
}
/** decrease the underline thickness */
.thefermion-underline .external-link,
.thefermion-underline .markdown-source-view.mod-cm6 .cm-link .cm-underline,
.thefermion-underline .markdown-source-view.mod-cm6 .cm-url .cm-underline {
/* text-decoration-thickness: 1px; */
text-decoration: none;
}
/* ------------UI elements---------------- */
/** center the image */
.thefermion-image img {
display: block;
margin-left: auto;
margin-right: auto;
}
/** title cutoff in sidebar */
body.thefermion-sidebar-title-nowrap {
--nav-item-white-space: nowrap;
}
body.thefermion-sidebar-title-wrap {
--nav-item-white-space: wrap;
}
/** improving the settings pane */
.thefermion-settings-improve .modal.mod-settings {
max-width: none;
width: 70%;
height: 80%;
border: none;
overflow: hidden;
}
.thefermion-settings-mini .modal.mod-settings {
max-width: none;
width: 70%;
height: 50%;
border: none;
overflow: hidden;
align-self: flex-end;
}
.thefermion-settings-shadow .modal-bg {
background-color: rgba(17, 17, 27, 0.85);
backdrop-filter: blur(5px);
}
/** indenting the text like LaTeX */
.thefermion-indent div.cm-line,
.thefermion-indent p {
text-indent: 1.2em;
}
.thefermion-indent div.HyperMD-header {
text-indent: 0 !important;
}
/** turn off the link icon */
.thefermion-external-link .external-link {
background-image: none;
padding-right: 0px;
}
/* ------------Plugins---------------- */
/** fix the pandoc icon */
.thefermion-pandoc-text-deco.pwc-tooltips
:not(.cm-link-alias)
> :is(.pandoc-citation, .at).is-resolved {
text-decoration: none;
}
body.thefermion-pandoc-citation-accent {
--pwc-citation-color: var(--text-accent);
}
/** better command platte border */
.thefermion-bcp .better-command-palette .better-command-palette-title {
display: none;
}
.thefermion-foldernote.folder-note-underline
.has-folder-note
.nav-folder-title-content {
text-decoration-thickness: 1px;
}
/**! NEED TO ADD THESE IN SETTINGS */
ruby > rt {
font-size: 60%;
opacity: 0;
}
ruby:hover > rt {
opacity: 1;
}
.embed-underline .internal-embed:not(.pdf-embed) {
text-decoration: none;
}