Skip to content

Commit 1f1a04e

Browse files
committed
chore(website): Fixed demo styles that included CodeBlock
1 parent 87998b9 commit 1f1a04e

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

packages/documentation/src/components/Demos/DemoContainer.module.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,6 @@ $demo-padding-extra: 6rem;
1010
@include rmd-utils-rtl-auto(margin-right, $toc-width, auto);
1111

1212
padding: 0 $demo-padding-extra;
13-
14-
[data-linenumbers] {
15-
width: calc(100vw - #{$demo-padding-extra * 2});
16-
}
17-
}
18-
19-
@include rmd-utils-desktop-media {
20-
[data-linenumbers] {
21-
$offset: $rmd-sheet-static-width + $toc-width + ($demo-padding-extra * 2);
22-
23-
width: calc(100vw - #{$offset});
24-
}
2513
}
2614

2715
padding: 0 $demo-padding;

packages/documentation/src/components/Demos/DemoDescription.module.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
@use 'sass:map';
22
@use 'react-md' as *;
33

4+
// duplicated from TableOfContents.scss
5+
$toc-width: 15rem;
6+
$demo-padding: 2rem;
7+
$demo-padding-extra: 6rem;
8+
49
.container {
510
@include rmd-typography(subtitle-1);
611
@include rmd-typography-theme(max-width, line-width);
12+
@include rmd-utils-tablet-media {
13+
[data-linenumbers] {
14+
width: calc(100vw - #{$demo-padding-extra * 2});
15+
}
16+
}
17+
@include rmd-utils-desktop-media {
18+
[data-linenumbers] {
19+
$offset: $rmd-sheet-static-width + $toc-width + ($demo-padding-extra * 2);
20+
21+
width: calc(100vw - #{$offset});
22+
}
23+
}
724

825
p {
926
font: inherit;

0 commit comments

Comments
 (0)