Skip to content

Commit 60a15a4

Browse files
committed
fix(docs): improve docs layout
1 parent f5acf45 commit 60a15a4

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

quarkdown-html/src/main/resources/render/theme/components/_viewport.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ body.quarkdown {
116116
--aside-width: 20vw;
117117
--aside-outer-margin: 32px;
118118

119-
padding-left: 16px;
119+
padding-left: 20px;
120120

121121
&:first-child {
122122
margin-left: 0;

quarkdown-html/src/main/resources/render/theme/global.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// Colors
3737
--qd-background-color: inherit; // Background color
3838
--qd-main-color: inherit; // Main text color
39+
--qd-main-color-muted: color-mix(in srgb, var(--qd-main-color) 20%, transparent); // Muted main text color
3940
--qd-primary-color: var(--qd-main-color); // Primary/accent color
4041
--qd-color-on-primary: var(--qd-background-color); // Text color on primary background color
4142
--qd-heading-color: var(--qd-main-color); // Heading (titles) color

quarkdown-html/src/main/resources/render/theme/layout/hyperlegible.scss

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
@use "util/progressive-heading-margins" as *;
33
@use "util/gh-tables" as *;
44
@use "util/minimal-toc" as *;
5-
//@use "util/docs-navigation" as docs-navigation;
6-
//@use "util/docs-headings-border" as *;
5+
@use "util/docs-navigation" as docs-navigation;
6+
@use "util/docs-headings-border" as *;
77
@use "../components/util/location-selectors" as location-selectors;
88

99
:root {
@@ -22,12 +22,16 @@
2222
@include progressive-heading-margins($multiplier: 1.1, $bottomAddition: 0.4em);
2323
@include gh-tables;
2424
@include minimal-toc;
25-
//@include docs-headings-border;
25+
@include docs-headings-border;
2626

2727
h4, h5 {
2828
font-weight: 600;
2929
}
3030

31+
a:hover {
32+
text-decoration: underline;
33+
}
34+
3135
blockquote {
3236
border-left: 2px solid;
3337
padding-left: 1.5em;
@@ -41,6 +45,10 @@
4145
}
4246
}
4347

48+
pre {
49+
--qd-block-margin: 3em;
50+
}
51+
4452
.box > header > h4 {
4553
gap: 0.4em;
4654
}

quarkdown-html/src/main/resources/render/theme/layout/util/_gh-tables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
th, td {
1111
padding: 8px 14px;
12-
border: 1px solid color-mix(in srgb, var(--qd-main-color) 20%, transparent) !important;
12+
border: 1px solid var(--qd-main-color-muted) !important;
1313
}
1414

1515
th {

0 commit comments

Comments
 (0)