2019-12-29 18:45:17 +00:00
|
|
|
/*
|
|
|
|
* Citizen - Visual Editor Styles
|
|
|
|
* https://starcitizen.tools
|
|
|
|
*/
|
|
|
|
|
|
|
|
@import '../../../resources/variables.less';
|
|
|
|
|
|
|
|
.ve-activated {
|
2020-06-06 19:51:51 +00:00
|
|
|
.mw-header {
|
2020-06-07 05:30:54 +00:00
|
|
|
background-color: @header-background-color-light;
|
|
|
|
}
|
2020-03-16 05:34:06 +00:00
|
|
|
|
2020-06-07 05:30:54 +00:00
|
|
|
#mw-header-background {
|
|
|
|
box-shadow: none;
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2020-05-17 22:59:02 +00:00
|
|
|
.mw-sidebar-sitename {
|
|
|
|
margin-top: 42px;
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2020-05-22 15:32:19 +00:00
|
|
|
|
2020-06-10 05:05:44 +00:00
|
|
|
.mw-body {
|
2020-06-02 06:23:11 +00:00
|
|
|
z-index: 9; // Higher than footer
|
|
|
|
}
|
|
|
|
|
2019-12-29 18:45:17 +00:00
|
|
|
#page-tools {
|
|
|
|
z-index: 1; // Fix collision
|
|
|
|
pointer-events: auto;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mw-bottombar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-10 05:05:44 +00:00
|
|
|
.ve-ui {
|
|
|
|
&-overlay {
|
|
|
|
font-family: @fonts;
|
|
|
|
|
|
|
|
&-global {
|
|
|
|
z-index: 12; // Higher than header
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2020-06-10 05:05:44 +00:00
|
|
|
&-surface {
|
|
|
|
&-placeholder,
|
|
|
|
.ve-ce-documentNode {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fix weird compressed text bug
|
|
|
|
.ve-init-mw-tempWikitextEditorWidget {
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
|
|
|
|
2020-06-10 05:05:44 +00:00
|
|
|
// Make toolbar more mobile friendly
|
|
|
|
// Well at least I did by best
|
|
|
|
.ve-init-mw-desktopArticleTarget {
|
|
|
|
&-toolbar {
|
|
|
|
margin: -20px -20px 20px -20px !important; // Bypass @media screen styles
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2020-06-10 05:05:44 +00:00
|
|
|
&-open {
|
|
|
|
.oo-ui-toolbar-bar {
|
|
|
|
transition: @transition-transform !important;
|
|
|
|
}
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2020-06-10 05:05:44 +00:00
|
|
|
> .oo-ui-toolbar-bar {
|
|
|
|
> .oo-ui-toolbar-tools {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: auto;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2020-06-10 05:05:44 +00:00
|
|
|
.CodeMirror {
|
|
|
|
padding: 0;
|
|
|
|
line-height: @content-line-height; // Lining up syntax highlighter
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2020-06-10 05:05:44 +00:00
|
|
|
&-code * {
|
|
|
|
line-height: @content-line-height; // Lining up syntax highlighter
|
|
|
|
}
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2020-06-10 05:05:44 +00:00
|
|
|
.ve-ui-mwWikitextSurface .ve-ce-paragraphNode {
|
|
|
|
line-height: @content-line-height; // Lining up syntax highlighter
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media ( prefers-color-scheme: dark ) {
|
|
|
|
.ve-activated {
|
2020-06-07 05:30:54 +00:00
|
|
|
.mw-header {
|
|
|
|
background-color: @header-background-color-dark;
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-16 05:14:32 +00:00
|
|
|
|
|
|
|
.ve-init-mw-desktopArticleTarget .CodeMirror {
|
|
|
|
color: @dark-text-90;
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|