More layout improvements, adding in contextual icons for test success/failure and styling font of test output
This commit is contained in:
@ -5,7 +5,7 @@ var gulp = require('gulp'),
|
|||||||
sync = require('browser-sync'),
|
sync = require('browser-sync'),
|
||||||
reload = sync.reload,
|
reload = sync.reload,
|
||||||
inject = require('gulp-inject'),
|
inject = require('gulp-inject'),
|
||||||
reloadDelay = 3000;
|
reloadDelay = 1000;
|
||||||
|
|
||||||
var paths = {
|
var paths = {
|
||||||
server: './app.js',
|
server: './app.js',
|
||||||
|
@ -538,37 +538,6 @@ thead {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
form.code span {
|
|
||||||
font-size: 14px;
|
|
||||||
font-family: "Ubuntu Mono";
|
|
||||||
padding-bottom: 0px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.big-error-icon {
|
|
||||||
font-size: 32px;
|
|
||||||
color: @brand-danger;
|
|
||||||
}
|
|
||||||
|
|
||||||
.big-success-icon {
|
|
||||||
font-size: 32px;
|
|
||||||
color: @brand-primary;
|
|
||||||
}
|
|
||||||
|
|
||||||
.test-output {
|
|
||||||
font-size: 14px;
|
|
||||||
font-family: "Ubuntu Mono";
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainEditorPanel .panel-body {
|
|
||||||
padding-bottom: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.CodeMirror-scroll {
|
|
||||||
padding-bottom: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.embed-responsive-twitch-chat {
|
.embed-responsive-twitch-chat {
|
||||||
padding-bottom: 117%;
|
padding-bottom: 117%;
|
||||||
}
|
}
|
||||||
@ -595,8 +564,45 @@ div.CodeMirror-scroll {
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bonfire styling
|
||||||
|
*/
|
||||||
|
|
||||||
|
form.code span {
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: "Ubuntu Mono";
|
||||||
|
padding-bottom: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.big-error-icon {
|
||||||
|
font-size: 40px;
|
||||||
|
color: @brand-danger;
|
||||||
|
}
|
||||||
|
|
||||||
|
.big-success-icon {
|
||||||
|
font-size: 40px;
|
||||||
|
color: @brand-primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
.test-output {
|
||||||
|
font-size: 15px;
|
||||||
|
font-family: "Ubuntu Mono";
|
||||||
|
}
|
||||||
|
|
||||||
|
#mainEditorPanel .panel-body {
|
||||||
|
padding-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.CodeMirror-scroll {
|
||||||
|
padding-bottom: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
.test-vertical-center {
|
.test-vertical-center {
|
||||||
margin: 8px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
//uncomment this to see the dimensions of all elements outlined in red
|
//uncomment this to see the dimensions of all elements outlined in red
|
||||||
|
@ -175,14 +175,14 @@ var createTestDisplay = function() {
|
|||||||
}
|
}
|
||||||
for (var i = 0; i < userTests.length;i++) {
|
for (var i = 0; i < userTests.length;i++) {
|
||||||
var test = userTests[i];
|
var test = userTests[i];
|
||||||
var testDoc = document.createElement("li");
|
var testDoc = document.createElement("div");
|
||||||
if (test.err != null) {
|
if (test.err != null) {
|
||||||
$(testDoc)
|
$(testDoc)
|
||||||
.html("<i class='ion-close-circled big-error-icon col-xs-2'></i>" + test.text + "\n" + test.err).addClass('test-output col-xs-10')
|
.html("<div class='row'><div class='col-xs-1 text-center'><i class='ion-close-circled big-error-icon'></i></div><div class='col-xs-11 test-output wrappable'>" + test.text + "</div><div class='col-xs-11 test-output wrappable'>" + test.err + "</div></div>")
|
||||||
.prependTo($('#testSuite'))
|
.prependTo($('#testSuite'))
|
||||||
} else {
|
} else {
|
||||||
$(testDoc)
|
$(testDoc)
|
||||||
.html("<i class='ion-checkmark-circled big-success-icon col-xs-2'></i><div class='test-vertical-center'>" + test.text + "</div>").addClass('test-output col-xs-10')
|
.html("<div class='row'><div class='col-xs-1 text-center'><i class='ion-checkmark-circled big-success-icon'></i></div><div class='col-xs-11 test-output test-vertical-center wrappable'>" + test.text + "</div></div>")
|
||||||
.appendTo($('#testSuite'));
|
.appendTo($('#testSuite'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -47,7 +47,7 @@ block content
|
|||||||
.form-group.codeMirrorView
|
.form-group.codeMirrorView
|
||||||
textarea#codeOutput
|
textarea#codeOutput
|
||||||
br
|
br
|
||||||
ul#testSuite.list-group
|
#testSuite
|
||||||
br
|
br
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
var tests = !{JSON.stringify(tests)};
|
var tests = !{JSON.stringify(tests)};
|
||||||
|
Reference in New Issue
Block a user