-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathstyle.css
125 lines (103 loc) · 1.6 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
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
121
122
123
124
125
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaina+2:wght@500&display=swap');
* {
box-sizing: border-box;
font-family: 'Baloo Bhaina 2', cursive;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
flex-direction: column;
overflow: hidden;
}
.nav-btn {
background: transparent;
border: none;
cursor: pointer;
font-size: 20px;
}
.open-btn {
position: fixed;
top: 12px;
left: 12px;
}
.nav {
position: fixed;
top: 0;
left: 0;
height: 100vh;
/* transform: translateX(-100%); */
}
.slider {
transform: translateX(-100%);
transition: transform 0.4s ease-in-out;
}
.slider.visible {
transform: translateX(0);
}
ul {
list-style-type: none;
}
.logo {
width: 200px;
}
.slider .logo {
width: 150px;
}
.nav-black {
width: 500px;
background-color: black;
border: none;
transition-delay: 0.4s;
}
.nav-black.visible {
transition-delay: 0s;
}
.nav-red {
width: 90%;
background-color: red;
height: 100%;
border: none;
transition-delay: 0.2s;
}
.nav-red.visible {
transition-delay: 0.2s;
}
.nav-main {
height: 100%;
width: 90%;
padding: 50px 35px;
background-color: white;
margin: 0;
border: none;
transition-delay: 0s;
}
.nav-main.visible {
transition-delay: 0.4s;
}
.nav-main button.close-btn {
position: relative;
right: -150px;
color: grey;
top: -30px;
opacity: 0.7;
}
a {
text-decoration: none;
font-size: 20px;
color: rgb(97, 91, 91);
}
li {
margin: 10px 0;
}
.list {
padding: 0;
}
.nav-btn:active {
transform: scale(0.95);
}
p {
font-size: 23px;
}