This repository has been archived by the owner on Sep 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Follow.css
100 lines (86 loc) 路 1.72 KB
/
Follow.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
.follow {
display: inline-flex;
position: relative;
overflow: hidden;
align-items: center;
padding-left: 10px;
padding-right: 10px;
background-color: var(--cloud, lightblue);
color: var(--black, black);
margin-left: 2.5px;
margin-right: 2.5px;
border-radius: 100px;
height: 40px;
font-size: 16px;
font-weight: 300;
line-height: 16px;
vertical-align: top;
outline: none;
}
.follow:first-child {
margin-left: 0;
margin-right: 2.5px;
}
.follow:last-child {
margin-right: 0;
margin-left: 2.5px;
}
.follow-icon {
display: block;
margin-left: -10px;
height: 40px;
width: 40px;
border-radius: 100%;
border: 1px solid var(--white, white);
}
.follow-text {
padding-left: 10px;
padding-right: 10px;
}
.follow-icon ~ .follow-text {
padding-left: 5px;
}
.follow .close {
position: absolute;
background-color: var(--cloud, lightblue);
border: 1px solid transparent;
border-top-right-radius: 100px;
border-bottom-right-radius: 100px;
cursor: pointer;
height: 40px;
width: 40px;
right: 10px;
margin-right: -10px;
padding-right: 10px;
display: none;
}
.follow:hover .close,
.follow:focus .close {
display: block;
}
.follow .close:hover,
.follow .close:focus {
border-color: var(--sky, lightblue);
outline: none;
display: block
}
.follow .close:after {
content: attr(data-content);
display: inline-block;
color: var(--stone, darkgray);
font-size: 28px;
line-height: 24px;
font-weight: lighter;
}
.follow.active {
background-color: var(--sky, lightblue);
}
.follow.active .close {
background-color: var(--sky, lightblue);
}
.follow.active .close:hover,
.follow.active .close:focus {
border-color: var(--morning, blue);
outline: none;
display: block
}