Skip to content

Commit a9acd83

Browse files
committed
Quartz sync: May 19, 2025, 12:05 PM
1 parent 7cca695 commit a9acd83

File tree

3 files changed

+66
-41
lines changed

3 files changed

+66
-41
lines changed

quartz/components/PageTitle.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PageTitle.css = `
2222
gap: 0.5rem;
2323
text-decoration: none;
2424
25-
@media (min-width: 1024px) {
25+
@media (min-width: 1025px) {
2626
flex-direction: column;
2727
}
2828
}
@@ -34,7 +34,7 @@ PageTitle.css = `
3434
font-family: var(--titleFont);
3535
white-space: nowrap;
3636
37-
@media (min-width: 1024px) {
37+
@media (min-width: 1025px) {
3838
font-size: 1.7rem;
3939
}
4040
}
@@ -44,7 +44,7 @@ PageTitle.css = `
4444
width: 1.6rem;
4545
height: 1.6rem;
4646
47-
@media (min-width: 1024px) {
47+
@media (min-width: 1025px) {
4848
width: auto;
4949
height: auto;
5050
}

quartz/styles/custom.scss

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
11
@use "./base.scss";
2+
@use "./variables.scss" as *;
23

34
// put your custom CSS here!
45

56
.center article,
67
p {
7-
@media (min-width: 1400px) {
8+
@media (#{$desktop}) {
89
font-size: 1.2rem;
910
line-height: 1.6;
1011
}
1112
}
1213

1314
footer {
14-
margin-top: 10rem;
15+
margin-top: 6em;
1516

1617
& p {
1718
font-size: small;
1819
}
1920
}
2021

21-
// .explorer-content .folder-container {
22-
// padding: 0.1em 0;
23-
24-
// @media (min-width: 1400px) {
25-
// padding: 0.1em 0;
26-
// }
27-
// }
28-
2922
.explorer-content li {
3023
padding: 0.2em 0;
3124

32-
@media (min-width: 1400px) {
25+
@media (#{$desktop}) {
3326
padding: 0.4em 0;
3427
line-height: 1.3;
3528
}
@@ -39,7 +32,7 @@ footer {
3932
margin: 0.3em;
4033
list-style-type: disc;
4134

42-
@media (min-width: 1400px) {
35+
@media (#{$desktop}) {
4336
margin: 0.6em 0;
4437
}
4538

@@ -48,11 +41,19 @@ footer {
4841
.center ul {
4942
padding-left: 1.2em;
5043

51-
@media (min-width: 1400px) {
44+
@media (#{$desktop}) {
5245
padding-left: 1.4em;
5346
}
5447
}
5548

49+
.center .section-li {
50+
margin: 0.8em 0;
51+
52+
@media (#{$desktop}) {
53+
margin: 1em 0;
54+
}
55+
}
56+
5657
.center h1 {
5758
margin-top: 2.5em;
5859
}
@@ -62,7 +63,8 @@ footer {
6263
}
6364

6465
.page>#quartz-body>.sidebar.right>.toc {
65-
@media (min-width: 1400px) {
66+
67+
@media (#{$desktop}) {
6668
li {
6769
margin: 0.4em 0;
6870
}
@@ -101,13 +103,39 @@ footer {
101103

102104
.page>#quartz-body .sidebar {
103105

104-
padding: 2rem;
106+
padding-top: 2rem;
107+
padding-bottom: 2rem;
108+
109+
@media (min-width: #{$pageWidth}) {
110+
padding-top: 6rem;
111+
padding-bottom: 6rem;
112+
// padding: 6rem 2rem 2rem;
113+
}
114+
}
115+
116+
.page>#quartz-body .left {
117+
118+
padding-left: 1rem;
119+
padding-right: 1rem;
105120

106-
@media (min-width: 1024px) {
107-
padding: 6rem 2rem 2rem;
121+
@media (min-width: #{$pageWidth}) {
122+
padding-left: 0.5rem;
123+
padding-right: 1.5rem;
108124
}
109125
}
110126

127+
.page>#quartz-body .right {
128+
129+
padding-left: 1rem;
130+
padding-right: 1rem;
131+
132+
@media (min-width: #{$pageWidth}) {
133+
padding-left: 1.5rem;
134+
padding-right: 0.5rem;
135+
}
136+
}
137+
138+
111139
.page-footer {
112-
padding: 10rem 0;
140+
padding: 6rem 0;
113141
}

quartz/styles/variables.scss

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* assuming mobile < desktop
99
*/
1010
$breakpoints: (
11-
mobile: 800px,
12-
desktop: 1200px,
11+
mobile: 1024px,
12+
desktop: 1200px,
1313
);
1414

1515
$mobile: "(max-width: #{map.get($breakpoints, mobile)})";
@@ -24,35 +24,32 @@ $semiBoldWeight: 600;
2424
$normalWeight: 400;
2525

2626
$mobileGrid: (
27-
templateRows: "auto auto auto auto auto",
28-
templateColumns: "auto",
29-
rowGap: "5px",
30-
columnGap: "5px",
31-
templateAreas:
32-
'"grid-sidebar-left"\
27+
templateRows: "auto auto auto auto auto",
28+
templateColumns: "auto",
29+
rowGap: "5px",
30+
columnGap: "5px",
31+
templateAreas: '"grid-sidebar-left"\
3332
"grid-header"\
3433
"grid-center"\
3534
"grid-sidebar-right"\
3635
"grid-footer"',
3736
);
3837
$tabletGrid: (
39-
templateRows: "auto auto auto auto",
40-
templateColumns: "#{$sidePanelWidth} auto",
41-
rowGap: "5px",
42-
columnGap: "5px",
43-
templateAreas:
44-
'"grid-sidebar-left grid-header"\
38+
templateRows: "auto auto auto auto",
39+
templateColumns: "#{$sidePanelWidth} auto",
40+
rowGap: "5px",
41+
columnGap: "5px",
42+
templateAreas: '"grid-sidebar-left grid-header"\
4543
"grid-sidebar-left grid-center"\
4644
"grid-sidebar-left grid-sidebar-right"\
4745
"grid-sidebar-left grid-footer"',
4846
);
4947
$desktopGrid: (
50-
templateRows: "auto auto auto",
51-
templateColumns: "#{$sidePanelWidth} auto #{$sidePanelWidth}",
52-
rowGap: "5px",
53-
columnGap: "5px",
54-
templateAreas:
55-
'"grid-sidebar-left grid-header grid-sidebar-right"\
48+
templateRows: "auto auto auto",
49+
templateColumns: "#{$sidePanelWidth} auto #{$sidePanelWidth}",
50+
rowGap: "5px",
51+
columnGap: "5px",
52+
templateAreas: '"grid-sidebar-left grid-header grid-sidebar-right"\
5653
"grid-sidebar-left grid-center grid-sidebar-right"\
5754
"grid-sidebar-left grid-footer grid-sidebar-right"',
5855
);

0 commit comments

Comments
 (0)