Fix(challenges): make challenge height auto

closes #9347
This commit is contained in:
Berkeley Martinez
2016-06-29 11:40:34 -07:00
parent 6ce3f039d2
commit 627c92c72f
4 changed files with 34 additions and 35 deletions

View File

@ -1,3 +1,8 @@
.challenges-editor {
height: 100%;
width: 99%;
}
.challenge-step-description { .challenge-step-description {
font-size: 1.5em; font-size: 1.5em;
} }

View File

@ -0,0 +1,27 @@
.CodeMirror span {
font-size: 18px;
font-family: "Ubuntu Mono";
padding-bottom: 0px;
margin-bottom: 0px;
height: 100%;
}
.CodeMirror {
border-radius: 5px;
height: auto;
line-height: 1 !important;
}
.CodeMirror-linenumber {
font-size: 18px;
font-family: "Ubuntu Mono";
}
.CodeMirror-scroll {
padding-bottom: 30px;
}
.challenge-log .CodeMirror {
height: 100%;
width: 100%;
}

View File

@ -686,53 +686,19 @@ form.update-email .btn{
fill: #ddd !important fill: #ddd !important
} }
.CodeMirror span {
font-size: 18px;
font-family: "Ubuntu Mono";
padding-bottom: 0px;
margin-bottom: 0px;
height: 100%;
}
.CodeMirror {
line-height: 1 !important;
}
.CodeMirror-linenumber {
font-size: 18px;
font-family: "Ubuntu Mono";
}
.challenges-editor {
height: 100%;
width: 99%;
}
.scroll-locker { .scroll-locker {
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
} }
div.CodeMirror-scroll {
padding-bottom: 30px;
}
.test-vertical-center { .test-vertical-center {
margin-top: 8px; margin-top: 8px;
} }
.cm-s-monokai.CodeMirror {
border-radius: 5px;
}
.courseware-height { .courseware-height {
min-height: 650px; min-height: 650px;
} }
.challenge-log .CodeMirror {
height: 100%;
width: 100%;
}
.btn { .btn {
font-weight: 400; font-weight: 400;
white-space: normal; white-space: normal;
@ -1168,6 +1134,7 @@ and (max-width : 400px) {
@import "chat.less"; @import "chat.less";
@import "jobs.less"; @import "jobs.less";
@import 'code-mirror.less';
@import "challenge.less"; @import "challenge.less";
@import "toastr.less"; @import "toastr.less";
@import "map.less"; @import "map.less";

View File

@ -1,10 +1,10 @@
link(rel='stylesheet', type='text/css' href='/css/lato.css') link(rel='stylesheet', type='text/css' href='/css/lato.css')
link(rel='stylesheet', type='text/css' href='/css/ubuntu.css') link(rel='stylesheet', type='text/css' href='/css/ubuntu.css')
link(rel='stylesheet', href='/bower_components/font-awesome/css/font-awesome.min.css') link(rel='stylesheet', href='/bower_components/font-awesome/css/font-awesome.min.css')
link(rel='stylesheet', href=rev('/css', 'main.css'))
link(rel='stylesheet', href='/bower_components/CodeMirror/lib/codemirror.css') link(rel='stylesheet', href='/bower_components/CodeMirror/lib/codemirror.css')
link(rel='stylesheet', href='/bower_components/CodeMirror/addon/lint/lint.css') link(rel='stylesheet', href='/bower_components/CodeMirror/addon/lint/lint.css')
link(rel='stylesheet', href='/bower_components/CodeMirror/theme/monokai.css') link(rel='stylesheet', href='/bower_components/CodeMirror/theme/monokai.css')
link(rel='stylesheet', href=rev('/css', 'main.css'))
include meta include meta
meta(charset='utf-8') meta(charset='utf-8')