-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
124 lines (110 loc) · 1.94 KB
/
style.css
File metadata and controls
124 lines (110 loc) · 1.94 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
120
121
122
123
124
@font-face {
font-family: 'Julia Mono';
src: url('fonts/JuliaMono-Regular.woff2') format('woff2');
}
:root {
color-scheme: light dark;
--bg: #ffffff;
--fg: #000000;
--header-bg: #ffffff;
--header-fg: #000000;
--border: #cccccc;
--panel-bg: #f0f0f0;
--panel-hover: #e0e0e0;
--textarea-bg: #ffffff;
--textarea-fg: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #121212;
--fg: #eeeeee;
--header-bg: #1f1f1f;
--header-fg: #ffffff;
--border: #444444;
--panel-bg: #2a2a2a;
--panel-hover: #3a3a3a;
--textarea-bg: #1e1e1e;
--textarea-fg: #ffffff;
}
}
* {
font-family: 'Julia Mono', monospace;
}
body {
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
background: var(--bg);
color: var(--fg);
}
header {
padding: 0.5em;
padding-bottom: 1.5em;
background: var(--header-bg);
text-align: center;
position: relative;
}
main {
flex: 1;
display: flex;
overflow: hidden;
}
@media (max-width: 1200px) {
main {
flex-direction: column;
}
}
.panel {
flex: 1;
display: flex;
flex-direction: column;
/*border: 1px solid var(--border);*/
border: solid var(--border);
border-width: 2px 1px;
position: relative;
}
textarea {
flex: 1;
border: none;
resize: none;
font-size: 16px;
padding: 1em;
box-sizing: border-box;
background: var(--textarea-bg);
color: var(--textarea-fg);
outline: none;
}
.floating-btn {
position: absolute;
top: 0.6em;
right: 0.6em;
padding: 0.4em 1em;
border: none;
border-radius: 9999px;
background: var(--panel-bg);
color: var(--fg);
font-weight: bold;
font-size: 0.8em;
cursor: pointer;
opacity: 0.7;
transition: opacity 0.2s;
}
.floating-btn:hover {
opacity: 1;
}
#header-toggle {
position: absolute;
right: 1em;
bottom: 0.2em;
}
.toggle-label {
display: flex;
align-items: center;
gap: 0.3em;
cursor: pointer;
}
#font-toggle {
transform: scale(1.2);
cursor: pointer;
}