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

342 lines
6.9 KiB
Plaintext
Raw Normal View History

2019-12-30 10:47:19 +00:00
/*
* Citizen
*
* SkinStyles for Extension:WikiEditor
* Module: ext.wikiEditor
* Version: REL1_39 02e1c70
*
* Date: 2023-06-03
2019-12-30 10:47:19 +00:00
*/
@import '../../../resources/mixins.less';
@wikieditor-button-size: 42px;
/* jquery.wikiEditor.less */
.wikiEditor-ui {
.wikiEditor-ui-view {
border: 0;
}
2019-12-30 10:47:19 +00:00
// Make into sticky header
.wikiEditor-ui-top {
.citizen-sticky-header;
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-0 );
}
2019-12-30 10:47:19 +00:00
.wikiEditor-ui-tabs {
background-color: var( --color-surface-0 );
border-top-color: var( --border-color-base );
border-left-color: var( --border-color-base );
2019-12-30 10:47:19 +00:00
div {
background-color: var( --color-surface-2 );
border-right-color: var( --border-color-base );
border-bottom-color: var( --border-color-base );
2019-12-30 10:47:19 +00:00
a {
color: var( --color-primary );
}
2019-12-30 10:47:19 +00:00
&.current {
background-color: var( --color-surface-0 );
border-bottom-color: var( --color-surface-0 );
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 {
background-color: var( --color-surface-0 );
border-top-color: var( --border-color-base );
}
2019-12-30 10:47:19 +00:00
/* jquery.wikiEditor.toolbar.less */
.wikiEditor-ui-toolbar {
background-color: var( --color-surface-0 );
box-shadow: none;
.group,
.section-secondary .group {
border-color: var( --border-color-base );
}
.tabs,
.section-main,
.section-secondary {
min-height: @wikieditor-button-size; /* Align with VE */
}
/* Expandable Sections */
.sections {
.section {
border-top-color: var( --border-color-base );
}
2019-12-30 10:47:19 +00:00
}
/* Top Level Containers */
/* Tabs */
.tabs {
margin: 0 8px;
span.tab {
line-height: @wikieditor-button-size; /* Align with VE */
a {
height: @wikieditor-button-size; /* Align with VE */
font-weight: var( --font-weight-medium );
color: var( --color-base--emphasized );
&::before {
height: 100%; /* Align with VE */
filter: var( --filter-invert );
opacity: var( --opacity-icon-base );
}
&:hover {
color: var( --color-primary--hover );
}
&:active {
color: var( --color-primary--active );
}
}
a:visited {
color: var( --color-base--emphasized );
}
2019-12-30 10:47:19 +00:00
a.current,
a.current:visited {
color: var( --color-primary );
border-bottom: 2px solid var( --color-primary );
2019-12-30 10:47:19 +00:00
}
}
}
2019-12-30 10:47:19 +00:00
/* Groups */
.group {
/* Toolbar */
.label {
height: 38px;
margin-left: 16px;
font-size: var( --font-size-small );
line-height: 38px;
color: var( --color-base--subtle );
letter-spacing: 0.05em;
2019-12-30 10:47:19 +00:00
}
.tool-select {
height: @wikieditor-button-size;
background-color: var( --color-surface-0 );
border-color: var( --border-color-base );
2019-12-30 10:47:19 +00:00
.label {
height: @wikieditor-button-size; /* Align with VE */
font-size: inherit;
font-weight: var( --font-weight-medium );
line-height: @wikieditor-button-size; /* Align with VE */
color: var( --color-base--emphasized );
letter-spacing: inherit;
&:hover {
background-color: var( --background-color-quiet--hover );
}
}
.menu .options .option:hover {
background-color: var( --background-color-quiet--hover );
2019-12-30 10:47:19 +00:00
}
.options {
background-color: var( --color-surface-0 );
border-color: var( --border-color-base );
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
}
&[ rel='heading-2' ] {
font-size: var( --font-size-xx-large );
font-weight: var( --font-weight-semibold );
}
&[ rel='heading-3' ] {
font-size: var( --font-size-x-large );
font-weight: var( --font-weight-semibold );
}
&[ rel='heading-4' ] {
font-size: var( --font-size-large );
font-weight: var( --font-weight-semibold );
}
&[ rel='heading-5' ] {
font-size: var( --font-size-medium );
font-weight: var( --font-weight-semibold );
}
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 */
.booklet {
> .index {
.wikiEditor-character-highlighted {
color: var( --color-base--emphasized );
background-color: var( --background-color-quiet--hover );
2019-12-30 10:47:19 +00:00
}
> :hover {
background-color: var( --background-color-quiet--hover );
}
> .current {
color: var( --color-primary );
background-color: var( --background-color-primary--hover );
}
2019-12-30 10:47:19 +00:00
}
}
2019-12-30 10:47:19 +00:00
/* Help Pages */
.page-table {
th {
color: var( --color-base--subtle );
2019-12-30 10:47:19 +00:00
}
td {
color: var( --color-base--emphasized );
border-top-color: var( --border-color-base );
}
}
/* Characters Pages */
.page-characters {
div {
span {
color: var( --color-base );
border-color: var( --border-color-base );
&:hover {
background-color: var( --background-color-quiet--hover );
border-color: var( --border-color-base );
2019-12-30 10:47:19 +00:00
}
// Added active state
&:active {
background-color: var( --background-color-quiet--active );
2019-12-30 10:47:19 +00:00
}
}
.wikiEditor-character-highlighted {
color: var( --color-primary );
background-color: var( --background-color-primary--hover );
2019-12-30 10:47:19 +00:00
}
}
}
.ve-init-mw-editSwitch .oo-ui-popupToolGroup.oo-ui-iconElement {
height: @wikieditor-button-size; /* Align with VE */
.oo-ui-popupToolGroup-handle {
padding-top: @wikieditor-button-size;
border-radius: var( --border-radius--small );
}
}
}
.tool.oo-ui-buttonElement-frameless.oo-ui-iconElement > .oo-ui-buttonElement-button {
min-width: @wikieditor-button-size; /* Align with VE */
min-height: @wikieditor-button-size; /* Align with VE */
border-radius: var( --border-radius--small );
> .oo-ui-iconElement-icon {
left: 0.78571429em; /* Align with VE */
opacity: var( --opacity-icon-base );
}
&: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
}
}
// Added active state
&:active {
background-color: var( --background-color-quiet--active );
> .oo-ui-iconElement-icon {
opacity: var( --opacity-icon-base--active );
}
}
&.tool-active {
background-color: var( --background-color-primary--hover );
}
}
.ui-widget {
table {
td.wikieditor-toolbar-table-preview-wrapper {
background: var( --color-surface-2 );
}
.wikieditor-toolbar-table-preview-frame {
background: var( --color-surface-0 );
}
}
}
.wikiEditor-toolbar-dialog {
.ui-dialog-content {
padding: var( --space-md ) !important;
}
.ui-dialog-buttonpane {
border-top-color: var( --border-color-base ) !important;
}
.wikieditor-toolbar-field-wrapper {
/* Input field label */
> label {
font-size: var( --font-size-x-small );
color: var( --color-base--subtle );
letter-spacing: 0.05em;
~ input,
~ select {
margin-top: var( --space-xxs );
}
}
/* Checkbox text */
> input + label {
margin-left: var( --space-xs );
font-size: inherit;
color: var( --color-base );
letter-spacing: inherit;
}
}
}