insomnia/app/css/components/editor.scss
Gregory Schier 7179c071d4 A bunch more
2016-03-20 22:47:49 -07:00

48 lines
972 B
SCSS

@import '../constants/colors';
.editor {
height: 100%;
width: 100%;
.CodeMirror {
height: 100% !important;
width: 100%;
font-size: 12px !important;
font-family: "Source Code Pro", monospace;
box-sizing: border-box;
}
.CodeMirror,
.cm-s-seti.CodeMirror, // Hack because seti theme is dumb
.CodeMirror-gutters,
.CodeMirror-scrollbar-filler,
.CodeMirror-gutter-filler {
background-color: $bg-dark !important;
}
.CodeMirror-overlayscroll-horizontal div,
.CodeMirror-overlayscroll-vertical div {
background: lighten($bg-dark, 10%);
}
.CodeMirror-linenumber, .CodeMirror-guttermarker-subtle {
color: #555555 !important;
}
.CodeMirror-scroll {
/*
* Not sure why but this fixes vertical sizing of scroll
* area in flexbox grid
*/
box-sizing: border-box;
margin-bottom: 0;
padding-bottom: 0;
}
.CodeMirror-lines {
// Scroll past the end
padding-bottom: 150px;
}
}