all repos — honk @ 62be86f8cb9f03011c1e38ace9f589695b3479af

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