-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle_content.css
136 lines (118 loc) · 2.12 KB
/
style_content.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
128
129
130
131
132
133
134
135
136
/* Default styles */
.custom-video-header {
font-size: 18px;
font-weight: bold;
margin: 16px 0;
padding: 8px 16px;
border-radius: 4px;
}
.custom-video-flex {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin-bottom: 24px;
}
.custom-video-item {
flex: 1 1 320px;
max-width: 320px;
box-sizing: border-box;
}
.thumbnail-container {
position: relative;
width: 100%;
padding-top: 56.25%;
overflow: hidden;
border-radius: 8px;
}
.thumbnail {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.tag-badge {
position: absolute;
top: 8px;
left: 8px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
z-index: 1;
}
.video-details {
display: flex;
margin-top: 8px;
}
.channel-photo {
width: 36px;
height: 36px;
border-radius: 50%;
margin-right: 12px;
}
.video-info {
flex: 1;
}
.video-title {
font-size: 14px;
font-weight: 500;
line-height: 1.4;
margin-bottom: 4px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.channel-name {
font-size: 12px;
margin-bottom: 4px;
}
.meta-info {
font-size: 12px;
}
.views,
.time-ago {
display: inline-block;
margin-right: 4px;
}
#custom-toggle-button {
background-color: #065fd4;
color: white;
border: none;
padding: 8px 16px;
font-size: 14px;
border-radius: 4px;
cursor: pointer;
margin-left: 16px;
}
#custom-toggle-button:hover {
background-color: #054daa;
}
/* Dark Mode Styles */
.dark-mode .custom-video-header {
color: white;
background-color: #065fd4;
}
.dark-mode .video-title,
.dark-mode .channel-name,
.dark-mode .meta-info,
.dark-mode .views,
.dark-mode .time-ago {
color: white !important; /* Force white text in dark mode */
}
/* Light Mode Styles */
.light-mode .custom-video-header {
color: black;
background-color: #f1f1f1;
}
.light-mode .video-title,
.light-mode .channel-name,
.light-mode .meta-info,
.light-mode .views,
.light-mode .time-ago {
color: black !important; /* Force black text in light mode */
}