forked from transitive-bullshit/nextjs-notion-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPageSocial.module.css
127 lines (109 loc) · 1.87 KB
/
PageSocial.module.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
.pageSocial {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
color: var(--fg-color);
}
.action {
position: relative;
border-radius: 50%;
border: 2px solid var(--fg-color-6);
transition: all 300ms ease-out;
width: 3.5em;
height: 3.5em;
margin: 0 0 1em;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-decoration: none !important;
user-select: none;
cursor: pointer;
}
.action:last-child {
margin-bottom: 0;
}
.actionBg {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.actionBg svg {
width: 50%;
height: 50%;
fill: var(--fg-color-6);
}
.actionBgPane {
transition: all 300ms ease-out;
border-radius: 50%;
width: 0;
height: 0;
}
.action:hover {
transition: all 100ms ease-out;
}
.action:hover .actionBgPane {
width: 100%;
height: 100%;
transition: all 100ms ease-out;
}
.action:hover svg {
transition: fill 100ms ease-out;
fill: var(--bg-color);
}
:global(.dark-mode) .action:hover svg {
fill: var(--fg-color);
}
.facebook .actionBgPane {
background: #3b5998;
}
.facebook:hover {
border-color: #3b5998;
}
.twitter .actionBgPane {
background: #2795e9;
}
.twitter:hover {
border-color: #2795e9;
}
.linkedin .actionBgPane {
background: #0077b5;
}
.linkedin:hover {
border-color: #0077b5;
}
.github .actionBgPane {
background: #c9510c;
}
.github:hover {
border-color: #c9510c;
}
.medium .actionBgPane {
background: #00ab6c;
}
.medium:hover {
border-color: #00ab6c;
}
.email .actionBgPane {
background: #777;
}
.email:hover {
border-color: #777;
}
@media only screen and (max-width: 768px) {
.links {
position: relative;
left: 0.5em;
flex-wrap: wrap;
}
.action:last-child {
margin-right: 1em;
}
}