Skip to content

Commit 25adb50

Browse files
authored
Merge pull request #12 from revolter/fix/markdown-preview-issues
Fixed long Markdown preview lines breaking the layout
2 parents c8b52c1 + d75c316 commit 25adb50

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

_sass/minima/custom-styles.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ html {
3636
body {
3737
height: 100%;
3838

39-
code {
40-
text-wrap-mode: wrap;
41-
word-wrap: anywhere;
42-
}
43-
4439
.page-content {
4540
display: flex;
4641

@@ -103,16 +98,21 @@ body {
10398
@include relative-font-size(1);
10499
}
105100

106-
.markdown-preview {
101+
#markdown-preview {
107102
border-style: solid;
108103
border-width: 1px;
109104

110105
@media not screen and (min-width: $on-laptop) {
111106
overflow: auto;
112107
}
108+
109+
* {
110+
text-wrap-mode: wrap;
111+
word-wrap: anywhere;
112+
}
113113
}
114114

115-
textarea, .markdown-preview {
115+
textarea, #markdown-preview {
116116
flex-grow: 1;
117117
flex-basis: 0;
118118

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
<div class="content">
4141
<textarea id="{{ textarea_id }}" placeholder="{{ textarea_placeholder }}" autofocus></textarea>
42-
<div id="{{ markdown_preview_id }}" class="markdown-preview"></div>
42+
<div id="{{ markdown_preview_id }}"></div>
4343
</div>
4444

4545
<script>

0 commit comments

Comments
 (0)