151 lines
2.6 KiB
SCSS
151 lines
2.6 KiB
SCSS
.editor-bar {
|
|
|
|
.editor-tabs {
|
|
|
|
.advanced-toggle {
|
|
@include white-button;
|
|
height: auto;
|
|
margin-top: -4px;
|
|
padding: 3px 9px;
|
|
font-size: 12px;
|
|
|
|
&.current {
|
|
border: 1px solid $lightGrey !important;
|
|
border-radius: 3px !important;
|
|
background: $lightGrey !important;
|
|
color: $darkGrey !important;
|
|
pointer-events: none;
|
|
cursor: none;
|
|
|
|
&:hover {
|
|
box-shadow: 0 0 0 0 !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.cheatsheet-toggle {
|
|
width: 21px;
|
|
height: 21px;
|
|
padding: 0;
|
|
margin: -1px 5px 0 15px;
|
|
border-radius: 22px;
|
|
border: 1px solid #a5aaaf;
|
|
background: #e5ecf3;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: #565d64;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
.simple-editor-cheatsheet {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 100%;
|
|
width: 0;
|
|
border-radius: 0 3px 3px 0;
|
|
@include linear-gradient(left, rgba(0, 0, 0, .1), rgba(0, 0, 0, 0) 4px);
|
|
background-color: #fff;
|
|
overflow: hidden;
|
|
@include transition(width .3s);
|
|
|
|
&.shown {
|
|
width: 300px;
|
|
height: 100%;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.cheatsheet-wrapper {
|
|
width: 240px;
|
|
padding: 20px 30px;
|
|
}
|
|
|
|
h6 {
|
|
margin-bottom: 7px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.row {
|
|
@include clearfix;
|
|
padding-bottom: 5px !important;
|
|
margin-bottom: 10px !important;
|
|
border-bottom: 1px solid #ddd !important;
|
|
|
|
&:last-child {
|
|
border-bottom: none !important;
|
|
margin-bottom: 0 !important;
|
|
}
|
|
}
|
|
|
|
.col {
|
|
float: left;
|
|
|
|
&.sample {
|
|
width: 60px;
|
|
margin-right: 30px;
|
|
}
|
|
}
|
|
|
|
pre {
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
code {
|
|
padding: 0;
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
.problem-editor {
|
|
// adding padding to simple editor only - adjacent selector is needed since there are no toggles for CodeMirror
|
|
.markdown-box+.CodeMirror {
|
|
padding: 10px;
|
|
}
|
|
}
|
|
|
|
.problem-editor-icon {
|
|
display: inline-block;
|
|
width: 26px;
|
|
height: 21px;
|
|
vertical-align: middle;
|
|
background: url(../img/problem-editor-icons.png) no-repeat;
|
|
}
|
|
|
|
.problem-editor-icon.heading1 {
|
|
width: 18px;
|
|
background-position: -265px 0;
|
|
}
|
|
|
|
.problem-editor-icon.multiple-choice {
|
|
background-position: 0 0;
|
|
}
|
|
|
|
.problem-editor-icon.checks {
|
|
background-position: -56px 0;
|
|
}
|
|
|
|
.problem-editor-icon.string {
|
|
width: 28px;
|
|
background-position: -111px 0;
|
|
}
|
|
|
|
.problem-editor-icon.number {
|
|
width: 24px;
|
|
background-position: -168px 0;
|
|
}
|
|
|
|
.problem-editor-icon.dropdown {
|
|
width: 17px;
|
|
background-position: -220px 0;
|
|
}
|
|
|
|
.problem-editor-icon.explanation {
|
|
width: 17px;
|
|
background-position: -307px 0;
|
|
}
|
|
|
|
|