-
Notifications
You must be signed in to change notification settings - Fork 0
/
popover.css
121 lines (104 loc) · 2.01 KB
/
popover.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
.popover {
background: white;
position: absolute;
user-select: none;
left: 0;
right: 0;
background: white;
max-width: 400px;
text-align: center;
margin: auto;
box-shadow: rgba(72,72,72,0.29804) 0px 12px 40px,rgba(84,70,35,0.13725) 0px 2px 6px,rgba(0,0,0,0.07843) 0px 0px 2px;
border-radius: 10px;
z-index: 999;
transform: translateX(-112px) translateY(20px);
padding: 0;
text-align: center:;
}
.popover:before {
content: '';
position: absolute;
top: 12px;
left: 0;
right: 0;
width: 100px;
clip: rect(-34px, 12px, 12px, -50px);
box-shadow: rgba(72,72,72,0) 0px 12px 40px,rgba(84,70,35,0.13725) 0px 2px 6px,rgba(0,0,0,0.07843) 0px 0px 2px;
height: 100px;
background: white;
margin: auto;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.popover li {
position: relative;
display: inline-block;
margin: 0;
padding: 30px 10px;
width: 32%;
text-align: center;
}
.popover li:nth-last-child(-n+2) {
padding-top: 0;
}
.popover li img {
width: 60px;
height: 60px;
background-color: #FAFAFA;
border-radius: 50%;
margin-bottom: 6px;
}
.popover li a {
font-weight: 300;
}
.popover li a span {
color: rgba(0, 0, 0, .4 );
width: 100%;
text-align: center;
display: inline-block;
}
.popover li a:hover {
text-decoration: none;
}
.popover li a:hover span {
color: rgba(0, 0, 0, .8);
}
@media (max-width: 600px) {
.popover {
max-width: 90%;
width: 100%;
transform: translateX(0) translateY(20px);
display: block !important;
position: relative;
background: none;
box-shadow: none;
}
.popover:before {
content: none;
}
.popover li {
padding: 0 6px;
width: 10%;
}
.popover li img {
width: 30px;
height: 30px;
background-color: #FAFAFA;
border-radius: 50%;
margin-bottom: 0;
}
.popover li a span {
display: none;
}
#aboutmg, #social {
display: none
}
nav {
text-align: center;
padding-top: 20px;
width: 100%;
}
nav hr {
display: none;
}
}