-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathShareButton.module.css
More file actions
82 lines (70 loc) · 1.4 KB
/
ShareButton.module.css
File metadata and controls
82 lines (70 loc) · 1.4 KB
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
.root {
position: relative;
display: flex;
justify-content: center;
align-items: center;
border-radius: 0px;
height: var(--baseline);
padding: 0 var(--box-padding);
cursor: pointer;
line-height: var(--baseline);
user-select: none;
& svg {
stroke: var(--gray-dark);
}
& span {
padding-left: 10px;
text-transform: none;
color: var(--gray-dark);
}
}
span.linkIcon {
font-family: var(--maru-emoji);
font-size: var(--maru-emoji-normal);
padding: 0;
}
.root:hover {
& span {
font-weight: 600;
}
}
.copiedNotification {
position: absolute;
display: flex;
justify-content: center;
margin: 0;
padding: 0 var(--box-padding);
top: var(--baseline-1of4);
border-radius: 5px;
border: var(--border);
width: calc(200px + 2 * var(--box-padding));
line-height: var(--baseline-1of2);
cursor: auto;
background-color: var(--gray-light);
color: var(--text-color);
}
.copiedNotificationLeft {
left: calc(-1 * (5px + 200px + 2 * var(--box-padding)));
}
.copiedNotificationRight {
right: calc(-1 * (5px + 200px + 2 * var(--box-padding)));
}
/* Variants */
.red {
& span {
color: var(--red);
}
& .copiedNotification {
border: var(--border-red);
background-color: var(--red-light);
}
}
.cyan {
& span {
color: var(--cyan);
}
& .copiedNotification {
border: var(--border-cyan);
background-color: var(--cyan-light);
}
}