Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
145 lines (131 loc) · 3.51 KB
/
Copy pathstyles.css
File metadata and controls
145 lines (131 loc) · 3.51 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
/* Main Overlay Container */
.yt-focus-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: var(--yt-spec-base-background, #fff); /* Adapt to YT theme */
z-index: 2147483647; /* Max z-index to cover everything including header */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: "Roboto", "Arial", sans-serif;
color: var(--yt-spec-text-primary, #0f0f0f);
}
/* Dark mode fallback if vars aren't available */
@media (prefers-color-scheme: dark) {
.yt-focus-overlay {
background-color: #0f0f0f;
color: #f1f1f1;
}
}
/* Text Styling */
.yt-focus-title {
font-size: 24px;
font-weight: 500;
margin-bottom: 30px;
margin-top: 10px;
}
/* Search Bar */
.yt-focus-search-container {
display: flex;
align-items: center;
width: 100%;
max-width: 600px;
background-color: var(--yt-spec-badge-chip-background, rgba(0,0,0,0.05));
border: 1px solid var(--yt-spec-10-percent-layer, rgba(0,0,0,0.1));
border-radius: 40px;
padding: 0 16px;
margin-bottom: 40px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.yt-focus-search-input {
flex: 1;
border: none;
background: transparent;
padding: 12px 8px;
font-size: 16px;
color: inherit;
outline: none;
}
.yt-focus-search-btn {
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.yt-focus-search-btn svg {
fill: var(--yt-spec-text-primary, #0f0f0f);
}
/* Cards Container */
.yt-focus-cards {
display: flex;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
}
/* Individual Card */
.yt-focus-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 160px;
height: 120px;
background-color: var(--yt-spec-raised-background, #fff);
border: 1px solid var(--yt-spec-10-percent-layer, rgba(0,0,0,0.1));
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
text-decoration: none;
color: inherit;
transition: transform 0.2s, box-shadow 0.2s;
cursor: pointer;
}
.yt-focus-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(0,0,0,0.15);
background-color: var(--yt-spec-badge-chip-background, rgba(0,0,0,0.05));
}
.yt-focus-card-icon {
margin-bottom: 12px;
width: 32px;
height: 32px;
}
.yt-focus-card-icon svg {
fill: var(--yt-spec-text-primary, #0f0f0f);
}
.yt-focus-card-label {
font-size: 16px;
font-weight: 500;
}
/* Global Shorts Blocker */
/* Hide Shorts shelf (the horizontal scrolling list of shorts) */
ytd-reel-shelf-renderer,
ytd-rich-shelf-renderer[is-shorts] {
display: none !important;
}
/* Hide Shorts tab in guide/sidebar */
ytd-guide-entry-renderer:has(a[title="Shorts"]),
ytd-mini-guide-entry-renderer:has(a[title="Shorts"]) {
display: none !important;
}
/* Hide specific Shorts videos in grids/lists (using :has selector) */
/* This targets video renderers that link to /shorts/ */
ytd-video-renderer:has(a[href^="/shorts/"]),
ytd-grid-video-renderer:has(a[href^="/shorts/"]),
ytd-rich-item-renderer:has(a[href^="/shorts/"]) {
display: none !important;
}
/* Specifically for History Page cleanup */
/* Sometimes history items use ytd-video-renderer, handled above. */
/* If there are other "non-video" elements on history page (like 'posts' or 'headers' that clutter): */
/* Hide 'Shorts' section headers if any */
ytd-browse[page-subtype="history"] ytd-shelf-renderer:has(span#title:contains("Shorts")) {
display: none !important;
}