blob: 8bc8d1d96280171eec173990e14139501cbf4bb3 (
plain)
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
|
/* share-sidebar.css */
.share-sidebar {
position: fixed;
right: 2rem;
bottom: 50%;
transform: translateY(50%);
z-index: 30;
display: none;
}
@media (min-width: 1200px) {
.share-sidebar {
display: block;
}
}
.share-buttons {
display: flex;
flex-direction: column;
gap: 1rem;
}
.share-btn {
width: 44px;
height: 44px;
border-radius: 50%;
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all var(--duration-base) ease;
position: relative;
}
.share-btn:hover {
background: var(--accent);
border-color: var(--accent);
color: #000;
transform: scale(1.1);
}
.share-btn svg {
width: 20px;
height: 20px;
}
/* Tooltip */
.share-btn::after {
content: attr(data-label);
position: absolute;
right: 100%;
top: 50%;
transform: translateY(-50%);
margin-right: 0.75rem;
background: var(--surface);
border: 1px solid var(--border);
padding: 0.4rem 0.8rem;
border-radius: 4px;
white-space: nowrap;
font-size: 0.75rem;
color: var(--text-dim);
opacity: 0;
visibility: hidden;
transition: all var(--duration-base) ease;
pointer-events: none;
}
.share-btn:hover::after {
opacity: 1;
visibility: visible;
margin-right: 1rem;
}
/* Mobile: horizontal strip below article */
@media (max-width: 1199px) {
.share-sidebar {
position: static;
transform: none;
display: flex;
justify-content: center;
margin: 2rem 0;
padding: 2rem 1.5rem;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.share-buttons {
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}
}
@media (prefers-reduced-motion: reduce) {
.share-btn,
.share-btn::after {
transition: none;
}
.share-btn:hover {
transform: none;
}
}
|