-
Notifications
You must be signed in to change notification settings - Fork 1
/
color.css
78 lines (66 loc) · 1.16 KB
/
color.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
/* The Great RGB Color Game by Colt Steele (https://www.udemy.com/the-web-developer-bootcamp) */
body {
background-color: #232323;
margin: 0;
font-family: "Montserrat","Franklin Gothic";
}
h1 {
color: white;
text-align: center;
background: steelblue;
margin: 0;
padding: 20px 0;
line-height: 1.1;
font-weight: normal;
text-transform: uppercase;
}
nav {
background: white;
height: 30px;
text-align: center;
color: black;
}
.square {
width: 30%;
background: purple;
padding-bottom: 30%;
margin: 1.66%;
float: left;
border-radius: 20%;
transition: background 0.7s;
-webkit-transition: background 0.7s;
-moz-transition: background 0.7s;
}
#colorDisplay {
font-size: 200%;
}
#message {
display: inline-block;
width: 20%;
}
#container {
max-width: 600px;
margin: 0 auto;
}
.selected {
color: white;
background: steelblue;
}
button {
border: none;
background: none;
text-transform: uppercase;
height: 100%;
font-weight: 700;
color: steelblue;
letter-spacing: 1px;
font-size: inherit;
transition: all 0.4s;
-webkit-transition: all 0.4s;
-moz-transition: all 0.4s;
outline: none;
}
button:hover {
color: white;
background: steelblue;
}