improve design on mobile

This commit is contained in:
Henrique Dias committed 2015-09-20 11:03:17 +01:00
1 parent 125666b5c5
commit 6453713253
7 files changed
+130 -80

No files matched your search

+58 -5
View File
@@ -139,15 +139,68 @@ input:-ms-input-placeholder {
width : 75%;
max-width: none;
height : calc(100% - 6em);
margin : 1.5em auto;
margin : 0;
}
.editor.complete .toolbar {
width: 75%;
}
.editor.complete .cm-s-mdn-like.CodeMirror {
width : auto;
margin: 0 10%;
height: calc(100% - 3em);
.editor.complete .CodeMirror {
width : auto;
margin : 1.5em 10%;
height : calc(100% - 3em);
box-sizing: border-box;
}
@media screen and (max-width: 1000px) {
.editor.complete .frontmatter {
width: 35%;
}
.editor.complete .container {
width: 65%;
}
.editor.complete .toolbar {
width: 65%;
}
.hideable {
display: none;
}
}
@media screen and (max-width: 800px) {
.editor.complete .frontmatter,
.editor.complete .container {
position: static;
width : 100%;
display : block;
top : 0;
height : auto;
}
.editor.complete .full {
height: calc(100% - 6em);
}
.editor.complete .toolbar {
width: 100%;
}
.editor.complete #preview-area {
padding: 1.5em 1em;
}
.editor.complete .CodeMirror {
margin: 1.5em 1em;
}
}
@media screen and (max-width: 530px) {
nav {
overflow : hidden;
text-align: center;
}
}