-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
287 lines (254 loc) · 7.39 KB
/
styles.css
File metadata and controls
287 lines (254 loc) · 7.39 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
/* Notion Presentation Mode Styles */
/* Hide horizontal dividers in presentation mode (default hidden) */
.notion-presentation-mode:not(.notion-presentation-show-hlines) .notion-divider_divider,
.notion-presentation-mode:not(.notion-presentation-show-hlines) .notion-divider-block,
.notion-presentation-mode:not(.notion-presentation-show-hlines) [data-block-id] > div[style*="border-top"],
.notion-presentation-mode:not(.notion-presentation-show-hlines) hr {
display: none !important;
border-top: none !important;
}
/* Disable text editing in presentation mode (default read-only) */
/* Only target actual text content, not interactive elements like buttons, videos, etc. */
.notion-presentation-mode:not(.notion-presentation-editable) [contenteditable="true"]:not([role="button"]):not([aria-label*="play"]):not([aria-label*="Play"]),
.notion-presentation-mode:not(.notion-presentation-editable) [data-content-editable-leaf="true"]:not([role="button"]):not([aria-label*="play"]):not([aria-label*="Play"]) {
pointer-events: none !important;
caret-color: transparent !important;
cursor: default !important;
user-select: none !important;
-webkit-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
}
/* Disable text selection on text content specifically, but preserve interactive elements */
.notion-presentation-mode:not(.notion-presentation-editable) .notion-selectable .notranslate:not([role="button"]):not([aria-expanded]):not([data-testid]):not([tabindex]) {
user-select: none !important;
-webkit-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
cursor: default !important;
}
/* Override any focus states when not editable, but only for text content */
.notion-presentation-mode:not(.notion-presentation-editable) [contenteditable="true"]:not([role="button"]):focus {
outline: none !important;
caret-color: transparent !important;
}
/* When editable is enabled, restore pointer events for text content */
.notion-presentation-mode.notion-presentation-editable [contenteditable="true"],
.notion-presentation-mode.notion-presentation-editable [data-content-editable-leaf="true"],
.notion-presentation-mode.notion-presentation-editable .notion-selectable .notranslate {
pointer-events: auto !important;
cursor: text !important;
user-select: text !important;
-webkit-user-select: text !important;
-moz-user-select: text !important;
-ms-user-select: text !important;
}
/* Ensure interactive elements always work regardless of edit mode */
.notion-presentation-mode [role="button"],
.notion-presentation-mode [aria-expanded],
.notion-presentation-mode [data-testid],
.notion-presentation-mode button,
.notion-presentation-mode a,
.notion-presentation-mode video,
.notion-presentation-mode audio,
.notion-presentation-mode input[type="checkbox"],
.notion-presentation-mode [tabindex]:not([tabindex="-1"]),
.notion-presentation-mode [onclick],
.notion-presentation-mode [aria-label*="play"],
.notion-presentation-mode [aria-label*="Play"],
.notion-presentation-mode [aria-label*="expand"],
.notion-presentation-mode [aria-label*="collapse"],
.notion-presentation-mode [aria-label*="toggle"] {
pointer-events: auto !important;
cursor: pointer !important;
}
/* Slide number indicator */
.notion-slide-number {
position: fixed;
bottom: 20px;
right: 20px;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 8px 12px;
border-radius: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
font-weight: 500;
z-index: 10000;
backdrop-filter: blur(10px);
transition: opacity 0.3s ease;
}
.notion-slide-number.hidden {
opacity: 0;
pointer-events: none;
}
/* Progress bar */
.notion-progress-bar {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 4px;
background: rgba(0, 0, 0, 0.1);
z-index: 10000;
transition: opacity 0.3s ease;
}
.notion-progress-bar.hidden {
opacity: 0;
pointer-events: none;
}
.notion-progress-bar-fill {
height: 100%;
background: linear-gradient(90deg, #4299e1, #3182ce);
transition: width 0.3s ease;
border-radius: 0 2px 2px 0;
}
/* Smooth scrolling for presentation mode */
.notion-presentation-mode {
scroll-behavior: smooth;
}
/* Hide scrollbars in presentation mode for cleaner look */
.notion-presentation-mode::-webkit-scrollbar {
display: none;
}
.notion-presentation-mode {
-ms-overflow-style: none;
scrollbar-width: none;
}
/* Highlight current slide area */
.notion-current-slide {
position: relative;
}
.notion-current-slide::before {
content: '';
position: absolute;
left: -10px;
top: 0;
bottom: 0;
width: 4px;
background: #4299e1;
border-radius: 2px;
opacity: 0;
transition: opacity 0.3s ease;
}
.notion-presentation-mode .notion-current-slide::before {
opacity: 1;
}
/* Presentation mode indicator */
.notion-presentation-indicator {
position: fixed;
top: 20px;
left: 20px;
background: rgba(66, 153, 225, 0.9);
color: white;
padding: 8px 16px;
border-radius: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 12px;
font-weight: 500;
z-index: 10000;
backdrop-filter: blur(10px);
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
transform: translateX(-100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Navigation controls */
.notion-navigation-controls {
position: fixed;
bottom: 55px;
right: 20px;
display: flex;
gap: 4px;
z-index: 10000;
transition: opacity 0.3s ease;
}
.notion-navigation-controls.hidden {
opacity: 0;
pointer-events: none;
}
.notion-nav-button {
width: 24px;
height: 20px;
border-radius: 4px;
border: none;
background: transparent;
color: rgba(55, 53, 47, 0.6);
font-size: 12px;
font-weight: normal;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.notion-nav-button:hover {
color: rgba(66, 153, 225, 0.9);
background: rgba(66, 153, 225, 0.1);
}
.notion-nav-button:active {
transform: scale(0.95);
}
.notion-nav-button:disabled {
color: rgba(55, 53, 47, 0.3);
cursor: not-allowed;
opacity: 0.5;
}
/* Focus outline for accessibility */
.notion-presentation-mode *:focus {
outline: 2px solid #4299e1;
outline-offset: 2px;
}
/* Notes controls */
.notion-notes-controls {
position: fixed;
bottom: 85px;
right: 20px;
display: flex;
flex-direction: column;
gap: 4px;
z-index: 10000;
transition: opacity 0.3s ease;
}
.notion-notes-controls.hidden {
opacity: 0;
pointer-events: none;
}
.notion-notes-button {
width: 32px;
height: 32px;
border-radius: 6px;
border: none;
background: rgba(255, 255, 255, 0.9);
color: rgba(55, 53, 47, 0.8);
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
}
.notion-notes-button:hover {
background: rgba(66, 153, 225, 0.1);
color: rgba(66, 153, 225, 0.9);
transform: scale(1.05);
}
.notion-notes-button:active {
transform: scale(0.95);
}
.notion-notes-button:disabled {
color: rgba(55, 53, 47, 0.3);
cursor: not-allowed;
opacity: 0.5;
}
/* Notes content hiding is now handled by dynamically injected CSS targeting specific block IDs */
/* This avoids Notion's DOM protection while still providing precise targeting */