-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
executable file
·62 lines (53 loc) · 990 Bytes
/
Copy pathstyle.css
File metadata and controls
executable file
·62 lines (53 loc) · 990 Bytes
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
/* Constants */
:root {
--phi: 1.618rem;
--width: 50rem;
--bg: #002b36;
--fg: rgba(255, 255, 255, 0.8);
}
/* Light Mode override */
@media (prefers-color-scheme: light) {
:root {
--bg: #fdf6e3;
--fg: rgba(0, 0, 0, 0.8);
}
}
/* Reset */
* { box-sizing: border-box; }
html,
body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
/* Type! */
textarea {
/* Colour theme */
background: var(--bg);
color: var(--fg);
/* Position */
position: absolute;
width: 100%;
inset: 0;
/* Typography */
font-family: Menlo, Consolas, Monaco, Adwaita Mono, Liberation Mono, Lucida Console, monospace;
line-height: var(--phi);
font-size: 1rem;
tab-size: 4;
/* Appearance */
padding-inline: max(calc((100% - var(--width)) / 2), var(--phi));
padding-block: var(--phi);
outline: none;
border: none;
resize: none;
}
/* Prevent loading content flash */
.hidden {
visibility: hidden;
}
/* Note Title */
textarea:first-line {
font-size: var(--phi);
line-height: 2rem;
}