all repos — honk @ ddc61615a1aafa81de8da6e6c55697e11e134bd9

my fork of honk

views/style.css (view raw)

  1$bg-page: #305;
  2$bg-dark: #002;
  3$fg: #dde;
  4$fg-subtle: #aab;
  5$fg-limited: #a79;
  6
  7body {
  8	background: $bg-page;
  9	color: $fg;
 10	font-size: 1em;
 11	word-wrap: break-word;
 12	font-family: sans-serif, "Noto Color Emoji";
 13	line-height: 1.2;
 14}
 15pre, code {
 16	white-space: pre-wrap;
 17}
 18blockquote {
 19	margin-left: 0em;
 20	padding-left: 0.5em;
 21	border-left: 1px solid $fg-subtle;
 22}
 23table {
 24	display: block;
 25	max-width: 100%;
 26	overflow-x: auto;
 27}
 28a {
 29	color: $fg;
 30}
 31form, input, textarea {
 32	font-family: monospace, "Noto Color Emoji";
 33}
 34p {
 35	margin-top: 1em;
 36	margin-bottom: 1em;
 37}
 38input {
 39	background: $bg-page;
 40	color: $fg;
 41	font-size: 1.0em;
 42	line-height: 1.2em;
 43	padding: 0.4em;
 44}
 45#honkform input {
 46	font-size: 0.8em;
 47}
 48body > header {
 49	margin: 1em auto;
 50	font-size: 1.5em;
 51}
 52body > header span {
 53	margin-left: 2em;
 54}
 55body > header p {
 56	padding: 1em;
 57}
 58header > details {
 59	background: $bg-page;
 60	padding: 1em 1em 1em 1em;
 61	position: fixed;
 62	top: 0;
 63	left: 0;
 64	display: inline;
 65	max-height: calc(100% - 1em);
 66	overflow: auto;
 67	opacity: 0.7;
 68}
 69header > details[open] {
 70	padding: 1em 1em 0em 1em;
 71	background: $bg-dark;
 72	border: 1px solid $fg;
 73	margin-bottom: 1em;
 74	opacity: 1.0;
 75}
 76header > details li {
 77	margin: 1em 0em 1em 0em;
 78}
 79details summary {
 80	display: inline;
 81}
 82@supports (-moz-appearance:none) {
 83	details summary {
 84		display: list-item;
 85	}
 86}
 87main {
 88	max-width: 1200px;
 89	margin: auto;
 90	font-size: 1.5em;
 91}
 92.info {
 93	background: $bg-dark;
 94	border: 1px solid $fg;
 95	margin-bottom: 1em;
 96	padding: 0em 1em 0em 1em;
 97}
 98.info div {
 99	margin-top: 1em;
100	margin-bottom: 1em;
101}
102label {
103	font-size: 0.8em;
104}
105label.button, button, select {
106	font-size: 16px;
107	font-family: monospace;
108	color: $fg;
109	background: $bg-page;
110	border: 1px solid $fg;
111	padding: 0.5em;
112	white-space: nowrap;
113}
114.buttonarray {
115	margin-top: -2.0em;
116}
117.buttonarray button, .buttonarray > span {
118	margin-top: 2.0em;
119	display: inline-block;
120}
121button a {
122	text-decoration: none;
123}
124form {
125	margin-top: 1em;
126}
127textarea {
128	padding: 0.5em;
129	font-size: 1em;
130	background: $bg-page;
131	color: $fg;
132	width: 600px;
133	height: 8em;
134	margin-bottom: 0.5em;
135	box-sizing: border-box;
136	max-width: 100%;
137}
138input[type="checkbox"] {
139	position: fixed;
140	top: -9999px;
141}
142input[type="checkbox"] + span:after {
143	content: "no";
144}
145input[type="checkbox"]:checked + span:after {
146	content: "yes";
147}
148input[type="checkbox"]:focus + span:after {
149	outline: 1px solid $fg;
150}
151input[type=file] {
152	display: none;
153}
154
155.honk {
156	margin: auto;
157	background: $bg-dark;
158	border: 1px solid $fg;
159	border-radius: 1em;
160	margin-bottom: 1em;
161	padding-left: 1em;
162	padding-right: 1em;
163	padding-top: 0;
164	overflow: hidden;
165
166	#honkform {
167		padding: 1em;
168		border: 1px solid $fg;
169	}
170	a {
171		color: $fg;
172	}
173	header {
174		white-space: nowrap;
175		overflow: hidden;
176		text-overflow: ellipsis;
177		font-size: 0.8em;
178		line-height: 1.1;
179		margin-top: 1em;
180		height: 64px;
181		.clip a {
182			color: $fg-subtle;
183		}
184		img {
185			float: left;
186			margin-right: 1em;
187			width: 64px;
188			height: 64px;
189		}
190		p {
191			margin-top: 0px;
192		}
193	}
194	.actions button {
195		margin-left: 4em;
196		margin-top: 2em;
197	}
198	.noise {
199		line-height: 1.4;
200		code {
201			.kw { font-weight: bold; }
202			.bi { font-weight: bold; }
203			.st { color: $fg-subtle; }
204			.nm { color: #ba88ff; }
205			.op { color: #ba88ff; }
206			.tp { font-weight: bold; }
207			.cm { color: $fg-subtle; font-style: italic; }
208			.al { color: #aaffbb; }
209			.dl { color: #ffaabb; }
210
211		}
212	}
213	details.actions summary {
214		color: $fg-subtle;
215	}
216}
217.subtle {
218	.noise {
219		color: $fg-subtle;
220		font-size: 0.8em;
221	}
222	.noise a {
223		color: $fg-subtle;
224	}
225}
226.limited {
227	border: 1px solid $fg-limited;
228	color: $fg-limited;
229	.noise {
230		color: $fg-limited;
231	}
232	.noise a {
233		color: $fg-limited;
234	}
235	details.actions summary {
236		color: $fg-limited;
237	}
238}
239details.noise[open] summary {
240	display: none;
241}
242h1, h2 {
243	font-size: 1.2em;
244}
245h3, h4 {
246	font-size: 1.1em;
247}
248
249img:not(.emu) {
250	background: $bg-page;
251}
252img, video {
253	max-width: 100%;
254	max-height: 600px;
255}
256.noise img:not(.emu) {
257	display: block;
258}
259img.emu {
260	width: 2em;
261	height: 2em;
262	vertical-align: middle;
263	margin: -2px;
264	object-fit: contain;
265}
266@media screen and (max-width: 740px) {
267	body {
268		font-size: 12px;
269	}
270	.honk header {
271		height: 52px;
272	}
273	.honk header img {
274		width: 48px;
275		height: 48px;
276	}
277}