-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
120 lines (101 loc) · 1.84 KB
/
styles.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
* {
box-sizing: border-box;
}
body {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
background-color: #333;
margin: 0;
overflow-x: hidden;
color: #222;
}
.container {
width: 100vw;
background-color: #fafafa;
padding: 1vw 5vw;
min-height: 100vh;
height: 50vh;
transform-origin: top left;
transition: transform 0.5s linear;
}
.container.show-nav {
transform: rotate(-20deg);
}
.circle-container {
position: fixed;
top: -10vw;
left: -10vw;
}
.container.show-nav .circle {
transform: rotate(-70deg);
}
.circle {
background-color: cadetblue;
height: 20vw;
width: 20vw;
border-radius: 50%;
position: relative;
transition: transform 0.5s linear;
}
.circle button {
height: 10vw;
background: transparent;
border: 0;
font-size: 3vw;
color: #fff;
cursor: pointer;
position: absolute;
top: 50%;
left: 50%;
}
.circle button:focus {
outline: 0;
}
.circle button.open {
left: 60%;
}
.circle button.close {
top: 60%;
transform: rotate(90deg);
transform-origin: top left;
}
.content {
max-width: 100vw;
margin: 10vw auto;
}
.content p{
line-height: 2.5vw;
}
.container.show-nav + nav li {
transform: translateX(0);
transition-delay: 0.3s;
}
nav {
position: fixed;
bottom: 3vw;
left: 0;
z-index: 100;
}
nav ul {
list-style-type: none;
padding-left: 2vw;
}
nav ul li {
text-transform: uppercase;
color: #fff;
margin: 2vw 0;
cursor: pointer;
transform: translateX(-100%);
transition: transform 0.4s ease-in;
}
nav ul li i {
font-size: 20px;
margin-right: 1vw;
}
nav ul li:nth-child(2) {
margin-left: 2vw;
transform: translateX(-140%);
}
nav ul li:nth-child(3) {
margin-left: 3vw;
transform: translateX(-170%);
}