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

263 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_39 02e1c70
*
* Date: 2022-11-08
2019-12-30 10:47:19 +00:00
*/
/* 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 {
position: sticky;
z-index: 1;
top: 0;
border-bottom-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-0 );
}
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-0 );
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-primary );
}
2019-12-30 10:47:19 +00:00
&.current {
border-bottom-color: var( --color-surface-0 );
background-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 {
border-top-color: var( --border-color-base );
background-color: var( --color-surface-0 );
}
2019-12-30 10:47:19 +00:00
/* jquery.wikiEditor.toolbar.less */
.wikiEditor-ui-toolbar {
padding: var( --space-sm ) 0;
background-color: var( --color-surface-0 );
box-shadow: none;
.group,
.section-secondary .group {
border-color: var( --border-color-base );
}
/* Expandable Sections */
.sections {
.section {
border-top-color: var( --border-color-base );
}
2019-12-30 10:47:19 +00:00
}
/* Top Level Containers */
/* Tabs */
.tabs {
span.tab {
a {
color: var( --color-primary );
&:before {
opacity: var( --opacity-icon-base );
}
}
a:visited {
color: var( --color-primary );
}
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
/* Groups */
.group {
/* Toolbar */
.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-0 );
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-0 );
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-h2 );
font-weight: var( --font-weight-semibold );
}
&[ rel='heading-3' ] {
font-size: var( --font-size-h3 );
font-weight: var( --font-weight-semibold );
}
&[ rel='heading-4' ] {
font-size: var( --font-size-h4 );
font-weight: var( --font-weight-semibold );
}
&[ rel='heading-5' ] {
font-size: var( --font-size-h5 );
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 {
background-color: var( --background-color-quiet--hover );
color: var( --color-base--emphasized );
2019-12-30 10:47:19 +00:00
}
> :hover {
background-color: var( --background-color-quiet--hover );
}
> .current {
background-color: var( --background-color-primary--hover );
color: var( --color-primary );
}
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 {
border-top-color: var( --border-color-base );
color: var( --color-base--emphasized );
}
}
/* Characters Pages */
.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
}
// Added active state
&: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-primary );
2019-12-30 10:47:19 +00:00
}
}
}
}
.tool-button,
.tool.oo-ui-buttonElement-frameless.oo-ui-iconElement > .oo-ui-buttonElement-button {
border-radius: var( --border-radius--small );
&: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 );
}
}
.tool.oo-ui-buttonElement-frameless.oo-ui-iconElement > .oo-ui-buttonElement-button > .oo-ui-iconElement-icon {
opacity: var( --opacity-icon-base );
}
.ui-widget {
table {
td.wikieditor-toolbar-table-preview-wrapper {
background: var( --color-surface-2 );
}
.wikieditor-toolbar-table-preview-frame {
background: var( --color-surface-0 );
}
}
}
.skin-citizen-dark {
.wikiEditor-ui-toolbar .tabs span.tab a:before {
filter: invert( 1 );
2019-12-30 10:47:19 +00:00
}
}