-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.css
94 lines (94 loc) · 1.73 KB
/
sidebar.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin-right: 100px !important;
}
.my-extension-sidebar {
position: fixed;
right: 0;
top: 0;
height: 100%;
width: 78px;
background: #11101d;
padding: 6px 14px;
z-index: 99;
transition: all 0.5s ease;
}
.my-extension-sidebar i {
color: #fff;
height: 60px;
min-width: 50px;
font-size: 28px;
text-align: center;
line-height: 60px;
}
.my-extension-sidebar .nav-list {
margin-top: 20px;
height: 100%;
}
.my-extension-sidebar li {
position: relative;
margin: 8px 0;
list-style: none;
}
.my-extension-sidebar li a:hover i {
transition: all 0.5s ease;
color: #11101d;
}
.my-extension-sidebar li .tooltip {
position: absolute;
top: -20px;
right: calc(100% + 15px);
z-index: 2147483647;
background: #fff;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
padding: 6px 12px;
border-radius: 4px;
font-size: 15px;
font-weight: 400;
opacity: 0;
white-space: nowrap;
pointer-events: none;
transition: 0s;
}
.my-extension-sidebar li:hover .tooltip {
opacity: 1;
pointer-events: auto;
transition: all 0.4s ease;
top: 50%;
transform: translateY(-50%);
}
.my-extension-sidebar li a {
display: flex;
height: 100%;
width: 100%;
border-radius: 12px;
align-items: center;
text-decoration: none;
transition: all 0.4s ease;
background: #11101d;
}
.my-extension-sidebar li a:hover {
background: #fff;
}
.my-extension-sidebar li i {
height: 50px;
line-height: 50px;
font-size: 18px;
border-radius: 12px;
}
.my-extension-sidebar li img {
height: 45px;
width: 45px;
object-fit: cover;
border-radius: 6px;
margin-right: 10px;
}
@media (max-width: 420px) {
.my-extension-sidebar li .tooltip {
display: none;
}
}