mediawiki-skins-Citizen/skinStyles/ext.visualEditor.core.less

80 lines
1.5 KiB
Plaintext
Raw Normal View History

2019-08-15 17:40:13 +00:00
/*
* Citizen - Visual Editor Styles
* https://starcitizen.tools
*/
@import '../resources/variables.less';
.ve-activated {
2019-12-26 10:21:50 +00:00
.mw-header-container {
background-color: #fff;
}
2019-08-15 17:40:13 +00:00
2019-12-26 10:21:50 +00:00
#mw-sidebar-sitename {
2019-12-28 21:27:54 +00:00
top: @header-height + @margin-side + 42px;
2019-12-26 10:21:50 +00:00
}
2019-08-15 17:40:13 +00:00
2019-12-26 10:21:50 +00:00
#page-tools {
z-index: 1; // Fix collision
pointer-events: auto;
opacity: 1;
}
2019-08-15 17:40:13 +00:00
2019-12-26 10:21:50 +00:00
#mw-bottombar {
display: none;
}
2019-08-15 17:40:13 +00:00
}
.ve-ui-overlay {
2019-12-26 10:21:50 +00:00
font-family: @fonts;
2019-12-02 23:41:03 +00:00
2019-12-26 10:21:50 +00:00
&-global {
z-index: 12; // Higher than header
}
2019-08-15 17:40:13 +00:00
}
// Fix weird compressed text bug
.ve-init-mw-tempWikitextEditorWidget {
2019-12-26 10:21:50 +00:00
width: 100% !important;
2019-08-15 17:40:13 +00:00
}
// Match animation
2019-12-26 10:21:50 +00:00
.ve-init-mw-desktopArticleTarget-toolbar-open > .oo-ui-toolbar-bar {
transition: @transition-transform !important;
2019-08-15 17:40:13 +00:00
}
// Make toolbar more mobile friendly, well at least I did by best
.ve-init-mw-desktopArticleTarget-toolbar {
2019-12-26 10:21:50 +00:00
margin: -20px -20px 20px -20px !important; // Bypass @media screen styles
2019-08-15 17:40:13 +00:00
}
// Stick with the header
2019-12-26 10:21:50 +00:00
.nav-down ~ .mw-body {
.ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
transform: translateY( @header-height );
}
2019-08-15 17:40:13 +00:00
}
2019-12-02 23:41:03 +00:00
.ve-ui-surface-placeholder,
.ve-ui-surface .ve-ce-documentNode {
2019-12-26 10:21:50 +00:00
padding: 0;
2019-08-15 17:40:13 +00:00
}
.ve-init-mw-desktopArticleTarget .CodeMirror {
2019-12-26 10:21:50 +00:00
padding: 0;
line-height: @content-line-height; // Lining up syntax highlighter
2019-08-15 17:40:13 +00:00
}
2019-12-02 23:41:03 +00:00
.ve-init-mw-desktopArticleTarget .CodeMirror-code *,
.ve-init-mw-desktopArticleTarget .ve-ui-mwWikitextSurface .ve-ce-paragraphNode {
2019-12-26 10:21:50 +00:00
line-height: @content-line-height; // Lining up syntax highlighter
2019-08-15 17:40:13 +00:00
}
2019-12-02 23:41:03 +00:00
2019-12-26 10:21:50 +00:00
@media ( prefers-color-scheme: dark ) {
.ve-activated {
.mw-header-container {
background-color: @dark-bg-0;
}
}
}