-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
119 lines (94 loc) · 2.21 KB
/
styles.css
File metadata and controls
119 lines (94 loc) · 2.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
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
:root {
color-scheme: light dark;
scroll-behavior: smooth;
/* Flexoki by Steph Ango https://stephango.com/flexoki */
--flexoki-black: #100F0F;
--flexoki-paper: #FFFCF0;
--flexoki-blue-900: #12253B;
--foreground: light-dark(var(--flexoki-blue-900), var(--flexoki-paper));
--background: light-dark(var(--flexoki-paper), var(--flexoki-blue-900));
--form-bg: light-dark(color-mix(in oklch, var(--background), var(--flexoki-black) 10%), color-mix(in oklch, var(--background), var(--flexoki-paper) 15%));
--codeColor: #e83e8c;
}
body {
-webkit-font-smoothing: antialiased;
font-family: system-ui, sans-serif;
line-height: 1.5;
color: var(--foreground);
background-color: var(--background);
}
body > * {
width: min(100ch, calc(100vw - 4rem));
margin: 2rem auto;
}
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p { text-wrap: pretty; margin: 1rem 0; }
h1 + p {
font-size: 1.4em;
font-weight: 250;
text-wrap: balance;
}
input, button, textarea, select { font: inherit; }
textarea {
border: 1px solid var(--form);
width: 100%;
padding: 0.5rem;
border-radius: 0.25rem;
margin-bottom: 1rem;
background: var(--form-bg);
font-family: monospace;
resize: vertical;
}
textarea:not([rows]) {
resize: vertical;
height: 30vh;
}
label {
font-weight: bold;
display: block;
margin-top: 2rem;
}
button {
border: 1px solid var(--foreground);
padding: 0.5rem 1rem;
border-radius: 0.25rem;
cursor: pointer;
background: var(--background);
&:hover, &:focus {
background-color: var(--form-bg);
}
}
code {
word-break: break-word;
}
p code {
padding: 0.1rem 0.5rem;
}
table {
margin-top: 2rem;
font-size: 0.8em;
}
th { text-align: left; }
td {
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding: 0.5rem 0.5em 0.5rem 0;
}
td.s { font-family: monospace; }
td code {
color: var(--codeColor);
}
tr:has(td:hover) {
td { background-color: var(--form-bg); }
}
#successIcon {
width: 32px;
height: 32px;
opacity: 0;
}
#successIcon.visible {
opacity: 1;
transition: opacity 600ms linear;
}