Commit 28c22aa3 authored by bbaer's avatar bbaer
Browse files

stylized code

parent e2b1e66d
......@@ -73,15 +73,15 @@ var QfqNS = QfqNS || {};
n.CodeCorrection.prototype._buildLine = function(lineCount, line) {
var htmlRow = $('<div/>', {
class: 'row',
class: 'clearfix qfqCodeLine',
id: 'qfqC' + lineCount
});
var htmlLineNumber = $('<div/>', {
class: 'col-sm-2 qfqLineCount',
class: 'pull-left qfqLineCount',
text: lineCount
});
var htmlCodeLine = $('<div/>', {
class: 'col-sm-10 qfqCodeLine',
class: 'pull-right qfqCode',
text: line
});
htmlLineNumber.appendTo(htmlRow);
......
......@@ -412,4 +412,32 @@ i.@{spinner_class} {
.alert-interactive p.buttons {
margin-top: 20px;
text-align: center;
}
// Code Correction
.codeCorrectionWrap {
background-color: #444;
color: #fff;
font-size: 1.2em;
font-family: monospace;
padding: 5px;
}
.qfqLineCount {
width: 50px;
text-align: right;
border-right: 1px solid #fff;
padding-right: 15px;
}
.qfqCode {
width: ~"calc(100% - 50px)";
padding-left: 15px;
padding-right: 15px;
text-align: left;
}
.qfqCodeLine:hover {
background-color: #666;
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment