mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-01 09:26:53 +00:00
178 lines
3.8 KiB
Plaintext
178 lines
3.8 KiB
Plaintext
/*
|
|
* Citizen
|
|
*
|
|
* SkinStyles for Extension:SemanticMediaWiki
|
|
* Module: ext.smw.ask.styles
|
|
* Version: 4.0.2 (0fcdfce)
|
|
*
|
|
* Date: 2022-10-20
|
|
*/
|
|
|
|
// Disable sticky header since it collides with anchor and adds no value
|
|
#citizen-body-header-sticky-sentinel {
|
|
display: none;
|
|
}
|
|
|
|
/* smw/special/ext.smw.special.ask.css */
|
|
div#ask legend {
|
|
// Needed to hide fake box shadow line from focus state
|
|
background-color: var( --color-surface-0 );
|
|
}
|
|
|
|
.smw-ask-toplinks {
|
|
font-family: inherit;
|
|
font-size: var( --font-size-small );
|
|
line-height: inherit;
|
|
background-color: var( --color-surface-2 );
|
|
border-radius: var( --border-radius--small );
|
|
}
|
|
|
|
.smw-ask-toplinks-edit {
|
|
border-right-color: var( --color-surface-0 );
|
|
}
|
|
|
|
.smw-ask-condition fieldset,
|
|
.smw-ask-printhead fieldset {
|
|
border-color: var( --border-color-base );
|
|
border-radius: var( --border-radius--small );
|
|
|
|
// Add focus state
|
|
&:focus-within {
|
|
border-color: var( --color-primary );
|
|
box-shadow: inset 0 0 0 1px var( --color-primary );
|
|
|
|
legend {
|
|
color: var( --color-primary );
|
|
}
|
|
}
|
|
}
|
|
|
|
.smw-ask-query .smw-table-row .smw-table-cell {
|
|
border-color: var( --border-color-base );
|
|
}
|
|
|
|
.smw-ask-query textarea {
|
|
// Override default textarea bg
|
|
background-color: transparent;
|
|
}
|
|
|
|
.smw-ask-options-row-odd {
|
|
background: transparent;
|
|
}
|
|
|
|
.smw-ask-options-row-even {
|
|
background: transparent;
|
|
}
|
|
|
|
.smw-ask-button {
|
|
font-size: var( --font-size-small );
|
|
color: var( --color-base );
|
|
border-color: var( --border-color-base );
|
|
border-radius: var( --border-radius--small );
|
|
}
|
|
|
|
.smw-ask-button-submit input {
|
|
padding: var( --space-md );
|
|
font-size: var( --font-size-small );
|
|
font-weight: var( --font-weight-medium );
|
|
color: #fff;
|
|
background-color: var( --color-primary );
|
|
border-color: var( --color-primary );
|
|
border-radius: var( --border-radius--medium );
|
|
|
|
&:hover {
|
|
background-color: var( --color-primary--hover );
|
|
border-color: var( --color-primary--hover );
|
|
}
|
|
|
|
&:active {
|
|
background-color: var( --color-primary--active );
|
|
border-color: var( --color-primary--active );
|
|
}
|
|
}
|
|
|
|
.smw-ask-button-right {
|
|
color: var( --color-base );
|
|
border-color: var( --border-color-base );
|
|
border-radius: var( --border-radius--small );
|
|
}
|
|
|
|
.smw-ask-button:hover {
|
|
background-color: var( --color-surface-2 );
|
|
}
|
|
|
|
.smw-ask-button input {
|
|
color: var( --color-surface-1 ) !important;
|
|
}
|
|
|
|
.smw-ask-button-lgrey {
|
|
background-color: var( --color-surface-2 );
|
|
border-color: var( --border-color-base );
|
|
|
|
&:hover {
|
|
background-color: var( --color-surface-2--hover );
|
|
border-color: var( --border-color-base );
|
|
}
|
|
|
|
// Added active state
|
|
&:active {
|
|
background-color: var( --color-surface-2--active );
|
|
}
|
|
}
|
|
|
|
.smw-ask-button a,
|
|
.smw-ask-button a:hover,
|
|
.smw-ask-button a:focus,
|
|
.smw-ask-button a:active,
|
|
.smw-ask-button a:visited {
|
|
color: var( --color-base );
|
|
}
|
|
|
|
.smw-ask-search fieldset,
|
|
.smw-ask-format fieldset,
|
|
.smw-ask-options fieldset {
|
|
border-color: var( --border-color-base );
|
|
border-radius: var( --border-radius--small );
|
|
}
|
|
|
|
.strike > span::before,
|
|
.strike > span::after {
|
|
background: var( --border-color-base );
|
|
}
|
|
|
|
.smw-ask-sort-input input,
|
|
.smw-propertysubject-input {
|
|
border-color: var( --border-color-base );
|
|
}
|
|
|
|
#options-toggle:not( :checked ) + #options-list .options-parameter-list::after {
|
|
background-image: linear-gradient( to bottom, rgba( 255, 255, 255, 0 ), var( --color-surface-0 ) 90% );
|
|
}
|
|
|
|
.slowfade textarea::placeholder {
|
|
color: var( --color-base--subtle );
|
|
}
|
|
|
|
.export-links li {
|
|
border-left-color: var( --color-base--subtle );
|
|
}
|
|
|
|
// Make delete button destructive
|
|
.smw-ask-sort-delete-action {
|
|
color: var( --color-destructive );
|
|
|
|
&:hover {
|
|
color: var( --color-destructive--hover );
|
|
}
|
|
|
|
&:active {
|
|
color: var( --color-destructive--active );
|
|
}
|
|
}
|
|
|
|
// Options parameter description text
|
|
.smw-ask-parameter-description {
|
|
font-size: var( --font-size-x-small );
|
|
color: var( --color-base--subtle );
|
|
}
|