forked from OsaSoft/youtube-better-subscriptions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubs.css
More file actions
146 lines (122 loc) · 4.58 KB
/
Copy pathsubs.css
File metadata and controls
146 lines (122 loc) · 4.58 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
.subs-btn-settings {
height: 24px;
padding: 0 10pt !important;
background-image: url('images/icon_settings.svg'), /*works in Firefox*/ url('chrome-extension://__MSG_@@extension_id__/images/icon_settings.svg'); /*works in Chrome*/
background-repeat: no-repeat;
}
.subs-btn-hide-watched-checked, .subs-btn-hide-watched-unchecked {
opacity: .8;
margin: 0 12px !important;
}
.subs-btn-hide-watched-checked .toggle-button {
background-color: var(--paper-toggle-button-checked-button-color, var(--primary-color));
-webkit-mask-image: url('images/markunwatched.svg'), /*works in Firefox*/ url('chrome-extension://__MSG_@@extension_id__/images/markunwatched.svg'); /*works in Chrome*/
mask-image: url('images/markunwatched.svg'), /*works in Firefox*/ url('chrome-extension://__MSG_@@extension_id__/images/markunwatched.svg'); /*works in Chrome*/
-webkit-mask-size: cover;
mask-size: cover;
transform: translate(16px, 0);
}
.subs-btn-hide-watched-unchecked .toggle-button {
background-color: var(--yt-spec-icon-inactive, #606060);
-webkit-mask-image: url('images/markwatched.svg'), /*works in Firefox*/ url('chrome-extension://__MSG_@@extension_id__/images/markwatched.svg'); /*works in Chrome*/
mask-image: url('images/markwatched.svg'), /*works in Firefox*/ url('chrome-extension://__MSG_@@extension_id__/images/markwatched.svg'); /*works in Chrome*/
-webkit-mask-size: cover;
mask-size: cover;
}
.subs-btn-mark-watched, .subs-btn-mark-unwatched {
height: 24px;
border: none;
border-radius: 2px;
opacity: .85;
background-color: var(--yt-spec-icon-inactive, #606060);
-webkit-transition-duration: 0.4s; /* Safari */
transition-duration: 0.4s;
}
.subs-btn-mark-watched {
/*display: none;*/
width: 24px;
-webkit-mask-image: url('images/markwatched.svg'), /*works in Firefox*/ url('chrome-extension://__MSG_@@extension_id__/images/markwatched.svg'); /*works in Chrome*/
mask-image: url('images/markwatched.svg'), /*works in Firefox*/ url('chrome-extension://__MSG_@@extension_id__/images/markwatched.svg'); /*works in Chrome*/
-webkit-mask-size: cover;
mask-size: cover;
}
.subs-btn-mark-unwatched {
width: 95px;
-webkit-mask-image: url('images/markunwatched.svg'), /*works in Firefox*/ url('chrome-extension://__MSG_@@extension_id__/images/markunwatched.svg'); /*works in Chrome*/
mask-image: url('images/markunwatched.svg'), /*works in Firefox*/ url('chrome-extension://__MSG_@@extension_id__/images/markunwatched.svg'); /*works in Chrome*/
-webkit-mask-size: cover;
mask-size: cover;
}
.subs-btn-mark-watched:hover, .subs-btn-mark-unwatched:hover, .subs-btn-hide-watched-checked:hover, .subs-btn-hide-watched-unchecked:hover {
opacity: .95;
cursor: pointer;
}
.subs-btn-mark-watched:active, .subs-btn-mark-unwatched:active, .subs-btn-hide-watched-checked:active, .subs-btn-hide-watched-unchecked:active {
opacity: 1.0;
cursor: pointer;
}
ytd-grid-video-renderer.style-scope.ytd-grid-renderer:hover .subs-btn-mark-watched {
display: inline-block;
}
.subs-grid-menu-item {
margin: 0 12px !important;
}
.subs-grid-menu-mark-all {
opacity: 0.7;
}
.subs-grid-menu-mark-all:hover {
cursor: pointer;
opacity: 0.9;
}
.subs-grid-menu-mark-all:active {
opacity: 1.0;
cursor: pointer;
}
#osasoft-better-subscriptions_subs-grid {
vertical-align: -3px;
}
/* Default button container: row below metadata */
.subs-btn-container {
display: flex;
justify-content: flex-start;
align-items: center;
padding: 4px 0;
}
/* Button overrides inside container */
.subs-btn-container .subs-btn-mark-watched,
.subs-btn-container .subs-btn-mark-unwatched {
position: static;
height: 24px;
}
/* Compact layout: positioned below the triple dots menu */
.subs-btn-compact-wrapper {
position: relative;
}
.subs-btn-container--compact {
position: absolute;
top: 100%;
right: 0;
padding: 0;
}
/* Center the eye icon under the dots in compact mode */
.subs-btn-container--compact:has(.subs-btn-mark-watched) {
left: 50%;
right: auto;
transform: translateX(-50%);
}
.subs-btn-container .subs-btn-mark-watched {
width: 24px;
}
/* With mask-image, background-color paints the icon — these change icon color on hover
from muted (--yt-spec-icon-inactive) to full contrast (--yt-spec-text-primary) */
.subs-btn-container .subs-btn-mark-watched:hover,
.subs-btn-container .subs-btn-mark-unwatched:hover {
background-color: var(--yt-spec-text-primary, #0f0f0f);
}
.subs-btn-container .subs-btn-mark-watched:active,
.subs-btn-container .subs-btn-mark-unwatched:active {
background-color: var(--yt-spec-text-primary, #0f0f0f);
}
#end.ytd-masthead {
min-width: auto !important;
}