styles : add h4 sizing, spacing and scroll-margin
All checks were successful
Deploy / Deploy to Production (push) Successful in 7s
All checks were successful
Deploy / Deploy to Production (push) Successful in 7s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b724ed1244
commit
798123a60a
4 changed files with 43 additions and 10 deletions
|
|
@ -30,11 +30,18 @@ article #main-content #chapo::after {
|
||||||
article #main-content li:not(.text) {
|
article #main-content li:not(.text) {
|
||||||
list-style-type: inherit;
|
list-style-type: inherit;
|
||||||
}
|
}
|
||||||
article h3 {
|
|
||||||
|
article h3,
|
||||||
|
article h4 {
|
||||||
scroll-margin-top: calc(var(--unit--vertical) * 1);
|
scroll-margin-top: calc(var(--unit--vertical) * 1);
|
||||||
margin-top: calc(3 * var(--unit--vertical));
|
|
||||||
margin-bottom: calc(1 * var(--unit--vertical));
|
margin-bottom: calc(1 * var(--unit--vertical));
|
||||||
}
|
}
|
||||||
|
article h3 {
|
||||||
|
margin-top: calc(3 * var(--unit--vertical));
|
||||||
|
}
|
||||||
|
article h4 {
|
||||||
|
margin-top: calc(1 * var(--unit--vertical));
|
||||||
|
}
|
||||||
|
|
||||||
article li,
|
article li,
|
||||||
article ol {
|
article ol {
|
||||||
|
|
@ -66,7 +73,8 @@ blockquote.big {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 640px) {
|
@media screen and (max-width: 640px) {
|
||||||
article h3 {
|
article h3,
|
||||||
|
article h4 {
|
||||||
scroll-margin-top: calc(var(--unit--vertical) * 5);
|
scroll-margin-top: calc(var(--unit--vertical) * 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ h5 *,
|
||||||
p,
|
p,
|
||||||
p *:not(strong),
|
p *:not(strong),
|
||||||
figcaption,
|
figcaption,
|
||||||
.toc{
|
.toc {
|
||||||
font-weight: var(--font-weight-light);
|
font-weight: var(--font-weight-light);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
@ -45,6 +45,12 @@ h3,
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h4,
|
||||||
|
.h4 {
|
||||||
|
font-size: var(--font-size-l);
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
article h2 {
|
article h2 {
|
||||||
margin-bottom: calc(var(--unit--vertical) / 2);
|
margin-bottom: calc(var(--unit--vertical) / 2);
|
||||||
}
|
}
|
||||||
|
|
@ -170,7 +176,9 @@ a:not(.no-underline) {
|
||||||
text-decoration-thickness: 0.5px;
|
text-decoration-thickness: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
article p:not(:last-child), article ul:not(:last-child), article figure:not(:last-child){
|
article p:not(:last-child),
|
||||||
|
article ul:not(:last-child),
|
||||||
|
article figure:not(:last-child) {
|
||||||
margin-bottom: var(--unit--vertical);
|
margin-bottom: var(--unit--vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -304,6 +304,12 @@ h3,
|
||||||
color: var(--color-primary);
|
color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h4,
|
||||||
|
.h4 {
|
||||||
|
font-size: var(--font-size-l);
|
||||||
|
color: var(--color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
article h2 {
|
article h2 {
|
||||||
margin-bottom: calc(var(--unit--vertical) / 2);
|
margin-bottom: calc(var(--unit--vertical) / 2);
|
||||||
}
|
}
|
||||||
|
|
@ -435,7 +441,9 @@ a:not(.no-underline) {
|
||||||
text-decoration-thickness: 0.5px;
|
text-decoration-thickness: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
article p:not(:last-child), article ul:not(:last-child), article figure:not(:last-child) {
|
article p:not(:last-child),
|
||||||
|
article ul:not(:last-child),
|
||||||
|
article figure:not(:last-child) {
|
||||||
margin-bottom: var(--unit--vertical);
|
margin-bottom: var(--unit--vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -907,12 +915,20 @@ article #main-content li:not(.text) {
|
||||||
list-style-type: inherit;
|
list-style-type: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
article h3 {
|
article h3,
|
||||||
|
article h4 {
|
||||||
scroll-margin-top: calc(var(--unit--vertical) * 1);
|
scroll-margin-top: calc(var(--unit--vertical) * 1);
|
||||||
margin-top: calc(3 * var(--unit--vertical));
|
|
||||||
margin-bottom: calc(1 * var(--unit--vertical));
|
margin-bottom: calc(1 * var(--unit--vertical));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article h3 {
|
||||||
|
margin-top: calc(3 * var(--unit--vertical));
|
||||||
|
}
|
||||||
|
|
||||||
|
article h4 {
|
||||||
|
margin-top: calc(1 * var(--unit--vertical));
|
||||||
|
}
|
||||||
|
|
||||||
article li,
|
article li,
|
||||||
article ol {
|
article ol {
|
||||||
margin-left: var(--unit--horizontal);
|
margin-left: var(--unit--horizontal);
|
||||||
|
|
@ -943,7 +959,8 @@ blockquote.big {
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 640px) {
|
@media screen and (max-width: 640px) {
|
||||||
article h3 {
|
article h3,
|
||||||
|
article h4 {
|
||||||
scroll-margin-top: calc(var(--unit--vertical) * 5);
|
scroll-margin-top: calc(var(--unit--vertical) * 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue