-
Notifications
You must be signed in to change notification settings - Fork 790
/
ft-share-button.scss
117 lines (100 loc) · 2.23 KB
/
ft-share-button.scss
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
/* stylelint-disable no-descending-specificity */
.shareLinks {
display: grid;
grid-auto-flow: column;
grid-template-rows: auto auto;
padding: 12px;
inline-size: max-content;
.header {
color: var(--primary-text-color);
font-size: 18px;
font-weight: bold;
margin-block: 4px 8px;
margin-inline: 0;
display: flex;
justify-content: center;
}
.buttons {
display: flex;
flex-direction: column;
max-inline-size: min-content;
min-inline-size: 150px;
.action {
padding: 6px;
white-space: initial;
}
}
.divider {
background: var(--tertiary-text-color);
grid-row: span 3;
margin-block: 0;
margin-inline: 12px;
inline-size: 1px;
}
.youtubeLogo {
block-size: 18px;
inline-size: auto;
@at-root {
.dark &,
.system[data-system-theme*='dark'] & {
filter: brightness(0.868);
}
.black &,
.solarizedDark & {
filter: brightness(0.933);
}
/* no changes for the dracula theme */
.pastelPink &,
.light &,
.solarizedLight &,
.system[data-system-theme*='light'] & {
filter: invert(0.87);
}
}
}
.invidious {
letter-spacing: -0.4px;
.invidiousLogo {
background-size: cover;
display: inline-block;
block-size: 20px;
margin-inline-end: 2px;
inline-size: 20px;
@at-root {
.dark &,
.black &,
.dracula &,
.CatppuccinMocha &,
.hotPink &,
.solarizedDark &,
.system[data-system-theme*='dark'] & {
background-image: url('../../assets/img/invidious-logo-dark.svg');
}
.pastelPink &,
.light &,
.solarizedLight &,
.system[data-system-theme*='light'] & {
background-image: url('../../assets/img/invidious-logo-light.svg');
}
}
}
}
}
@media only screen and (width <= 450px) {
.shareLinks {
grid-auto-flow: row;
margin-inline: auto;
justify-items: center;
max-inline-size: max-content;
.header.invidious {
margin-block-start: 20px;
}
.buttons {
max-inline-size: min-content;
min-inline-size: 180px;
}
.divider {
display: none;
}
}
}