Repository navigation
Expand file tree
/
Copy pathcontent.css
More file actions
79 lines (77 loc) · 9.21 KB
/
Copy pathcontent.css
File metadata and controls
79 lines (77 loc) · 9.21 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
#watchbox-toast{position:fixed;left:24px;bottom:24px;z-index:2200;display:flex;align-items:center;gap:24px;box-sizing:border-box;max-width:calc(100% - 48px);padding:14px 20px;border-radius:4px;background:#323232;color:#fff;box-shadow:0 4px 20px #0005;font:400 14px/20px Roboto,Arial,sans-serif}
#watchbox-toast[hidden],#watchbox-toast button[hidden]{display:none!important}
#watchbox-toast button{flex-shrink:0;border:0;padding:4px;background:transparent;color:#3ea6ff;font:500 14px/20px Roboto,Arial,sans-serif;cursor:pointer}
#watchbox-toast button:focus-visible{outline:2px solid currentColor;outline-offset:4px}
#watchbox-inbox-empty{padding:96px 24px;text-align:center;color:var(--yt-spec-text-primary,#0f0f0f)}
#watchbox-inbox-empty[hidden]{display:none!important}
#watchbox-inbox-empty svg{width:48px;height:48px;color:var(--yt-spec-text-secondary,#606060)}
html[dark] #watchbox-inbox-empty{color:var(--yt-spec-text-primary,#f1f1f1)}
html[dark] #watchbox-inbox-empty svg{color:var(--yt-spec-text-secondary,#aaa)}
#watchbox-inbox-empty h2{font:500 20px/28px Roboto,Arial,sans-serif;margin:20px 0 8px}
[data-watchbox-id]{position:relative}[data-watchbox-hidden]{display:none!important}.watchbox-card-actions{position:absolute;display:flex;opacity:0;transition:opacity .15s}
/* Stop YouTube's continuation observer once older cards collapse at the inbox cutoff. */
[data-watchbox-age-limit] ytd-continuation-item-renderer{display:none!important}
[data-watchbox-id]:hover>.watchbox-card-actions,[data-watchbox-id]:focus-within>.watchbox-card-actions{opacity:1}
@media(hover:none){.watchbox-card-actions{opacity:1}}@media(prefers-reduced-motion:reduce){.watchbox-card-actions{transition:none}}
[data-watchbox-view-hidden]{display:none!important}#watchbox-saved-shelf[hidden]{display:none!important}
#watchbox-saved-shelf{color:var(--yt-spec-text-primary,inherit)}#watchbox-saved-shelf h2{font:600 20px/28px Roboto,Arial,sans-serif;margin:0 0 24px}.watchbox-saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 16px}.watchbox-saved-card{min-width:0}.watchbox-saved-card a{text-decoration:none}.watchbox-resume,#watchbox-saved-shelf>p{font:400 14px/20px Roboto,Arial,sans-serif;color:var(--yt-spec-text-secondary,#606060);margin:2px 0}
@media(min-width:1600px){.watchbox-saved-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1000px){.watchbox-saved-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.watchbox-saved-grid{grid-template-columns:1fr}}
html[data-watchbox-quiet] ytd-rich-section-renderer:has(ytd-rich-shelf-renderer[is-shorts]),html[data-watchbox-quiet] ytd-reel-shelf-renderer,html[data-watchbox-quiet] grid-shelf-view-model:has(a[href^="/shorts/"]){display:none!important}
.watchbox-card-actions :is(button,a):focus-visible{outline:2px solid var(--yt-spec-call-to-action,#065fd4);outline-offset:2px}
html[dark] #watchbox-saved-shelf{color:#f1f1f1}html[dark] .watchbox-resume,html[dark] #watchbox-saved-shelf>p{color:#aaa}
/* Watchbox's circular thumbnail controls, scoped to YouTube cards. */
.watchbox-card-actions{left:50%;right:auto;top:28%;transform:translate(-50%,-50%);gap:18px;pointer-events:none;z-index:4}
.watchbox-card-actions :is(button,a){display:grid;place-items:center;width:48px;height:48px;min-width:48px;padding:0;border-radius:50%;background:#1119;border:1px solid #ffffff70;color:#fff;box-shadow:none}
.watchbox-card-actions :is(button,a) svg{width:22px;height:22px;pointer-events:none}
.watchbox-card-actions :is(button,a):hover,.watchbox-card-actions :is(button,a)[aria-pressed=true]{background:#fff;color:#111}
.watchbox-thumbnail-shade{position:absolute;border-radius:12px;background:#000;opacity:0;pointer-events:none;transition:opacity .18s;z-index:3}
[data-watchbox-id]:is(:hover,:focus-within)>.watchbox-thumbnail-shade{opacity:.45}
[data-watchbox-id]:is(:hover,:focus-within)>.watchbox-card-actions{pointer-events:auto}
html[dark] .watchbox-card-actions :is(button,a){background:#1119;color:#fff}
html[dark] .watchbox-card-actions :is(button,a):hover,html[dark] .watchbox-card-actions :is(button,a)[aria-pressed=true]{background:#fff;color:#111}
.watchbox-card-actions :is(button,a):focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(hover:none){.watchbox-card-actions{pointer-events:auto}.watchbox-thumbnail-shade{opacity:.2}}
@media(prefers-reduced-motion:reduce){.watchbox-thumbnail-shade{transition:none}}
.watchbox-saved-card{position:relative}
.watchbox-saved-card:is(:hover,:focus-within)>.watchbox-card-actions{opacity:1;pointer-events:auto}
.watchbox-saved-card:is(:hover,:focus-within)>.watchbox-thumbnail-shade{opacity:.45}
/* YouTube mounts hover autoplay outside the card; it steals hover and covers actions. */
html[data-watchbox-feed] #video-preview,html[data-watchbox-feed] ytd-video-preview{display:none!important}
html[data-watchbox-disabled] :is(#watchbox-saved-shelf,.watchbox-card-actions,.watchbox-thumbnail-shade){display:none!important}
/* Ambient-light canvases extend past the player; contain them at the watch-page edge. */
html:not([data-watchbox-disabled]) ytd-watch-flexy:not([fullscreen]){overflow-x:clip!important}
/* Watchbox navigation follows YouTube's expanded and compact guide dimensions. */
/* Let wheel input reach the page below the shortened persistent guide. */
html:not([data-watchbox-disabled]) #guide[persistent],
html:not([data-watchbox-disabled]) #guide[persistent] :is(#contentContainer,#guide-wrapper,#guide-content,#guide-inner-content){pointer-events:none!important}
html:not([data-watchbox-disabled]) #guide[persistent] ytd-guide-renderer{pointer-events:auto}
#watchbox-sidebar{display:block;padding:12px;border-bottom:1px solid var(--yt-spec-10-percent-layer,rgba(128,128,128,.2));margin:0}
:is(#watchbox-sidebar,#watchbox-mini-sidebar) a{display:flex;align-items:center;gap:24px;box-sizing:border-box;height:40px;padding:0 12px;border-radius:10px;color:var(--yt-spec-text-primary,#0f0f0f);text-decoration:none;font:400 14px/20px Roboto,Arial,sans-serif;cursor:pointer}
:is(#watchbox-sidebar,#watchbox-mini-sidebar) a:hover{background:var(--yt-spec-badge-chip-background,rgba(128,128,128,.1))}
:is(#watchbox-sidebar,#watchbox-mini-sidebar) a[aria-current=page]{background:var(--yt-spec-badge-chip-background,rgba(128,128,128,.1));font-weight:500}
:is(#watchbox-sidebar,#watchbox-mini-sidebar) svg{width:24px;height:24px;flex-shrink:0}
.watchbox-nav-label{flex:1}
:is(#watchbox-sidebar,#watchbox-mini-sidebar) a:focus-visible{outline:2px solid var(--yt-spec-call-to-action,#065fd4);outline-offset:-2px}
#watchbox-mini-sidebar a{height:74px;flex-direction:column;justify-content:center;gap:6px;padding:12px 0 10px;font-size:10px;line-height:14px}
#watchbox-mini-sidebar .watchbox-nav-label{flex:0}
html[data-watchbox-disabled] :is(#watchbox-sidebar,#watchbox-mini-sidebar){display:none!important}
/* Keep native navigation links beside independent channel-list disclosures. */
.watchbox-section-toggle{display:flex;align-items:center;justify-content:center;position:absolute;right:0;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;border-radius:10px;padding:0;background:transparent;color:var(--yt-spec-text-primary,#0f0f0f);font:500 14px/20px Roboto,Arial,sans-serif;cursor:pointer}
.watchbox-section-toggle:hover{background:var(--yt-spec-badge-chip-background,rgba(128,128,128,.1))}
.watchbox-section-toggle:focus-visible{outline:2px solid var(--yt-spec-call-to-action,#065fd4);outline-offset:-2px}
/* Custom guide children may not inherit YouTube's scoped theme variables. */
html[dark] :is(#watchbox-sidebar,#watchbox-mini-sidebar) a,html[dark] .watchbox-section-toggle{color:var(--yt-spec-text-primary,#f1f1f1)}
.watchbox-section-arrow{font-size:24px;line-height:24px}.watchbox-section-toggle[aria-expanded=true] .watchbox-section-arrow{transform:rotate(90deg)}
html:not([data-watchbox-disabled]) [data-watchbox-section]>#header{position:relative;padding-right:40px}
html:not([data-watchbox-disabled]) [data-watchbox-section]>#header :is(a,yt-formatted-string){font-size:14px!important}
html:not([data-watchbox-disabled]) [data-watchbox-section]>#header .arrow-icon{display:none!important}
html:not([data-watchbox-disabled]) [data-watchbox-section][data-watchbox-collapsed]>#section-items{display:none!important}
html:not([data-watchbox-disabled]) ytd-guide-section-renderer>#items:has(>[data-watchbox-section][data-watchbox-collapsed])>:not([data-watchbox-section]){display:none!important}
html[data-watchbox-disabled] .watchbox-section-toggle{display:none!important}
html:not([data-watchbox-disabled]) ytd-guide-section-renderer[data-watchbox-empty-section]{display:none!important}
/* Keep the left menu focused on Watchbox and the two native disclosures. */
html:not([data-watchbox-disabled]) ytd-guide-renderer #sections>:not(#watchbox-sidebar):not(:has([data-watchbox-section])),
html:not([data-watchbox-disabled]) ytd-guide-renderer #footer,
html:not([data-watchbox-disabled]) ytd-mini-guide-renderer #items>:not(#watchbox-mini-sidebar):not(:has(a:is([href="/feed/subscriptions"],[href="/feed/you"]))){display:none!important}
/* Inbox owns the selection even when YouTube retains an active native header. */
html:not([data-watchbox-disabled]):has(#watchbox-sidebar [data-watchbox-nav=inbox][aria-current=page]) [data-watchbox-section]>#header ytd-guide-entry-renderer[active]{background-color:transparent!important}