all repos — honk @ 2816bb2db70efac2361b547a426b4efec7c804ea

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	line-height: 2.5em;
116}
117button a {
118	text-decoration: none;
119}
120form {
121	margin-top: 1em;
122}
123textarea {
124	padding: 0.5em;
125	font-size: 1em;
126	background: $bg-page;
127	color: $fg;
128	width: 600px;
129	height: 8em;
130	margin-bottom: 0.5em;
131	box-sizing: border-box;
132	max-width: 100%;
133}
134input[type="checkbox"] {
135	position: fixed;
136	top: -9999px;
137}
138input[type="checkbox"] + span:after {
139	content: "no";
140}
141input[type="checkbox"]:checked + span:after {
142	content: "yes";
143}
144input[type="checkbox"]:focus + span:after {
145	outline: 1px solid $fg;
146}
147input[type=file] {
148	display: none;
149}
150
151.honk {
152	margin: auto;
153	background: $bg-dark;
154	border: 1px solid $fg;
155	border-radius: 1em;
156	margin-bottom: 1em;
157	padding-left: 1em;
158	padding-right: 1em;
159	padding-top: 0;
160	overflow: hidden;
161
162	#honkform {
163		padding: 1em;
164		border: 1px solid $fg;
165	}
166	a {
167		color: $fg;
168	}
169	header {
170		white-space: nowrap;
171		overflow: hidden;
172		text-overflow: ellipsis;
173		font-size: 0.8em;
174		line-height: 1.1;
175		margin-top: 1em;
176		height: 64px;
177		.clip a {
178			color: $fg-subtle;
179		}
180		img {
181			float: left;
182			margin-right: 1em;
183			width: 64px;
184			height: 64px;
185		}
186		p {
187			margin-top: 0px;
188		}
189	}
190	.actions button {
191		margin-left: 4em;
192		margin-top: 2em;
193	}
194	.noise {
195		line-height: 1.4;
196		code {
197			.kw { font-weight: bold; }
198			.bi { font-weight: bold; }
199			.st { color: $fg-subtle; }
200			.nm { color: #ba88ff; }
201			.op { color: #ba88ff; }
202			.tp { font-weight: bold; }
203			.cm { color: $fg-subtle; font-style: italic; }
204			.al { color: #aaffbb; }
205			.dl { color: #ffaabb; }
206
207		}
208	}
209	details.actions summary {
210		color: $fg-subtle;
211	}
212}
213.subtle {
214	.noise {
215		color: $fg-subtle;
216		font-size: 0.8em;
217	}
218	.noise a {
219		color: $fg-subtle;
220	}
221}
222.limited {
223	border: 1px solid $fg-limited;
224	color: $fg-limited;
225	.noise {
226		color: $fg-limited;
227	}
228	.noise a {
229		color: $fg-limited;
230	}
231	details.actions summary {
232		color: $fg-limited;
233	}
234}
235details.noise[open] summary {
236	display: none;
237}
238h1, h2 {
239	font-size: 1.2em;
240}
241h3, h4 {
242	font-size: 1.1em;
243}
244
245img:not(.emu) {
246	background: $bg-page;
247}
248img, video {
249	max-width: 100%;
250	max-height: 600px;
251}
252.noise img:not(.emu) {
253	display: block;
254}
255img.emu {
256	width: 2em;
257	height: 2em;
258	vertical-align: middle;
259	margin: -2px;
260	object-fit: contain;
261}
262@media screen and (max-width: 740px) {
263	body {
264		font-size: 12px;
265	}
266	.honk header {
267		height: 52px;
268	}
269	.honk header img {
270		width: 48px;
271		height: 48px;
272	}
273}