Skip to content

Commit

Permalink
fix: heading & block ref changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Dec 11, 2021
1 parent e575434 commit abc31e3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

/* block reference */
.block-ref {
display: inline;
font-size: inherit;
padding: 1px 5px 0;
border-radius: 2px;
Expand All @@ -33,11 +34,12 @@
padding: 0 0.2em;
}

.block-ref .flex {
display: inline-flex;
.block-ref .flex.flex-row.justify-between {
display: inline;
}

.block-ref .block-ref {
display: inline;
padding: 0 0 0 0.2em;
}

Expand Down
23 changes: 19 additions & 4 deletions src/_headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,28 @@ a.title h1.title {

.ls-block :is(h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5) {
font-family: var(--ct-page-title-font-family);
}

.ls-block :is(h1, h2, .h1, .h2) {
font-weight: var(--ct-page-title-font-weight);
}

.ls-block :is(h3, h4) {
margin: 0.3em 0 0;
}

.ls-block :is(h3, h4, .h3, .h4) {
font-weight: 400;
}

.ls-block :is(h4, .h4) {
opacity: 0.8;
}

.ls-block :is(h5, .h5):not(textarea) {
transform: translateY(-8px);
}

.ls-block .block-ref :is(h1, h2, h3, h4, h5) {
font-size: 1em;
}
Expand Down Expand Up @@ -144,7 +163,3 @@ a.title h1.title {
.ls-block h5::after {
content: "h5";
}

.ls-block :is(h3, h4, h5) {
margin: 0.3em 0 0;
}

0 comments on commit abc31e3

Please sign in to comment.