Skip to content

Commit 8b68933

Browse files
committed
style: limiting characters per line
1 parent 240000e commit 8b68933

File tree

6 files changed

+36
-13
lines changed

6 files changed

+36
-13
lines changed

src/.vuepress/theme/layouts/Post.vue

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
<section
7070
v-show="post.summary"
71-
class="my-10 text-xl leading-9 post-page-summary sm:px-5 md:mx-auto lg:mx-0"
71+
class="my-10 text-lg leading-9 post-page-summary sm:px-5 md:mx-auto lg:mx-0 max-char"
7272
role="region"
7373
:aria-label="$themeLocaleConfig.a11y.landmarks.post.summary"
7474
>
@@ -92,21 +92,31 @@
9292
role="region"
9393
aria-label="Content post"
9494
>
95-
<div class="w-full lg:w-auto">
95+
<div class="w-full max-w-3xl lg:w-auto">
9696
<Content
9797
itemprop="articleBody"
9898
class="sm:px-5 md:mx-auto lg:mx-0"
9999
/>
100100

101-
<hr class="mt-16">
101+
<hr class="my-16">
102102

103-
<div class="py-20 disqus-section">
103+
<ShareLinks
104+
:path="post.path"
105+
:title="post.title"
106+
:summary="post.summary"
107+
horizontal
108+
class="lg:hidden"
109+
/>
110+
111+
<hr class="my-16 lg:hidden">
112+
113+
<div class="disqus-section">
104114
<Disqus shortname="vue-a11y-test" />
105115
</div>
106116

107-
<hr>
117+
<hr class="my-16">
108118

109-
<div class="py-20 webmentions-section">
119+
<div class="webmentions-section">
110120
<WebMentions />
111121
</div>
112122
</div>

src/.vuepress/theme/styles/_a11y.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333

3434
.max-char {
35-
max-width: 74ex;
35+
max-width: 68ex;
3636
}
3737

3838
input::placeholder {

src/.vuepress/theme/styles/_components.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,19 @@
4343
}
4444
}
4545
}
46+
47+
&-list.horizontal {
48+
@apply flex flex-wrap justify-between;
49+
50+
&:before {
51+
display: none;
52+
}
53+
54+
.toc-list-item {
55+
@apply w-48 flex items-center mb-4;
56+
}
57+
58+
}
4659
}
4760

4861
.btn {

src/.vuepress/theme/styles/_custom-blocks.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
}
3232
> figcaption {
33-
@apply w-full text-center text-base;
33+
@apply w-full text-center text-base mt-2;
3434

3535
p {
3636
margin: 0;

src/.vuepress/theme/styles/_markdown.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.content__default {
2-
@apply text-xl block;
2+
@apply text-lg block;
33
min-height: 150px;
44

55
p {
66
word-wrap: break-word;
7-
margin: 30px 0;
8-
max-width: 74ex;
7+
margin: 40px 0;
8+
max-width: 68ex;
99

1010
abbr {
1111
cursor: help;
@@ -16,7 +16,7 @@
1616
}
1717

1818
p, ol, ul {
19-
@apply leading-10;
19+
@apply leading-8;
2020
}
2121

2222
h4, h5, h6 {

src/.vuepress/theme/views/Page.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="w-full">
33
<article class="flex justify-between w-full px-6 pt-6 md:mt-4 lg:px-10 xl:pr-0">
4-
<div class="page-content">
4+
<div class="max-w-3xl page-content">
55
<Content />
66
<PageEdit class="flex flex-wrap justify-between w-full py-6 pb-24 border-t c-border-color md:mt-4" />
77
</div>

0 commit comments

Comments
 (0)