2020-06-10 20:47:24 +00:00
|
|
|
/*
|
2021-08-04 23:57:56 +00:00
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* SkinStyles for Extension:VisualEditor
|
|
|
|
* Module: ext.visualEditor.desktopArticleTarget.init
|
|
|
|
* Version: REL1_35 cc3466a
|
|
|
|
*
|
|
|
|
* Date: 2021-08-04
|
|
|
|
* Note: VE has many modules so they are combined in one file for now
|
2020-06-10 20:47:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
.ve-activated {
|
|
|
|
#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:26:51 +00:00
|
|
|
|
2021-04-18 18:25:47 +00:00
|
|
|
#content {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2021-05-16 18:25:52 +00:00
|
|
|
|
2021-05-21 15:15:34 +00:00
|
|
|
.mw-body-header {
|
2022-10-04 23:22:54 +00:00
|
|
|
z-index: 0; // Reset z-index so toolbar won't clip
|
2022-09-29 23:12:56 +00:00
|
|
|
margin-top: ~'calc( 46px - var( --space-xl ) )'; // Trim extra spacing
|
|
|
|
// Reset VE disabled style to allow page action buttons to work
|
2021-05-21 15:15:34 +00:00
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
user-select: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-heading {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2022-09-29 23:12:56 +00:00
|
|
|
.toc {
|
|
|
|
display: none; // Hide ToC
|
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
// Extra selector because I am lazy to break it down to proper RL stylesheets
|
|
|
|
// TODO: Break down into RL stylesheets when my sins catch up to me
|
2021-01-29 17:33:34 +00:00
|
|
|
.skin-citizen {
|
2022-10-04 23:05:57 +00:00
|
|
|
.ve {
|
|
|
|
&-ce {
|
|
|
|
&-branchNode {
|
|
|
|
&-blockSlug,
|
|
|
|
&-newSlug {
|
2021-03-08 15:25:22 +00:00
|
|
|
background-color: transparent;
|
2022-10-04 23:05:57 +00:00
|
|
|
outline-color: var( --border-color-base );
|
2021-03-08 15:25:22 +00:00
|
|
|
}
|
2022-10-04 23:05:57 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-08 15:25:22 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-ui {
|
|
|
|
&-toolbar {
|
|
|
|
> .oo-ui-toolbar-bar {
|
|
|
|
border-color: var( --border-color-base--darker );
|
|
|
|
background-color: var( --color-surface-0 );
|
2021-03-08 15:25:22 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
.oo-ui-toolbar-bar {
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2021-05-05 17:22:11 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
> .oo-ui-toolbar-tools {
|
|
|
|
flex-basis: 50%;
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
2021-05-05 17:22:11 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
> .oo-ui-toolbar-actions {
|
|
|
|
order: 5; // Second order
|
|
|
|
border-left: 1px solid var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
> .oo-ui-windowManager {
|
|
|
|
order: 10; // Third order
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-toolbar-tools {
|
|
|
|
display: inline-block;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2021-03-08 15:31:46 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
/* Fix inline height */
|
|
|
|
.oo-ui-popupToolGroup-tools.oo-ui-popupToolGroup-active-tools {
|
|
|
|
overflow: auto !important;
|
|
|
|
height: auto !important;
|
|
|
|
}
|
2021-03-08 15:31:46 +00:00
|
|
|
}
|
2021-01-29 17:33:34 +00:00
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-surface {
|
|
|
|
&-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
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-targetWidget {
|
|
|
|
border-color: var( --border-color-input );
|
2022-10-02 15:53:22 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&:not( .oo-ui-pendingElement-pending ) {
|
|
|
|
background: var( --color-surface-1 );
|
|
|
|
}
|
2022-10-02 15:53:22 +00:00
|
|
|
}
|
2021-03-18 18:17:59 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-overlay {
|
|
|
|
font-family: var( --font-family-base );
|
2020-06-10 20:47:24 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-global {
|
|
|
|
z-index: 100;
|
|
|
|
}
|
2021-01-29 17:33:34 +00:00
|
|
|
}
|
2021-01-14 23:52:40 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-expandableContent {
|
|
|
|
&-fade {
|
|
|
|
background: linear-gradient( to right, rgba( 255, 255, 255, 0 ) 0, var( --color-surface-1 ) 90% );
|
|
|
|
}
|
2022-10-02 15:53:22 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-toggle {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2022-10-02 15:53:22 +00:00
|
|
|
}
|
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-mwSaveDialog {
|
|
|
|
&-summary {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2021-01-14 23:52:40 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-options {
|
|
|
|
border-color: var( --border-color-base );
|
|
|
|
background-color: var( --color-surface-2 );
|
|
|
|
}
|
2021-01-14 23:52:40 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&--editSummary-count {
|
|
|
|
border-color: var( --border-color-base );
|
|
|
|
}
|
2021-01-29 17:33:34 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-license {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
2021-08-04 23:57:56 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
// Preview and review change panels
|
|
|
|
&-savePanel {
|
|
|
|
~ .oo-ui-panelLayout {
|
|
|
|
background-color: var( --color-surface-0 );
|
|
|
|
}
|
2021-08-04 23:57:56 +00:00
|
|
|
}
|
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
// Give preview content a max width
|
|
|
|
.mw-parser-output {
|
|
|
|
max-width: var( --width-layout );
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2021-08-04 23:57:56 +00:00
|
|
|
}
|
2021-03-08 00:13:55 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-mwTransclusion {
|
|
|
|
&Dialog-addParameterFieldset .ve-ui-mwParameterSearchWidget {
|
|
|
|
border-color: var( --border-color-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
&Outline {
|
|
|
|
&ButtonWidget {
|
|
|
|
&.oo-ui-buttonElement-frameless.oo-ui-widget-enabled > .oo-ui-buttonElement-button:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
}
|
2022-10-02 15:53:22 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&.oo-ui-optionWidget-selected .oo-ui-buttonElement-button {
|
|
|
|
background-color: var( --background-color-primary--active );
|
|
|
|
}
|
2022-10-02 15:53:22 +00:00
|
|
|
}
|
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&TemplateWidget-sticky {
|
|
|
|
background-color: var( --color-surface-1 );
|
2022-10-02 15:53:22 +00:00
|
|
|
}
|
|
|
|
}
|
2022-10-04 23:05:57 +00:00
|
|
|
}
|
2022-10-02 15:53:22 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&--mwParameterResultWidget {
|
|
|
|
&.oo-ui-optionWidget-highlighted {
|
|
|
|
background-color: var( --background-color-primary--hover );
|
2022-10-02 15:53:22 +00:00
|
|
|
}
|
2021-03-08 00:13:55 +00:00
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-description {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
2021-03-08 00:13:55 +00:00
|
|
|
}
|
|
|
|
|
2022-10-04 23:05:57 +00:00
|
|
|
&-mwTemplatePage-description {
|
2021-03-08 00:13:55 +00:00
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
}
|
2021-01-14 23:52:40 +00:00
|
|
|
}
|
2021-05-05 17:22:11 +00:00
|
|
|
|
|
|
|
.oo-ui-toolbar-position-top .ve-ui-toolbarDialog-position-above {
|
|
|
|
border-color: var( --border-color-base--darker );
|
|
|
|
}
|
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 {
|
2021-04-19 16:38:39 +00:00
|
|
|
margin-right: var( --padding-page--negative );
|
|
|
|
margin-left: var( --padding-page--negative );
|
2020-06-10 20:47:24 +00:00
|
|
|
|
|
|
|
&Placeholder {
|
2022-09-29 23:12:56 +00:00
|
|
|
height: 46px; // Correspond to VE toolbar height in Citizen
|
|
|
|
border-bottom: 1px solid var( --border-color-base );
|
|
|
|
margin: 0 var( --padding-page--negative );
|
|
|
|
|
2022-05-07 04:07:15 +00:00
|
|
|
&-bar {
|
|
|
|
border: 0;
|
|
|
|
box-shadow: none;
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
2022-10-02 15:53:22 +00:00
|
|
|
|
|
|
|
&-floating {
|
|
|
|
.ve-init-mw-desktopArticleTarget-toolbarPlaceholder-bar {
|
|
|
|
background: var( --color-surface-0 );
|
|
|
|
}
|
|
|
|
}
|
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 ) {
|
2021-05-17 21:11:12 +00:00
|
|
|
.ve-ui-toolbar {
|
|
|
|
> .oo-ui-toolbar-bar {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-floating {
|
|
|
|
z-index: 4;
|
|
|
|
}
|
2021-03-26 16:12:43 +00:00
|
|
|
}
|
|
|
|
|
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;
|
2021-05-08 16:53:55 +00:00
|
|
|
background: var( --color-base--subtle );
|
2021-01-14 23:52:40 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
2021-05-08 16:53:55 +00:00
|
|
|
|
|
|
|
// Active state
|
|
|
|
.oo-ui-widget-enabled {
|
|
|
|
.ve-ui-toolbar-saveButton {
|
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
background: var( --color-base--emphasized );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-07 02:36:34 +00:00
|
|
|
// change save button icon from " > " to " < " for RTL language
|
|
|
|
.rtl {
|
|
|
|
.ve-init-mw-desktopArticleTarget-toolbar {
|
|
|
|
.ve-ui-toolbar-saveButton {
|
|
|
|
&:before {
|
|
|
|
transform: rotate( 45deg );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
transform: rotate( -45deg );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-10 20:47:24 +00:00
|
|
|
}
|
2021-08-26 21:19:21 +00:00
|
|
|
|
2022-09-29 23:12:56 +00:00
|
|
|
// HACK: Temp fix for mobile toolbar, will revisit when we move to 1.39+
|
|
|
|
.ve-ui-toolbar .oo-ui-toolbar-after {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2021-08-26 21:19:21 +00:00
|
|
|
.skin-citizen-dark {
|
|
|
|
.oo-ui-iconElement-icon.mw-widget-titleOptionWidget-hasImage {
|
|
|
|
filter: none; // fix inverted image
|
|
|
|
}
|
|
|
|
}
|