all repos — honk @ 16bff20071bfa42a5ac15edce71a9a4e94248520

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.honk #honkform {
163	padding: 1em;
164	border: 1px solid $fg;
165}
166
167.honk a {
168	color: $fg;
169}
170.honk header .clip a {
171	color: $fg-subtle;
172}
173.honk 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}
182.honk header img {
183	float: left;
184	margin-right: 1em;
185	width: 64px;
186	height: 64px;
187}
188.honk header p {
189	margin-top: 0px;
190}
191.honk .actions button {
192	margin-left: 4em;
193	margin-top: 2em;
194}
195.honk .noise {
196	line-height: 1.4;
197}
198.subtle {
199}
200.subtle .noise {
201	color: $fg-subtle;
202	font-size: 0.8em;
203}
204.subtle .noise a {
205	color: $fg-subtle;
206}
207.limited {
208	border: 1px solid $fg-limited;
209	color: $fg-limited;
210}
211.limited .noise {
212	color: $fg-limited;
213}
214.limited .noise a {
215	color: $fg-limited;
216}
217details.noise[open] summary {
218	display: none;
219}
220.inlineform {
221	display: inline;
222}
223.inlineform select {
224}
225.honk details.actions summary {
226	color: $fg-subtle;
227}
228.limited details.actions summary {
229	color: $fg-limited;
230}
231h1, h2 {
232	font-size: 1.2em;
233}
234h3, h4 {
235	font-size: 1.1em;
236}
237
238img:not(.emu) {
239	background: $bg-page;
240}
241img, video {
242	max-width: 100%;
243	max-height: 600px;
244}
245.noise img {
246	display: block;
247}
248img.emu {
249	width: 2em;
250	height: 2em;
251	vertical-align: middle;
252	margin: -2px;
253	object-fit: contain;
254}
255@media screen and (max-width: 740px) {
256	body {
257		font-size: 12px;
258	}
259	.honk header {
260		height: 52px;
261	}
262	.honk header img {
263		width: 48px;
264		height: 48px;
265	}
266}