all repos — honk @ 295ec2fa9271db6aac4d03e276a153c5aff25c16

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