-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
95 lines (79 loc) · 1.44 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
@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400;1,700&display=swap');
body {
margin: 0;
padding: 0;
font-family: 'Karla', sans-serif;
box-sizing: border-box;
background-color: lightblue;
height: 90vh;
}
/* Form styling */
.generator {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.form {
padding: 1em;
margin: 0 auto;
width: 35%;
display: flex;
justify-content: space-around;
margin-bottom: 2em;
}
#colors {
width: 50%;
font-family: 'Karla', sans-serif;
}
#color-btn {
font-family: 'Karla', sans-serif;
border: none;
border-radius: 0.5em;
padding: 0.3em 1em;
font-weight: bold;
}
/* Color pallette styling */
section {
height: 100%;
display: flex;
justify-content: space-around;
}
.color-col {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.color-disp,
.color-hex {
cursor: pointer;
}
.color-disp {
width: 100%;
height: 100%;
}
/* Media queries */
@media screen and (max-width: 1100px) {
.form {
width: 50%;
}
}
@media screen and (max-width: 800px) {
.form {
width: 80%;
}
}
@media screen and (max-width: 450px) {
.form {
width: 90%;
justify-content: space-between;
}
#colors {
width: 40%;
}
#color-btn {
font-size: x-small;
}
}