2020-06-10 20:47:24 +00:00
|
|
|
/*
|
|
|
|
* Citizen - Visual Editor Styles
|
|
|
|
* https://starcitizen.tools
|
|
|
|
*/
|
|
|
|
|
|
|
|
@import '../../../resources/variables.less';
|
|
|
|
|
|
|
|
.ve-activated {
|
|
|
|
.mw-header {
|
|
|
|
z-index: 3; // Move lower to accompany VE
|
|
|
|
background-color: @header-background-color-light;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mw-header-background {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-sidebar-sitename {
|
|
|
|
margin-top: 42px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#page-tools {
|
|
|
|
z-index: 1; // Fix collision
|
|
|
|
opacity: 1;
|
2021-01-11 16:45:52 +00:00
|
|
|
pointer-events: auto;
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mw-footer {
|
|
|
|
z-index: 2; // Fix collision with VE elements
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui {
|
|
|
|
&-toolbar {
|
|
|
|
&-floating {
|
|
|
|
z-index: 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-surface {
|
|
|
|
.ve-ce-documentNode {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-placeholder {
|
|
|
|
padding: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-overlay {
|
2020-06-10 22:02:22 +00:00
|
|
|
font-family: @fonts !important;
|
2020-06-10 20:47:24 +00:00
|
|
|
|
|
|
|
&-global {
|
|
|
|
z-index: 100 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-surface {
|
|
|
|
&-placeholder,
|
|
|
|
.ve-ce-documentNode {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fix weird compressed text bug
|
|
|
|
.ve-init-mw-tempWikitextEditorWidget {
|
|
|
|
width: 100% !important;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-init-mw-desktopArticleTarget {
|
|
|
|
&-toolbar {
|
|
|
|
margin: -20px -20px 20px -20px !important; // Bypass @media screen styles
|
|
|
|
|
|
|
|
&.ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
|
|
|
|
top: 56px; // Fixed under header
|
|
|
|
}
|
|
|
|
|
|
|
|
&Placeholder {
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
|
|
&-open {
|
|
|
|
height: 42px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror {
|
|
|
|
padding: 0 !important;
|
2020-06-11 02:56:34 +00:00
|
|
|
line-height: @content-line-height !important; // Lining up syntax highlighter
|
2020-06-10 20:47:24 +00:00
|
|
|
|
|
|
|
&-code * {
|
2020-06-11 02:56:34 +00:00
|
|
|
line-height: @content-line-height !important; // Lining up syntax highlighter
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-mwWikitextSurface .ve-ce-paragraphNode {
|
2020-06-11 02:56:34 +00:00
|
|
|
line-height: @content-line-height !important; // Lining up syntax highlighter
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make toolbar more smaller screen friendly
|
|
|
|
// Well at least I did by best
|
|
|
|
@media ( max-width: 800px ) {
|
|
|
|
.ve-init-mw-desktopArticleTarget {
|
|
|
|
&-toolbar {
|
|
|
|
&.ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
|
|
|
|
top: 0; // stick to top
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide some dropdown tools in smaller screen
|
|
|
|
// format - Paragraph
|
|
|
|
// strcture - List bullet
|
|
|
|
// insert - Insert
|
|
|
|
.ve-test-toolbar {
|
|
|
|
&-format,
|
|
|
|
&-structure,
|
|
|
|
&-insert {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide some button tools in smaller screen
|
|
|
|
// link - Link
|
|
|
|
// specialCharacter - Special character
|
|
|
|
// help - Help
|
|
|
|
// notices - Notices
|
|
|
|
.oo-ui-tool-name {
|
|
|
|
&-link,
|
|
|
|
&-specialCharacter {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide help, notices, and menu button
|
|
|
|
.oo-ui-toolbar-actions {
|
|
|
|
> .ve-ui-toolbar > .oo-ui-toolbar-bar > .oo-ui-toolbar-tools {
|
|
|
|
.oo-ui-toolGroup {
|
|
|
|
&:first-child,
|
|
|
|
&:nth-child( 2 ) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Shorten save button
|
|
|
|
// Use CSS magic to create an icon
|
|
|
|
// Will change if I figure out a way to load the icon only for VE
|
|
|
|
.ve-ui-toolbar-saveButton {
|
|
|
|
> .oo-ui-buttonElement-button {
|
|
|
|
width: 60px !important;
|
|
|
|
height: 42px !important;
|
2021-01-11 16:45:52 +00:00
|
|
|
padding: 0 !important;
|
2020-06-10 20:47:24 +00:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
top: 12px;
|
|
|
|
transform: rotate( -45deg );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
bottom: 12px;
|
|
|
|
transform: rotate( 45deg );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
position: absolute;
|
|
|
|
left: 30px;
|
|
|
|
display: block;
|
|
|
|
width: 2px;
|
|
|
|
height: 11px;
|
|
|
|
background: #fff;
|
2021-01-11 16:45:52 +00:00
|
|
|
content: '';
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-labelElement-label {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-09 21:57:28 +00:00
|
|
|
.skin-citizen-dark {
|
2021-01-13 09:22:35 +00:00
|
|
|
&.ve-activated {
|
2020-06-10 20:47:24 +00:00
|
|
|
.mw-header {
|
|
|
|
background-color: @header-background-color-dark;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-init-mw-desktopArticleTarget {
|
|
|
|
.CodeMirror {
|
|
|
|
color: @dark-text-90;
|
|
|
|
}
|
|
|
|
}
|
2020-06-23 18:45:57 +00:00
|
|
|
|
|
|
|
.ve-ui-mwSaveDialog {
|
|
|
|
&-options {
|
|
|
|
border-color: @dark-bg-40;
|
2021-01-11 16:45:52 +00:00
|
|
|
background-color: @dark-bg-50;
|
2020-06-23 18:45:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--editSummary-count {
|
|
|
|
border-color: @dark-bg-40;
|
|
|
|
}
|
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|