-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles-donut.css
112 lines (112 loc) · 1.97 KB
/
styles-donut.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
/* --- Initial Set Up --- */
body {
background-color: rgb(114,179,229);
}
#box {
position: relative;
margin: 3em auto;
height: 30em;
width: 30em;
}
#button--holder {
display: flex;
justify-content: center;
}
#button--sprinkles {
height: 3em;
width: 10em;
color: white;
font-size: 1em;
font-weight: 600;
text-transform: uppercase;
background-color: rgb(114,179,229);
border: 3px solid white;
transition: color .25s ease-in-out, background-color .25s ease-in-out;
}
#button--sprinkles:hover,
#button--sprinkles:focus {
color: rgb(114,179,229);
background-color: white;
}
#button--sprinkles:focus {
outline: 0;
}
/* --- Donut and Icing --- */
.donut {
position: absolute;
border-radius: 100%;
}
.donut--1 {
width: 100%;
height: 100%;
background-color: rgb(247, 209, 181);
}
.donut--2 {
top: 1%;
left: 1.5%;
width: 98%;
height: 98%;
background-color: rgb(227, 136, 74);
}
.icing {
top: 1.5%;
left: 4%;
width: 95%;
height: 95%;
background-color: rgb(245, 86, 168);
}
/* --- Shadows --- */
.shadow {
top: 5%;
left: 10%;
width: 98%;
height: 98%;
background-color: rgba(0, 0, 0, 0.4);
z-index: -1;
}
.donut--shadow__hole--1 {
top: 35%;
left: 35%;
height: 30%;
width: 30%;
background-color: rgb(114, 179, 229);
}
.donut--shadow__hole--2 {
top: 33.5%;
left: 32.5%;
height: 34%;
width: 34%;
background-color: rgba(0, 0, 0, 0.3);
z-index: 1;
}
.donut--shadow__cresent {
top: 35%;
left: 35%;
width: 30%;
height: 30%;
box-shadow: inset -12px 5px 0 3px rgba(0, 0, 0, 0.4);
transform: rotate(260deg);
}
.icing--shadow {
top: 0.5%;
left: -0.5%;
width: 100%;
height: 100%;
box-shadow: inset -12px 5px 0 3px rgba(0, 0, 0, 0.3);
transform: rotate(30deg);
}
/* --- Donut Hole --- */
.donut--1__hole {
top: 34%;
left: 34%;
height: 32%;
width: 32%;
background-color: rgb(247, 209, 181);
}
.donut--2__hole {
top: 33%;
left: 32%;
height: 35%;
width: 35%;
background-color: rgb(227, 136, 74);
}