2017-03-13 16:17:07 -07:00
|
|
|
// should match filename and ./ns.json
|
|
|
|
|
@ns: classic;
|
|
|
|
|
|
|
|
|
|
// make the height no larger than (window - navbar)
|
|
|
|
|
.max-element-height(up-to) {
|
|
|
|
|
max-height: e(%('calc(100vh - %s)', @navbar-total-height));
|
|
|
|
|
overflow-x: hidden;
|
2017-03-21 22:06:58 -07:00
|
|
|
overflow-y: auto;
|
2017-03-13 16:17:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.max-element-height(always) {
|
|
|
|
|
height: e(%('calc(100vh - %s)', @navbar-total-height));
|
|
|
|
|
overflow-x: hidden;
|
2017-03-21 22:06:58 -07:00
|
|
|
overflow-y: auto;
|
2017-03-13 16:17:07 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.@{ns}-instructions-panel {
|
|
|
|
|
.max-element-height(always);
|
|
|
|
|
padding-bottom: 10px;
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
padding-right: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.@{ns}-instructions {
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
h4 {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
blockquote {
|
|
|
|
|
font-size: 90%;
|
|
|
|
|
font-family: @font-family-monospace;
|
|
|
|
|
color: @code-color;
|
|
|
|
|
background-color: #fffbe5;
|
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
|
border: 1px solid @pre-border-color;
|
|
|
|
|
white-space: pre;
|
|
|
|
|
padding: 5px 10px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
margin-top: -5px;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
dfn {
|
|
|
|
|
font-family: @font-family-monospace;
|
|
|
|
|
color: @code-color;
|
|
|
|
|
background-color: @code-bg;
|
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
|
padding: 1px 5px;
|
|
|
|
|
}
|
|
|
|
|
& a, #MDN-links a {
|
|
|
|
|
color: #31708f;
|
|
|
|
|
}
|
|
|
|
|
& a::after, #MDN-links a::after {
|
|
|
|
|
font-size: 70%;
|
|
|
|
|
font-family: FontAwesome;
|
|
|
|
|
content: " \f08e";
|
|
|
|
|
}
|
|
|
|
|
ol {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.night {
|
|
|
|
|
.@{ns}-instructions blockquote {
|
|
|
|
|
background-color: #242424;
|
|
|
|
|
border-color: #515151;
|
|
|
|
|
color: #ABABAB
|
|
|
|
|
}
|
|
|
|
|
.@{ns}-instructions dfn {
|
|
|
|
|
background-color: #242424;
|
|
|
|
|
color: #02a902;
|
|
|
|
|
}
|
|
|
|
|
.@{ns}-editor .CodeMirror {
|
|
|
|
|
background-color:#242424;
|
|
|
|
|
color:#ABABAB;
|
|
|
|
|
&-gutters {
|
|
|
|
|
background-color:#242424;
|
|
|
|
|
color:#ABABAB;
|
|
|
|
|
}
|
|
|
|
|
.cm-bracket, .cm-tag {
|
|
|
|
|
color:#5CAFD6;
|
|
|
|
|
}
|
|
|
|
|
.cm-property, .cm-string {
|
|
|
|
|
color:#B5753A;
|
|
|
|
|
}
|
|
|
|
|
.cm-keyword, .cm-attribute {
|
|
|
|
|
color:#9BBBDC;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.@{ns}-editor {
|
|
|
|
|
.max-element-height(always);
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.@{ns}-preview {
|
|
|
|
|
.max-element-height(always);
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.@{ns}-preview-frame {
|
|
|
|
|
border: 1px solid gray;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
color: @gray-lighter;
|
|
|
|
|
height: 99%;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2017-05-18 21:46:35 -07:00
|
|
|
|
|
|
|
|
.@{ns}-success-modal {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
height: 50vh;
|
|
|
|
|
|
|
|
|
|
.modal-header {
|
|
|
|
|
background-color: @brand-primary;
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
|
|
.close {
|
|
|
|
|
color: #eee;
|
|
|
|
|
font-size: 4rem;
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
transition: all 300ms ease-out;
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.modal-body {
|
|
|
|
|
padding: 35px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|