Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

fix(example-viewer): don't wrap code samples #289

Merged
merged 1 commit into from
Oct 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/app/pages/component-viewer/component-overview.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@import '../../../styles/constants';

component-overview {
display: flex;
align-items: flex-start;

@media (max-width: $small-breakpoint-width) {
display: flex;
flex-direction: column;
}
}
3 changes: 0 additions & 3 deletions src/app/pages/component-viewer/component-viewer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@ app-component-viewer {
min-height: 500px;

table-of-contents {
display: inline-flex;
top: 35px;

@media (max-width: $small-breakpoint-width) {
display: flex;
order: -1;
position: inherit;
width: auto;
Expand All @@ -41,7 +39,6 @@ app-component-viewer {
}

.docs-component-view-text-content {
display: inline-flex;
flex-grow: 1;
}

Expand Down
1 change: 1 addition & 0 deletions src/app/shared/example-viewer/_example-viewer-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

.docs-example-source {
border-bottom: 1px solid mat-color($foreground, divider);
overflow-x: scroll;
}
}
}
7 changes: 0 additions & 7 deletions src/styles/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ h1, h2 {
font-weight: 400;
}

pre {
// Pre elements won't wrap text by default and can exceed the boundaries of their parent element.
// This adds extra scroll space when visiting the docs mobile. Pre-wrapping the code examples
// will ensure that the code never exceeds the page width.
white-space: pre-wrap;
}

.docs-primary-header {
padding-left: 20px;

Expand Down