-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
88 lines (80 loc) · 1.37 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
html,
body {
height: 100%;
width: 100%;
overflow: hidden;
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
body {
background: #272b33;
}
* {
position: absolute;
}
.container {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: 400px;
width: 400px;
}
button {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
position: relative;
border: none;
outline: none;
background: none;
height: 30px;
width: 30px;
cursor: pointer;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}
.left {
height: 2px;
width: 30px;
background-color: white;
transition: all 300ms ease-in-out;
}
.left::after {
position: absolute;
height: 2px;
width: 16px;
background-color: white;
content: "";
left: -3px;
top: -5px;
transform: rotate(-45deg);
transition: all 300ms ease-in-out;
}
.left::before {
position: absolute;
height: 2px;
width: 16px;
background-color: white;
content: "";
left: -3px;
bottom: -5px;
transform: rotate(-135deg);
transition: all 300ms ease-in-out;
}
.changeToCross {
transform: rotate(-45deg);
}
.changeToCross::after {
width: 16px;
transform: rotate(-90deg);
left: 6px;
top: -8px;
transition: all 300ms ease-in-out;
}
.changeToCross::before {
width: 16px;
transform: rotate(-90deg);
left: 6px;
bottom: -8px;
transition: all 300ms ease-in-out;
}