all repos — honk @ 2d015421d887b4da87dba20410be9554026d5968

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	}
197	details.actions summary {
198		color: $fg-subtle;
199	}
200}
201.subtle {
202	.noise {
203		color: $fg-subtle;
204		font-size: 0.8em;
205	}
206	.noise a {
207		color: $fg-subtle;
208	}
209}
210.limited {
211	border: 1px solid $fg-limited;
212	color: $fg-limited;
213	.noise {
214		color: $fg-limited;
215	}
216	.noise a {
217		color: $fg-limited;
218	}
219	details.actions summary {
220		color: $fg-limited;
221	}
222}
223details.noise[open] summary {
224	display: none;
225}
226h1, h2 {
227	font-size: 1.2em;
228}
229h3, h4 {
230	font-size: 1.1em;
231}
232
233img:not(.emu) {
234	background: $bg-page;
235}
236img, video {
237	max-width: 100%;
238	max-height: 600px;
239}
240.noise img {
241	display: block;
242}
243img.emu {
244	width: 2em;
245	height: 2em;
246	vertical-align: middle;
247	margin: -2px;
248	object-fit: contain;
249}
250@media screen and (max-width: 740px) {
251	body {
252		font-size: 12px;
253	}
254	.honk header {
255		height: 52px;
256	}
257	.honk header img {
258		width: 48px;
259		height: 48px;
260	}
261}