mediawiki-skins-Citizen/skinStyles/extensions/WikiEditor/ext.wikiEditor.less

258 lines
5 KiB
Plaintext
Raw Normal View History

2019-12-30 10:47:19 +00:00
/*
* Citizen
*
* SkinStyles for Extension:WikiEditor
* Module: ext.wikiEditor
* Version: REL1_35 e18315e
*
* Date: 2021-08-11
2019-12-30 10:47:19 +00:00
*/
/* jquery.wikiEditor.less */
.wikiEditor-ui {
.wikiEditor-ui-view {
border-color: var( --border-color-base );
}
2019-12-30 10:47:19 +00:00
.wikiEditor-ui-top {
border-color: var( --border-color-base );
2019-12-30 10:47:19 +00:00
}
.wikiEditor-ui-right {
background: var( --color-surface-2 );
2019-12-30 10:47:19 +00:00
}
}
.wikiEditor-ui-controls {
background-color: var( --color-surface-1 );
}
2019-12-30 10:47:19 +00:00
.wikiEditor-ui-tabs {
border-top-color: var( --border-color-base );
border-left-color: var( --border-color-base );
background-color: var( --color-surface-1 );
2019-12-30 10:47:19 +00:00
div {
border-right-color: var( --border-color-base );
border-bottom-color: var( --border-color-base );
background-color: var( --color-surface-2 );
2019-12-30 10:47:19 +00:00
a {
color: var( --color-link );
}
2019-12-30 10:47:19 +00:00
&.current {
border-bottom-color: var( --color-surface-1 );
background-color: var( --color-surface-1 );
2019-12-30 10:47:19 +00:00
a {
color: var( --color-base );
2019-12-30 10:47:19 +00:00
}
}
}
}
2019-12-30 10:47:19 +00:00
.wikiEditor-ui-buttons {
border-top-color: var( --color-surface-1 );
background-color: var( --color-surface-1 );
}
.wikiEditor-ui-loading {
border-color: var( --border-color-base );
background: var( --color-surface-2 );
}
2019-12-30 10:47:19 +00:00
/* jquery.wikiEditor.toolbar.less */
.wikiEditor-ui-toolbar {
.sections {
.section {
border-top-color: var( --border-color-base );
}
2019-12-30 10:47:19 +00:00
}
.tabs {
span.tab {
a {
color: var( --color-link );
}
a:visited {
color: var( --color-link );
}
2019-12-30 10:47:19 +00:00
a.current,
a.current:visited {
color: var( --color-base );
2019-12-30 10:47:19 +00:00
}
}
}
2019-12-30 10:47:19 +00:00
.group {
border-right-color: var( --border-color-base );
2019-12-30 10:47:19 +00:00
.label {
color: var( --color-base--subtle );
2019-12-30 10:47:19 +00:00
}
.tool-select {
border-color: var( --border-color-base );
background-color: var( --color-surface-1 );
2019-12-30 10:47:19 +00:00
.label {
color: var( --color-base );
2019-12-30 10:47:19 +00:00
}
.options {
border-color: var( --border-color-base );
background-color: var( --color-surface-1 );
2019-12-30 10:47:19 +00:00
.option {
color: var( --color-base--emphasized );
2019-12-30 10:47:19 +00:00
&:hover {
background-color: var( --background-color-primary--hover );
2019-12-30 10:47:19 +00:00
}
}
}
}
}
2019-12-30 10:47:19 +00:00
.group-search {
border-left-color: var( --border-color-base );
}
2019-12-30 10:47:19 +00:00
.booklet {
> .index {
.wikiEditor-character-highlighted {
background-color: var( --background-color-primary--active );
color: var( --color-base--emphasized );
2019-12-30 10:47:19 +00:00
}
}
}
2019-12-30 10:47:19 +00:00
.page-table {
th {
color: var( --color-base--subtle );
2019-12-30 10:47:19 +00:00
}
td {
border-top-color: var( --border-color-base );
color: var( --color-base--emphasized );
}
}
.page-characters {
div {
span {
border-color: var( --border-color-base );
color: var( --color-base );
&:hover {
border-color: var( --border-color-base );
background-color: var( --background-color-quiet--hover );
2019-12-30 10:47:19 +00:00
}
&:active {
background-color: var( --background-color-quiet--active );
2019-12-30 10:47:19 +00:00
}
}
.wikiEditor-character-highlighted {
background-color: var( --background-color-primary--hover );
color: var( --color-base--emphasized );
2019-12-30 10:47:19 +00:00
}
}
}
}
2019-12-30 10:47:19 +00:00
.ui-widget {
table {
td.wikieditor-toolbar-table-preview-wrapper {
background: var( --color-surface-2 );
}
2019-12-30 10:47:19 +00:00
.wikieditor-toolbar-table-preview-frame {
background: var( --color-surface-0 );
2019-12-30 10:47:19 +00:00
}
}
}
/* jquery.wikiEditor.dialogs.config.less */
.wikiEditor-template-dialog-fields {
.wikiEditor-template-dialog-field-wrapper {
border-bottom-color: var( --border-color-base );
}
}
2019-12-30 10:47:19 +00:00
/* jquery.wikiEditor.toolbar-wikimedia.less */
/* stylelint-disable no-duplicate-selectors */
.wikiEditor-ui-toolbar {
background-color: var( --color-surface-2 );
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.03 ), 0 1px 2px rgba( 0, 0, 0, 0.06 ); // boxshadow 1
2019-12-30 10:47:19 +00:00
/* Groups */
.group {
border-color: var( --border-color-base );
.tool-select {
.menu .options {
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.03 ), 0 1px 2px rgba( 0, 0, 0, 0.06 ); // boxshadow 1
.option {
2019-12-30 10:47:19 +00:00
&:hover {
background-color: var( --background-color-quiet--hover );
}
&:active {
background-color: var( --background-color-quiet--active );
2019-12-30 10:47:19 +00:00
}
}
}
}
}
.booklet {
> .index {
> :hover {
background-color: var( --background-color-quiet--hover );
}
2019-12-30 10:47:19 +00:00
> :active {
background-color: var( --background-color-quiet--active );
2019-12-30 10:47:19 +00:00
}
> .current {
background-color: var( --background-color-primary--hover );
color: var( --color-primary );
2019-12-30 10:47:19 +00:00
}
}
}
}
.tool-button,
.tool.oo-ui-buttonElement-frameless.oo-ui-iconElement > .oo-ui-buttonElement-button {
&:hover {
background-color: var( --background-color-quiet--hover );
2019-12-30 10:47:19 +00:00
> .oo-ui-iconElement-icon {
opacity: var( --opacity-icon-base--hover );
2019-12-30 10:47:19 +00:00
}
}
&.tool-active {
background-color: var( --background-color-primary--hover );
}
}
.tool.oo-ui-buttonElement-frameless.oo-ui-iconElement > .oo-ui-buttonElement-button > .oo-ui-iconElement-icon {
opacity: var( --opacity-icon-base );
}
/* stylelint-enable no-duplicate-selectors */
// Dark mode icons
.skin-citizen-dark {
.wikiEditor-ui-toolbar .tabs span.tab a:before {
filter: invert( 1 ) hue-rotate( 180deg );
2019-12-30 10:47:19 +00:00
}
}