-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
151 lines (149 loc) · 2.78 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
@import url('https://fonts.googleapis.com/css2?family=Comforter&family=Roboto+Slab:wght@800&display=swap');
* {
margin: 0;
padding: 0;
font-family: 'Comforter', cursive;
font-family: 'Roboto Slab', serif;
}
body {
/* min-height: 100vh;
background-color: rgb(8, 8, 8) */
background-color: black;
background-repeat: no-repeat;
background-size: cover;
}
.navigation {
position: fixed;
top: 20px;
left: 20px;
bottom: 20px;
width: 70px;
border-radius: 10px;
border-left: 5px solid blue;
background: blue;
transition: width 0.5s;
overflow-x: hidden;
}
/*active frome javascript its work like hover*/
.navigation.active {
width: 300px;
}
.navigation ul {
position: absolute;
top: 0;
left: 0;
width: 100%;
padding-left: 5px;
padding-top: 40px;
}
.navigation ul li {
position: relative;
list-style: none;
width: 100%;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
}
.navigation ul li.active {
background: rgb(2, 2, 2);
}
/* corner */
.navigation ul li b:nth-child(1) {
position: absolute;
top: -20px;
height: 20px;
width: 100%;
background: black;
display: none;
}
.navigation ul li b:nth-child(1)::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-bottom-right-radius: 20px;
background: blue;
}
.navigation ul li b:nth-child(2) {
position: absolute;
bottom: -20px;
height: 20px;
width: 100%;
background: black;
display: none;
}
.navigation ul li b:nth-child(2)::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-top-right-radius: 20px;
background: blue;
}
.navigation ul li.active b:nth-child(1),
.navigation ul li.active b:nth-child(2) {
display: block;
}
.navigation ul li a {
position: relative;
display: block;
width: 100%;
display: flex;
text-decoration: none;
color: white;
}
.navigation ul li.active a {
color: rgb(253, 250, 250);
}
.navigation ul li a .icon {
position: relative;
display: block;
min-width: 60px;
height: 60px;
line-height: 60px;
text-align: center;
}
.navigation ul li a .icon ion-icon {
font-size: 1.5em;
}
.navigation ul li a .title {
position: relative;
display: block;
padding-left: 10px;
line-height: 47px;
white-space: normal;
}
.toggle {
position: fixed;
top: 20px;
right: 20px;
width: 50px;
height: 50px;
background: blue;
border-radius: 10px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.toggle.active {
background: red;
}
.toggle ion-icon {
position: absolute;
color: white;
font-size: 34px;
display: none;
}
.toggle ion-icon.open,
.toggle.active ion-icon.close {
display: block;
}
/* active work hover */
.toggle ion-icon.close,
.toggle.active ion-icon.open {
display: none;
}