Closes: https://github.com/openedx/edx-platform/issues/35306 Part of the built-in XBlock extraction project: https://github.com/openedx/edx-platform/issues/34827
110 lines
1.9 KiB
SCSS
110 lines
1.9 KiB
SCSS
.editor-bar {
|
|
.editor-tabs {
|
|
.advanced-toggle {
|
|
height: auto;
|
|
margin-top: -4px;
|
|
padding: 3px 9px;
|
|
font-size: 12px;
|
|
color: var(--link-color);
|
|
|
|
&.current {
|
|
border: 1px solid var(--lightGrey) !important;
|
|
border-radius: 3px !important;
|
|
background: var(--lightGrey) !important;
|
|
color: var(--darkGrey) !important;
|
|
pointer-events: none;
|
|
cursor: none;
|
|
|
|
&:hover,
|
|
&:focus {
|
|
box-shadow: 0 0 0 0 !important;
|
|
background-color: var(--white);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
.simple-editor-cheatsheet {
|
|
position: absolute;
|
|
top: 41px;
|
|
@include left(70%);
|
|
width: 0;
|
|
border-left: 1px solid var(--gray-l2);
|
|
|
|
background-color: var(--lightGrey);
|
|
overflow: hidden;
|
|
|
|
&.shown {
|
|
width: 30%;
|
|
height: 92%;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.cheatsheet-wrapper {
|
|
padding: 5%;
|
|
}
|
|
|
|
h6 {
|
|
margin-top: 4px;
|
|
margin-bottom: 7px;
|
|
margin-left: 4px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.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 {
|
|
display: block;
|
|
|
|
&.sample {
|
|
margin-right: 30px;
|
|
|
|
.icon {
|
|
height: calc((var(--baseline) * 1.5));
|
|
}
|
|
}
|
|
}
|
|
|
|
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;
|
|
width: 69%;
|
|
}
|
|
}
|
|
|
|
.problem-editor-icon {
|
|
display: inline-block;
|
|
width: 26px;
|
|
height: 21px;
|
|
vertical-align: middle;
|
|
color: var(--body-color);
|
|
}
|