-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
165 lines (144 loc) · 3.41 KB
/
content.css
File metadata and controls
165 lines (144 loc) · 3.41 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/**
* TubeSnap - Content Styles
*/
/* 截图按钮 */
.tubesnap-btn {
width: 40px !important;
height: 40px !important;
padding: 8px !important;
margin: 0 4px !important;
border: none !important;
background: rgba(255, 255, 255, 0.1) !important;
cursor: pointer !important;
opacity: 0.9 !important;
transition: all 0.2s ease !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
border-radius: 50% !important;
vertical-align: middle !important;
position: relative !important;
}
.tubesnap-btn:hover {
opacity: 1 !important;
background: rgba(255, 255, 255, 0.2) !important;
}
.tubesnap-btn:active {
transform: scale(0.95) !important;
}
.tubesnap-btn svg,
.tubesnap-btn .tubesnap-btn-icon {
width: 22px !important;
height: 22px !important;
display: block !important;
}
.tubesnap-btn svg {
color: #fff !important;
fill: currentColor !important;
}
.tubesnap-btn .tubesnap-btn-icon {
object-fit: contain !important;
object-position: center !important;
opacity: 0.98 !important;
}
/* 暗黑模式适配 */
html[dark] .tubesnap-btn {
background: rgba(255, 255, 255, 0.08) !important;
}
html[dark] .tubesnap-btn:hover {
background: rgba(255, 255, 255, 0.15) !important;
}
/* 闪光效果 */
.tubesnap-flash {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: white;
opacity: 0.3;
pointer-events: none;
z-index: 999999;
transition: opacity 0.3s ease-out;
}
/* 通知样式 */
.tubesnap-notify {
position: fixed;
top: 80px;
right: 20px;
padding: 12px 20px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
z-index: 10000;
animation: tubesnap-slide-in 0.3s ease-out;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
max-width: 300px;
word-break: break-word;
}
.tubesnap-notify-success {
background: rgba(76, 175, 80, 0.95) !important;
color: white !important;
}
.tubesnap-notify-error {
background: rgba(244, 67, 54, 0.95) !important;
color: white !important;
}
.tubesnap-notify-warning {
background: rgba(255, 152, 0, 0.95) !important;
color: white !important;
}
.tubesnap-notify-info {
background: rgba(33, 150, 243, 0.95) !important;
color: white !important;
}
/* 动画 */
@keyframes tubesnap-slide-in {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes tubesnap-slide-out {
from {
transform: translateX(0);
opacity: 1;
}
to {
transform: translateX(100%);
opacity: 0;
}
}
/* 移动端适配 */
@media (max-width: 768px) {
.tubesnap-btn {
width: 36px !important;
height: 36px !important;
padding: 6px !important;
}
.tubesnap-btn svg,
.tubesnap-btn .tubesnap-btn-icon {
width: 20px !important;
height: 20px !important;
}
}
/* 全屏模式适配 */
.ytp-fullscreen .tubesnap-btn {
z-index: 1000 !important;
}
/* 剧场模式适配 */
.ytp-big-mode .tubesnap-btn {
width: 48px !important;
height: 48px !important;
}
.ytp-big-mode .tubesnap-btn svg,
.ytp-big-mode .tubesnap-btn .tubesnap-btn-icon {
width: 26px !important;
height: 26px !important;
}