-
Notifications
You must be signed in to change notification settings - Fork 0
/
colorGenerator.css
executable file
·78 lines (76 loc) · 1.55 KB
/
colorGenerator.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
@import url("colorPalette.css");
:root {
--ContentWidth: 80vw;
--Table1Width: var(--ContentWidth);
--Table1Ratio: 20%;
--Table2Size: calc(var(--ContentWidth) / 27);
}
td, input[type="submit"], input[type="number"] {
background-color: var(--light_orange);
}
th {
background-color: var(--dark_orange);
}
#table2 td {
background-color: white;
}
.table1CellL {
width: var(--Table1Ratio);
}
.table1CellR {
width: calc(100% - --Table1Ratio);
}
#table1 {
width: var(--Table1Width);
margin: auto;
}
#table1 Select {
border: none;
background-color: inherit;
min-width: calc(100% - 1.75rem);
height: 1.25rem;
}
table td, table th, input[type="submit"], input[type="number"] {
border: black 1.5px solid;
}
#table2 td, #table2 th {
/* Just set them all, some of them affect overflow. Didn't bother to check which */
min-height: var(--Table2Size);
min-width: var(--Table2Size);
height: var(--Table2Size);
width: var(--Table2Size);
max-height: var(--Table2Size);
max-width: var(--Table2Size);
}
table {
border-collapse: collapse;
}
#table2 {
text-align: center;
margin: auto;
}
.tableSpacer {
height: 1rem;
}
form {
text-align: center;
}
select:disabled, input[type="radio"]:disabled {
/* for Firefox */
-moz-appearance: none;
/* for Chrome */
-webkit-appearance: none;
color: black;
}
label, input[type="number"] {
margin: 0.25em 0;
}
#table1 td > input[type="text"] {
padding: 0;
border: none;
background-color: inherit;
color: inherit;
width: 100%;
text-align: center;
pointer-events: none;
}