-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
177 lines (154 loc) · 2.88 KB
/
style.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
html {
background-color: #fee;
font-family: Arial, sans-serif;
color: #033;
}
/* Set the page to fill the window size and divide into flex boxes */
body {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 100vw;
height: 100vh;
margin: 0;
padding: 0;
}
header {
display: flex;
justify-content: space-around;
align-items: center;
}
header h1 {
color: #055;
margin: 0.5vh;
background-color: #fdd;
padding: 0.5vh 0.5vw;
border-radius: 5%;
}
/* Main section contains the sketcher and tools */
main {
background-color: #fcc;
flex: 1;
display: flex;
justify-content: space-around;
align-items: center;
gap: 5vw;
margin: 0 1vw;
border-radius: 1%;
}
/* Container for the controls */
#control-div {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
/* Empty divs on sides of main section to aid spacing */
.main-flex-left {
flex: 1;
}
.main-flex-right {
flex: 5;
}
/* Two divs for draw settings */
#controls,
#color-div {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: stretch;
background-color: #fbb;
border-radius: 2%;
font-weight: bold;
}
/* Empty divs on top and bottom to aid spacing the controls */
.control-flex {
flex: 1;
min-height: 1px;
}
#color-div {
aspect-ratio: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 1vh;
border-radius: 3%;
}
#color-div input {
width: 90%;
height: 90%;
border: 0;
padding: 0;
margin-top: 1vh;
}
/* Maintain consistent button size and style in button click events */
.button,
.button:hover,
.button-click {
padding: 1vh;
border-radius: 5%;
}
.button {
background-color: #faa;
}
.button:hover {
background-color: #f99;
}
/* Toggled on and off (replacing .button) during click events */
.button-click {
background-color: #f88;
}
/* Toggled on and off when lighten or darken mode is turned on */
.option-select {
background-color: #f77;
padding: 2px;
border-radius: 5%;
}
#grid-slider {
display: flex;
flex-direction: column;
align-items: flex-start;
}
/* Anchor for the grid object created by createGrid */
#sketch {
aspect-ratio: 1;
background-color: #fbb;
height: 85vh;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding: 1vh;
border-radius: 1%;
margin: 1vh;
}
/* Aligns row objects created by createRow */
.row {
flex: 1 1 0;
min-height: 1px;
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
/* Aligns square objects created by createDiv */
.square {
flex: 1 1 0;
min-height: 1px;
height: 100%;
background-color: white;
border: 1px solid #aaa;
}
footer {
display: flex;
justify-content: space-around;
align-items: center;
}
footer h5 {
margin: 0;
}
ul {
list-style-type: none;
padding: 1vw;
}