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
|
2021-01-14 23:52:40 +00:00
|
|
|
background-color: var( --background-color-dp-00 );
|
2020-06-10 20:47:24 +00:00
|
|
|
|
2021-01-19 20:56:42 +00:00
|
|
|
&:before {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#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
|
|
|
}
|
2021-04-18 18:25:47 +00:00
|
|
|
|
|
|
|
#content {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
|
|
|
|
.mw-footer {
|
|
|
|
z-index: 2; // Fix collision with VE elements
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 17:33:34 +00:00
|
|
|
.skin-citizen {
|
|
|
|
.ve-ui {
|
|
|
|
&-toolbar {
|
|
|
|
> .oo-ui-toolbar-bar {
|
2021-03-08 15:25:22 +00:00
|
|
|
border-color: var( --border-color-base--darker );
|
2021-01-29 17:33:34 +00:00
|
|
|
background-color: var( --background-color-dp-00 );
|
2021-03-08 15:25:22 +00:00
|
|
|
|
|
|
|
.oo-ui-toolbar-bar {
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .oo-ui-toolbar-actions {
|
|
|
|
order: 9999; // Set to the right
|
|
|
|
border-left: 1px solid var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
> .oo-ui-toolbar-tools {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-toolbar-tools {
|
|
|
|
display: inline-block;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2021-03-08 15:31:46 +00:00
|
|
|
|
|
|
|
/* Fix inline height */
|
|
|
|
.oo-ui-popupToolGroup-tools.oo-ui-popupToolGroup-active-tools {
|
|
|
|
overflow: auto !important;
|
2021-03-08 15:32:37 +00:00
|
|
|
height: auto !important;
|
2021-03-08 15:31:46 +00:00
|
|
|
}
|
2021-01-29 17:33:34 +00:00
|
|
|
}
|
2021-01-15 20:05:26 +00:00
|
|
|
|
2021-01-29 17:33:34 +00:00
|
|
|
&-floating {
|
|
|
|
z-index: 4;
|
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
|
2021-01-29 17:33:34 +00:00
|
|
|
&-surface {
|
2021-03-14 02:31:43 +00:00
|
|
|
&-visual {
|
|
|
|
.ve-ce-documentNode {
|
|
|
|
font-size: 1rem; // So that same font size as the actual page
|
2021-03-14 02:32:31 +00:00
|
|
|
}
|
2021-01-29 17:33:34 +00:00
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
|
2021-03-18 18:17:59 +00:00
|
|
|
&-targetWidget {
|
|
|
|
border-color: var( --border-color-input );
|
|
|
|
}
|
|
|
|
|
2021-01-29 17:33:34 +00:00
|
|
|
&-overlay {
|
2021-03-09 18:13:49 +00:00
|
|
|
font-family: var( --font-family-base );
|
2020-06-10 20:47:24 +00:00
|
|
|
|
2021-01-29 17:33:34 +00:00
|
|
|
&-global {
|
|
|
|
z-index: 100;
|
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
2021-01-14 23:52:40 +00:00
|
|
|
|
2021-01-29 17:33:34 +00:00
|
|
|
&-mwSaveDialog {
|
|
|
|
&-summary {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2021-01-14 23:52:40 +00:00
|
|
|
|
2021-01-29 17:33:34 +00:00
|
|
|
&-options {
|
|
|
|
border-color: var( --border-color-base );
|
|
|
|
background-color: var( --background-color-framed );
|
|
|
|
}
|
2021-01-14 23:52:40 +00:00
|
|
|
|
2021-01-29 17:33:34 +00:00
|
|
|
&--editSummary-count {
|
|
|
|
border-color: var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&-license {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
2021-01-14 23:52:40 +00:00
|
|
|
}
|
2021-03-08 00:13:55 +00:00
|
|
|
|
|
|
|
&-mwTransclusionDialog-addParameterFieldset .ve-ui-mwParameterSearchWidget {
|
|
|
|
border-color: var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&--mwParameterResultWidget {
|
|
|
|
&.oo-ui-optionWidget-highlighted {
|
|
|
|
background-color: var( --background-color-primary--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&-description {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-mwTemplatePage-description {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
2021-01-14 23:52:40 +00:00
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Make toolbar more smaller screen friendly
|
|
|
|
// Well at least I did by best
|
|
|
|
@media ( max-width: 800px ) {
|
2021-01-15 20:05:26 +00:00
|
|
|
.ve-activated {
|
|
|
|
.mw-header {
|
|
|
|
background-color: transparent; // Because header is taller than toolbar
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-26 16:12:43 +00:00
|
|
|
.ve-ui-toolbar > .oo-ui-toolbar-bar {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2020-06-10 20:47:24 +00:00
|
|
|
.ve-init-mw-desktopArticleTarget {
|
|
|
|
&-toolbar {
|
|
|
|
&.ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
|
|
|
|
top: 0; // stick to top
|
|
|
|
}
|
|
|
|
|
2021-01-14 23:52:40 +00:00
|
|
|
.ve-ui-toolbar-group {
|
|
|
|
// Hide some dropdown tools in smaller screen
|
|
|
|
// help - Help
|
2021-03-08 15:25:22 +00:00
|
|
|
&-help {
|
2020-06-10 20:47:24 +00:00
|
|
|
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 {
|
2021-01-14 23:52:40 +00:00
|
|
|
width: 60px !important;
|
|
|
|
height: 42px !important;
|
|
|
|
padding: 0 !important;
|
|
|
|
|
|
|
|
&: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;
|
|
|
|
content: '';
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
|
2021-01-14 23:52:40 +00:00
|
|
|
.oo-ui-tool-title {
|
2020-06-10 20:47:24 +00:00
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|