skill-assessment-app/app/assets/stylesheets/molecules/_livecoder.scss

133 lines
2.2 KiB
SCSS
Raw Normal View History

2016-07-28 12:52:54 -05:00
.code-input {
margin: 10px 0;
textarea {
2016-07-29 09:15:58 -05:00
font-family: "Lucida Console", Monaco, monospace;
font-size: 10px;
// line-height: 1.6em;
2016-07-28 12:52:54 -05:00
margin-bottom: 0;
2016-07-29 09:15:58 -05:00
min-height: 205px;
width: 100%;
2016-07-28 12:52:54 -05:00
}
}
2016-07-29 09:15:58 -05:00
.code-input textarea,
.questions_tpl .code-input textarea {
padding: 4px 0.2rem 0 2rem;
}
.code-input ~ button {
2016-07-28 12:52:54 -05:00
margin-left: 0;
clear: both;
display: block;
}
.results {
2016-08-11 17:02:17 -05:00
border: 1px solid $secondary-color;
2016-07-28 12:52:54 -05:00
clear: both;
margin: 10px 0;
min-height: 200px;
width: 100%;
background-color: #fff;
}
2016-08-11 17:02:17 -05:00
fieldset:disabled .results {
border-color: #bbb;
}
2016-07-28 12:52:54 -05:00
iframe {
border: 0;
height: 100%;
min-height: 190px;
width: 100%;
}
@media only screen and (min-width: $desktop) {
.code-input {
float: left;
margin: 10px 1%;
width: 32%;
&:nth-of-type(1) {
margin-left: 0;
}
&:nth-of-type(3) {
margin-right: 0;
}
}
}
2016-07-29 09:15:58 -05:00
// jQuery Lined Textarea Plugin
// http://alan.blog-city.com/jquerylinedtextarea.htm
//
// Copyright (c) 2010 Alan Williamson
//
// Released under the MIT License:
// http://www.opensource.org/licenses/mit-license.php
//
// Usage:
// Displays a line number count column to the left of the textarea
//
// Class up your textarea with a given class, or target it directly
// with JQuery Selectors
//
// $(".lined").linedtextarea({
// selectedLine: 10,
// selectedClass: 'lineselect'
// });
.linedwrap {
2016-08-11 17:02:17 -05:00
border: 1px solid $secondary-color;
2016-07-29 09:15:58 -05:00
padding: 0;
position: relative;
}
2016-08-11 17:02:17 -05:00
fieldset:disabled .linedwrap {
border-color: #bbb;
}
2016-07-29 09:15:58 -05:00
.linedtextarea {
padding: 0;
margin: 0;
}
.linedtextarea textarea, .linedwrap .codelines .lineno {
font-size: 10pt;
font-family: "Lucida Console", Monaco, monospace;
line-height: normal !important;
}
.linedtextarea textarea {
padding-right: 0.3em;
padding-top: 0.3em;
2016-08-09 23:17:35 -05:00
border: 0 !important;
2016-07-29 09:15:58 -05:00
}
.linedwrap .lines {
margin-top: 0px;
overflow: hidden;
border-right: 1px solid #c0c0c0;
margin-right: 10px;
position: absolute;
left: 0.3rem;
}
.linedwrap .codelines {
padding-top: 5px;
}
.linedwrap .codelines .lineno {
color:#AAAAAA;
padding-right: 0.5em;
padding-top: 0.0em;
text-align: right;
white-space: nowrap;
}
.linedwrap .codelines .lineselect {
color: red;
}