-
Notifications
You must be signed in to change notification settings - Fork 2
/
color.css
128 lines (105 loc) · 2.13 KB
/
color.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/*
mkcolor - a vim color scheme randomizer/previewer
Written in 2020 by QuietMisdreavus <[email protected]>
To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along
with this software. If not, see
<http://creativecommons.org/publicdomain/zero/1.0/>.
*/
body {
background-color: #eee;
font-family: sans-serif;
}
abbr {
font-variant: none;
text-decoration-line: underline;
text-decoration-style: dotted;
}
input.nav-radio {
display: none;
}
.tab {
cursor: pointer;
display: inline-block;
padding: 10px 20px;
margin: 0px 2px;
}
#blocks pre {
display: none;
}
#nav-rust:checked ~ #blocks #block-rust,
#nav-js:checked ~ #blocks #block-js,
#nav-editor:checked ~ #blocks #block-editor,
#nav-ui:checked ~ #blocks #block-ui
{
display: block;
}
#wrapper {
max-width: max-content;
margin: 0 auto;
}
#wrapper > *:not(#settings),
.top-col > *:not(:first-child):not(#blocks),
#form > *:not(:first-child) {
margin-top: 2rem;
}
#demo {
flex-grow: 0 !important;
margin: 0 auto;
}
#colors {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
column-gap: 1rem;
}
#colors > div {
flex: auto;
}
#settings {
columns: 24rem;
margin-top: 1rem;
}
.form-block {
break-inside: avoid;
padding-top: 1rem;
}
#palette-box {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
padding-top: 1rem;
justify-content: center;
}
@media(max-width: 700px) {
#palette-box {
justify-content: space-between;
}
}
#palette-box > div {
padding: 0 1rem;
}
#about {
max-width: 50rem;
margin: 0 auto;
}
.palette .block {
display: inline-block;
width: 1rem;
height: 1rem;
}
#buttons {
margin: 0 auto;
max-width: max-content;
}
#blocks {
padding: 1em;
}
#blocks pre {
font-family: monospace;
margin: 0;
overflow: hidden;
min-width: 85ch;
}