Skip to content

Commit 3f2446c

Browse files
authored
Merge pull request #9 from vue-styleguidist/feature/design-layout
feat(layout): proposal template
2 parents 36da5e2 + c435ca5 commit 3f2446c

File tree

2 files changed

+71
-99
lines changed

2 files changed

+71
-99
lines changed

layout.vue

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,49 +11,21 @@
1111

1212
<style>
1313
.preview-code {
14-
display: flex;
15-
flex-flow: row-reverse wrap;
16-
border-radius: 6px;
1714
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
1815
0 4px 6px -2px rgba(0, 0, 0, 0.05);
19-
overflow: hidden;
20-
}
21-
22-
.preview-code .block {
23-
flex-grow: 1;
24-
width: 50%;
25-
}
26-
27-
.preview-code .editor .prism-editor-wrapper {
28-
height: 100%;
2916
}
3017
3118
.preview-code .editor pre {
3219
margin: 0;
33-
box-sizing: border-box;
34-
height: 100%;
20+
outline: none;
3521
border-radius: 0;
22+
overflow-wrap: break-word;
23+
overflow: auto;
24+
tab-size: 2;
3625
}
3726
3827
.preview-code .preview {
39-
background-color: rgb(249, 245, 245);
40-
text-align: center;
41-
box-sizing: border-box;
4228
padding: 12px;
43-
}
44-
45-
@media only screen and (max-width: 568px) {
46-
.preview-code {
47-
display: block;
48-
}
49-
.preview-code .block {
50-
width: auto;
51-
}
52-
}
53-
@media only screen and (max-width: 419px) {
54-
.preview-code {
55-
margin: 0.85rem -1.5rem;
56-
border-radius: 0;
57-
}
29+
background-color: rgb(249, 245, 245);
5830
}
5931
</style>

0 commit comments

Comments
 (0)