-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchooser.css
More file actions
128 lines (105 loc) · 2.54 KB
/
chooser.css
File metadata and controls
128 lines (105 loc) · 2.54 KB
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
/*{.final-colors, .base-colors} li { float: left; padding: 5px; margin: 0px; width: 30px; border: solid 2px white;}
.base-colors {list-style: none;}
.final-colors {list-style: none; width: 330px;}*/
/*.clear {clear: both;} */
.final {
display: inline-block;
width: 200px;
height: 200px;
margin-left: 50px;
}
/*From Carson's CSS:*/
:root {
--grid-cell-size: 20px; /* default for very small screens (otherwise undefined) */
font-family: sans-serif;
--bgcolor: lightgray;
background-color: var(--bgcolor);
}
/* Scale our grid sizes to user's screen width */
@media (min-width: 490px) {
:root {
--grid-cell-size: 25px;
}
}
@media (min-width: 600px) {
:root {
--grid-cell-size: 30px;
}
}
@media (min-width: 800px) {
:root {
--grid-cell-size: 40px;
}
}
@media (min-width: 1000px) {
:root {
--grid-cell-size: 50px;
}
}
@media (min-width: 1200px) {
:root {
--grid-cell-size: 60px;
}
}
body {
margin: 10px;
}
h1 {
text-align: center;
}
#baseColors {
display: grid;
grid-template-columns: repeat(19, var(--grid-cell-size));
}
#finalColors {
display: inline-grid;
grid-template-columns: repeat(7, var(--grid-cell-size)); /* best w/odd number */
}
#readout-grid {
display: inline-grid;
grid-template-columns: repeat(3, calc(var(--grid-cell-size) * 4));
height: calc(var(--grid-cell-size) * 6);
max-width: 70px; /* scroll screen instead of wrapping beneath elements to my left */
}
base-el, final-el {
font-size: calc(var(--grid-cell-size) / 4);
line-height: calc(var(--grid-cell-size) / 4);
/*border-radius: calc(var(--grid-cell-size) / 8); causes lockups (performance) */
height: calc(var(--grid-cell-size) / 1.1);
display: block;
color: white;
border-color: var(--bgcolor);
border-style: solid;
border-width: 2px;
cursor: pointer;
padding-left: calc(var(--grid-cell-size) / 20);
padding-top: calc(var(--grid-cell-size) / 20);
}
@keyframes blink {
0% {
border: 2px solid white;
}
100% {
border: 2px solid black;
}
}
/* Highlight a selected cell */
.selected {
animation: blink .6s step-start infinite alternate;
animation-timing-function: ease-in-out;
/*todo: causes lockup w/Chrome ("mousehandler timeout?") */
/*transform: skewY(-20deg);*/
}
.notSelected {
}
button {
width: 100px;
height: 70px;
align-self: center;
cursor: pointer;
border: 3px solid gray;
}
button:hover,
button:focus {
background: white;
}