Skip to content

Commit 13dd57d

Browse files
committed
Quartz sync: Jun 4, 2025, 10:46 AM
1 parent 10cea8c commit 13dd57d

File tree

3 files changed

+75
-93
lines changed

3 files changed

+75
-93
lines changed

quartz/components/scripts/slide.inline.ts

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -109,53 +109,6 @@ function appendRemark(option: SlideOptions) {
109109
const data = unwrapSlideNote(unwrapFootnotesSection(collapseSeparators(injectSeparators(header + tags + body))))
110110
document.body.innerHTML = ""
111111

112-
const style = document.createElement("style")
113-
style.textContent = `
114-
.remark-slide-content {
115-
background-color: var(--light);
116-
117-
h1,
118-
h2,
119-
h3,
120-
h4,
121-
h5,
122-
h6 {
123-
position: sticky;
124-
top: 0;
125-
z-index: 1;
126-
// background-color: rgba(255, 255, 255, 0.8);
127-
backdrop-filter: blur(8px);
128-
}
129-
130-
h1 {
131-
color: var(--primary);
132-
}
133-
134-
.tags {
135-
gap: .6rem;
136-
}
137-
138-
li {
139-
line-height: 2;
140-
list-style-type: disc;
141-
}
142-
143-
p {
144-
margin: 0;
145-
}
146-
147-
.remark-slide-number{
148-
}
149-
150-
pre {
151-
padding: 0;
152-
}
153-
}
154-
155-
`
156-
157-
document.head.appendChild(style)
158-
159112
const script = document.createElement("script")
160113
script.src = `${window.location.origin}/static/scripts/slide.js`
161114
// script.src = `https://codeyoma.github.io/static/scripts/remark.js`

quartz/components/styles/slide.scss

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,5 @@
11
@use "../../styles/variables.scss" as *;
22

3-
4-
.global-slide {
5-
6-
&>.global-slide-outer {
7-
position: fixed;
8-
z-index: 500;
9-
left: 0;
10-
top: 0;
11-
width: 100vw;
12-
height: 100%;
13-
backdrop-filter: blur(4px);
14-
display: none;
15-
16-
&.active {
17-
display: inline-block;
18-
}
19-
20-
&>.global-slide-container {
21-
border: 1px solid var(--lightgray);
22-
background-color: var(--light);
23-
border-radius: 5px;
24-
box-sizing: border-box;
25-
position: fixed;
26-
top: 50%;
27-
left: 50%;
28-
transform: translate(-50%, -50%);
29-
height: 90vh;
30-
width: 90vw;
31-
overflow: scroll;
32-
33-
@media all and not ($desktop) {
34-
width: 90%;
35-
}
36-
37-
&.fullscreen {
38-
top: 0;
39-
left: 0;
40-
transform: none;
41-
width: 100vw;
42-
height: 100vh;
43-
}
44-
}
45-
}
46-
47-
}
48-
493
.slide-button {
504
.slide-icon {
515
cursor: pointer;

quartz/styles/custom.scss

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,3 +262,78 @@ em {
262262
}
263263

264264
}
265+
266+
.remark-slide-container .remark-slide-content {
267+
background-color: var(--light);
268+
269+
h1,
270+
h2,
271+
h3,
272+
h4,
273+
h5,
274+
h6 {
275+
position: sticky;
276+
top: 0;
277+
z-index: 1;
278+
background-color: color-mix(in srgb, var(--light) 80%, transparent);
279+
backdrop-filter: blur(8px);
280+
-webkit-backdrop-filter: blur(5px);
281+
margin-top: 0;
282+
margin-bottom: 0;
283+
padding-top: 2.0rem;
284+
}
285+
286+
h1 {
287+
color: var(--primary);
288+
}
289+
290+
.tags {
291+
gap: .6rem;
292+
}
293+
294+
li {
295+
line-height: 1.8;
296+
list-style-type: disc;
297+
list-style-position: outside;
298+
299+
img,
300+
video,
301+
audio,
302+
iframe {
303+
vertical-align: top;
304+
}
305+
306+
blockquote {
307+
margin-left: 0;
308+
}
309+
310+
}
311+
312+
p {
313+
margin: 0;
314+
}
315+
316+
.remark-slide-number {}
317+
318+
pre {
319+
padding: 0;
320+
}
321+
322+
.remark-code {
323+
padding: 7px;
324+
}
325+
326+
img {
327+
margin: 0 0;
328+
}
329+
330+
video,
331+
audio,
332+
iframe {
333+
margin: 10px 0;
334+
}
335+
336+
.callout-title .callout-icon {
337+
margin: auto 0;
338+
}
339+
}

0 commit comments

Comments
 (0)