-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
305 lines (258 loc) · 5.08 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
html, body {
margin: 0px;
height: 100%;
overflow: hidden;
user-select: none;
color: #FFF
}
button {
margin-left: 20px;
width: 150px;
height: 25px;
text-align: center;
font-size: 18px;
background-color: #DDD;
outline: none;
border: none;
color: #000;
cursor: pointer;
border-radius: 20px;
transition: 0.2s;
box-shadow: 0 3px #000;
}
#color-picker {
border_radius: 10%;
width: 45px;
height: 45px;
}
button:active {
transform: translateY(3px);
box-shadow: 0 1px #999;
}
button:hover {
background-color: #CCF;
}
#content {
grid-area: content;
}
#dropdown {
background-color: #444;
color: #fff;
fontSize: 40;
margin: 0px 5px;
width: 60px;
height: 30px;
border-radius: 8px;
}
#dropdown:hover {
background-color: #CCF;
color: #000;
}
.header {
grid-area: header;
font-family: Helvetica, sans-serif
}
.footer{
grid-area: footer;
}
#sidebar {
grid-area: sidebar;
overflow-y: scroll;
width: 80px;
}
.sideBarItem {
max-height: 50px;
max-width: 50px;
padding:5px;
}
.sideBarItem img {
max-height: 50px;
max-Width:50px;
}
.colorPalette {
grid-area: colorP;
display:flex;
flex-direction:grid;
flex-flow: wrap;
}
.options {
grid-area: options;
padding: 15px;
}
.colorSwatches {
box-sizing: border-box;
width: 40px;
height: 40px;
max-height: 40px;
max-width: 40px;
margin: 5px;
transition: 0.2s;
}
.colorSwatches:hover {
transform: scale(1.15);
}
.wrapper {
display: grid;
height: 100%;
grid-template-columns: 70px 230px minmax(300px, 1fr);
grid-template-rows: 35px minmax(300px, 1fr) 160px;
grid-template-areas:
"header header header"
"sidebar content content"
"colorP colorP options";
background-color: #fff;
color: #444;
}
.box {
background-color: #444;
color: #fff;
font-size: 150%;
}
.header {
background-color: #999;
color: #000;
}
/* For the manuals that get shown for each tool*/
#manual {
background: #402F1D;
color: rgba(255, 255, 255, 0.99);
position: absolute;
top: 50%;
left: 50%;
margin-top: -200px;
margin-left: -200px;
opacity: 0.9;
text-align: center;
font-size: 20px;
width: 400px;
height: 400px;
border-radius: 5%;
box-shadow: 3px 3px 0 0 #503F2D;
}
#manual ol {
padding-top: 25px;
text-align: left;
}
#manual ol li {
margin: 10px;
}
#manual ul {
padding-top: 25px;
text-align: left;
}
#manual ul li {
margin: 10px;
}
#manual p {
margin: 25px;
text-align: left;
}
/* Escape button on the manual */
#manual button {
top: 15px;
color: #F00;
background: #FFF;
position: absolute;
left: 0px;
width: 30px;
height: 30px;
transition: 0.3s;
}
#manual button:hover {
background: #F00;
color: #FFF;
}
/* undo manager buttons */
.undo-manager {
width: 70px;
height: 25px;
}
/***************************************************
Title: How TO - Hoverable Dropdown
Author: W3Schools
Date: N/a
Code version: N/a
Availability: https://www.w3schools.com/howto/howto_css_dropdown.asp
Notes: The author also wrote the comments in the code below this citation
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {background-color: #ddd;}
.dropdown:hover .dropdown-content {display: block;}
.dropdown:hover .dropbtn {background-color: #3e8e41;}
***************************************************/
/* DROPDOWN BUTTON MENU */
/* The Dropdown Button */
.dropbtn {
display: none;
background-color: #DDD;
color: #000;
font-size: 16px;
width: 100px;
height: 25px;
border: none;
}
/* The container for the drop btn */
.dropdown {
margin-right: 10px;
float: right;
position: relative;
display: none;
}
/* The dropdown content that holds the buttons for dropdown */
.dropdown-content {
border-radius: 5%;
right: 0px;
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
height: 260px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
text-align: center;
padding-right: 12px;
}
/* When the size of the screen gets smaller we display the small menu button */
@media screen and ( max-width: 1300px ) {
.menu-items {
display: none;
}
.dropdown {
display: inline;
}
.dropbtn {
display: inline;
}
}
/* The buttons inside the dropdown */
.dropdown-content button {
color: black;
margin-top: 10px;
text-decoration: none;
display: block;
width: 150px;
height: 25px;
}
/* Change color of dropdown buttons on hover */
.dropdown-content button:hover {
background-color: #ddd;
}
/* Show the dropdown menu when the user hovers it */
.dropdown:hover .dropdown-content {
display: block;
}
/*When dropdown is shown we change the color of it */
.dropdown:hover .dropbtn {
background: #444;
color: #FFF;
}