mediawiki-extensions-CodeEd.../modules/jquery.codeEditor.less
Volker E e90acf0ab4 Align colors to WikimediaUI color palette
Aligning colors to overhauled color palette, ensuring WCAG level AA
conformance. Also removing unnecessary `xmlns:xlink` where applicable.

Bug: T160602
Change-Id: I958d1868cd5ff80226af566dfe34885f1932b16e
2017-03-15 19:31:55 -07:00

115 lines
3 KiB
Plaintext

@import 'mediawiki.mixins';
.group-codeeditor-format,
.group-codeeditor-style,
.codeEditor-ui-toolbar .group-insert,
.codeEditor-ui-toolbar .group-format,
.codeEditor-ui-toolbar .tabs span.tab-advanced,
.codeEditor-ui-toolbar .tabs span.tab-characters,
.codeEditor-ui-toolbar .tabs span.tab-help,
.codeEditor-ui-toolbar .sections {
display: none;
}
.codeEditor-ui-toolbar .group-codeeditor-format,
.codeEditor-ui-toolbar .group-codeeditor-style {
display: block;
}
/* stylelint-disable no-descending-specificity */
.group-codeeditor-main,
.group-codeeditor-format,
.group-codeeditor-style {
.tool {
opacity: 0.7;
/* stylelint-disable-next-line declaration-no-important */
background-position: 1px 1px !important;
&.icon-active {
opacity: 1;
}
}
}
/* stylelint-enable no-descending-specificity */
// TODO: Use this icon from OOUI
.group-codeeditor-main .tool[rel='codeEditor'] {
.background-image-svg( '../images/code.svg', '../images/code.png' );
&.icon-active {
.background-image-svg( '../images/code-progressive.svg', '../images/code-progressive.png' );
}
}
// TODO: Use this icon from OOUI
.codeEditor-ui-toolbar .tool[rel='indent'] {
.background-image-svg( '../images/indent.svg', '../images/indent.png' );
}
// TODO: Use this icon from OOUI
.codeEditor-ui-toolbar .tool[rel='outdent'] {
.background-image-svg( '../images/outdent.svg', '../images/outdent.png' );
}
// TODO: Upstream this icon to OOUI and use it from there
.codeEditor-ui-toolbar .tool[rel='invisibleChars'] {
.background-image-svg( '../images/pilcrow.svg', '../images/pilcrow.png' );
&.icon-active {
.background-image-svg( '../images/pilcrow-progressive.svg', '../images/pilcrow-progressive.png' );
}
}
// TODO: Upstream this icon to OOUI and use it from there
.codeEditor-ui-toolbar .tool[rel='lineWrapping'] {
.background-image-svg( '../images/wrapping.svg', '../images/wrapping.png' );
&.icon-active {
.background-image-svg( '../images/wrapping-progressive.svg', '../images/wrapping-progressive.png' );
}
}
// TODO: Upstream this icon to OOUI and use it from there
.codeEditor-ui-toolbar .tool[rel='gotoLine'] {
.background-image-svg( '../images/gotoLine.svg', '../images/gotoLine.png' );
}
// TODO: Use this icon from OOUI
.codeEditor-ui-toolbar .tool[rel='toggleSearchReplace'] {
.background-image-svg( '../images/find.svg', '../images/find.png' );
}
.wikiEditor-ui-toolbar .group-codeeditor-style {
border-right: 0;
}
.codeEditor-status {
clear: both;
width: 100%;
background-color: #f8f9fa;
border-top: 1px solid #c8ccd1;
display: table;
}
.codeEditor-status .codeEditor-status-worker-cell.ace_gutter-cell {
background-position: 0 center;
}
.codeEditor-status-worker {
padding: 0 0.3em;
user-select: none;
cursor: pointer;
display: table-cell;
}
.codeEditor-status-message {
border-left: 1px solid #c8ccd1;
border-right: 1px solid #c8ccd1;
padding: 0 0.3em;
width: 100%;
display: table-cell;
}
.codeEditor-status-line {
padding: 0 0.3em;
text-align: right;
white-space: nowrap;
display: table-cell;
}