feat: update post title style

This commit is contained in:
Dillon 2022-05-05 03:30:13 +08:00
parent 66ccbe92af
commit 7536b8b97d
No known key found for this signature in database
GPG key ID: 0EF4AE57FB98F108
4 changed files with 11 additions and 6 deletions

View file

@ -2,17 +2,16 @@
.single {
.single-title {
margin: 1rem 0 .5rem;
margin: 2rem 0 .5rem;
font-size: 1.6rem;
font-weight: bold;
line-height: 140%;
}
.single-subtitle {
margin: .4rem 0;
margin: .5rem 0;
font-size: 1.2rem;
font-weight: normal;
font-style: italic;
line-height: 100%;
}

View file

@ -839,7 +839,8 @@ var Theme = /*#__PURE__*/function () {
if (SmoothScroll) new SmoothScroll('[href^="#"]', {
speed: 300,
speedAsDuration: true,
header: '#header-desktop'
header: '#header-desktop',
offset: 10
});
}
}, {

File diff suppressed because one or more lines are too long

View file

@ -623,7 +623,12 @@ class Theme {
}
initSmoothScroll() {
if (SmoothScroll) new SmoothScroll('[href^="#"]', { speed: 300, speedAsDuration: true, header: '#header-desktop' });
if (SmoothScroll) new SmoothScroll('[href^="#"]', {
speed: 300,
speedAsDuration: true,
header: '#header-desktop',
offset: 10,
});
}
initCookieconsent() {