Skip to content

Commit

Permalink
feat: adapt mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Apr 15, 2022
1 parent 960653b commit 440961c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
border-bottom-style: dashed;
}

.block-body {
width: 100%;
}

.block-body .raw_html {
max-width: 100%;
}

.block-ref .block-body {
display: inline-block;
}
Expand Down
7 changes: 1 addition & 6 deletions src/_headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
--ct-heading-font-weight: 700;
--ct-heading-font-style: normal;

--ct-header-height: 42px;
--ct-header-height: calc(var(--ls-headbar-height) + var(--ls-headbar-inner-top-padding));
--ct-topbar-backdrop: blur(20px);
}

Expand Down Expand Up @@ -39,11 +39,6 @@ a.title h1.title {
text-shadow: var(--ct-heading-text-shadow, none);
}

.cp__header,
.cp__right-sidebar-topbar {
height: var(--ct-header-height);
}

.cp__header::after,
.cp__right-sidebar-topbar::after {
left: 0;
Expand Down

0 comments on commit 440961c

Please sign in to comment.