-
Notifications
You must be signed in to change notification settings - Fork 0
/
typst-style.css
183 lines (158 loc) · 3.33 KB
/
typst-style.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
@font-face {
font-family: Inter;
src: local('Inter'),
url('https://interactive-examples.mdn.mozilla.net/media/fonts/Inter.var.woff2');
}
body {
margin: 0;
padding: 0;
background-color: #1a1b26;
color: rgba(156, 163, 175, 1);
font-family: BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
.flex-row {
display: flex;
flex-direction: row;
}
.flex-column {
display: flex;
flex-direction: column;
}
.preview {
display: flex;
flex-direction: column;
}
.preview-panel {
padding: 20px;
min-height: 100%;
background-color: white;
overflow: scroll;
}
.typst-cetz-elem {
/* pointer-events: bounding-box; */
pointer-events: all;
}
#svg-edit-menu {
position: absolute;
/* Reset */
list-style-type: none;
margin: 0;
padding: 0;
/* Misc */
border: 1px solid #cbd5e0;
border-radius: 0.25rem;
background-color: #f7fafc;
}
.editor-menu {
padding: 0 0.61rem;
font-family: BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
border: 0px solid #cbd5e0;
border-radius: 0.25rem;
transition: background-color 0.2s;
}
.editor-menu:hover {
cursor: pointer;
/* border rect */
background-color: hsla(0, 0%, 100%, 0.15);
}
.hidden {
/* The menu is hidden at first */
display: none;
}
.menu-item {
white-space: nowrap;
}
.menu-item span {
float: left;
}
.menu-item input {
float: right;
}
.editor-action-group,
.editor-menu-group {
display: inline-block;
border-width: 1px;
border-radius: 8px;
border: 1px solid #333;
padding: 3px;
}
#insert-name {
max-width: 80px;
}
.editor-code-select {
appearance: none;
/* safari */
-webkit-appearance: none;
/* other styles for aesthetics */
width: 6.5em;
background-color: hsla(0, 0%, 100%, 0.1);
transition: color 0.3s;
}
.editor-code-select:focus,
.editor-code-select:focus-visible {
outline: none;
}
.editor-code-select:hover,
.editor-code-select:focus,
.editor-code-select:focus-visible {
color: #fff;
}
.editor-code-select,
.editor-code-select option {
text-overflow: ellipsis;
padding: 0.125rem 0.25em;
font-size: 1rem;
border: 1px solid hsla(0, 0%, 100%, 0.1);
border-radius: 0.25rem;
color: #888;
cursor: pointer;
font-size: 0.9em;
font-family:
ui-monospace,
SFMono-Regular,
Menlo,
Monaco,
Consolas,
Liberation Mono,
Courier New,
monospace;
}
.editor-code-select option {
background-color: #1a1b26;
}
.editor-input-box {
background-color: #1a1b26;
border: 1px solid hsla(0, 0%, 100%, 0.1);
border-radius: 0.25rem;
transition: border-color 0.2s;
color: #e5e5e5;
font-family:
ui-monospace,
SFMono-Regular,
Menlo,
Monaco,
Consolas,
Liberation Mono,
Courier New,
monospace;
}
.editor-input-box:focus,
.editor-input-box:focus-visible {
outline: none;
border-color: hsla(0, 0%, 100%, 0.5);
}
.editor-input-button {
background-color: #1a1b26;
border-radius: 0.25rem;
border: 1px solid #a3a3a3;
color: #e5e5e5;
transition: border-color 0.3s;
font-weight: 500;
font-family: Inter, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
.editor-input-button:hover {
border-color: #e5e5e5;
}