Skip to content

Commit

Permalink
chore(website): Fixed demo styles that included CodeBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Nov 24, 2021
1 parent 87998b9 commit 1f1a04e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@ $demo-padding-extra: 6rem;
@include rmd-utils-rtl-auto(margin-right, $toc-width, auto);

padding: 0 $demo-padding-extra;

[data-linenumbers] {
width: calc(100vw - #{$demo-padding-extra * 2});
}
}

@include rmd-utils-desktop-media {
[data-linenumbers] {
$offset: $rmd-sheet-static-width + $toc-width + ($demo-padding-extra * 2);

width: calc(100vw - #{$offset});
}
}

padding: 0 $demo-padding;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
@use 'sass:map';
@use 'react-md' as *;

// duplicated from TableOfContents.scss
$toc-width: 15rem;
$demo-padding: 2rem;
$demo-padding-extra: 6rem;

.container {
@include rmd-typography(subtitle-1);
@include rmd-typography-theme(max-width, line-width);
@include rmd-utils-tablet-media {
[data-linenumbers] {
width: calc(100vw - #{$demo-padding-extra * 2});
}
}
@include rmd-utils-desktop-media {
[data-linenumbers] {
$offset: $rmd-sheet-static-width + $toc-width + ($demo-padding-extra * 2);

width: calc(100vw - #{$offset});
}
}

p {
font: inherit;
Expand Down

0 comments on commit 1f1a04e

Please sign in to comment.