mediawiki-skins-Citizen/skinStyles/extensions/SemanticMediaWiki/ext.smw.ask.styles.less

178 lines
3.8 KiB
Plaintext
Raw Normal View History

2019-12-29 18:45:17 +00:00
/*
* Citizen
*
* SkinStyles for Extension:SemanticMediaWiki
* Module: ext.smw.ask.styles
* Version: 4.0.2 (0fcdfce)
*
* Date: 2022-10-20
2019-12-29 18:45:17 +00:00
*/
// Disable sticky header since it collides with anchor and adds no value
#citizen-page-header-sticky-sentinel {
display: none;
}
2019-12-29 18:45:17 +00:00
/* 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 );
}
2019-12-29 18:45:17 +00:00
.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-base );
}
2019-12-29 18:45:17 +00:00
.smw-ask-toplinks-edit {
border-right-color: var( --color-surface-0 );
}
2019-12-29 18:45:17 +00:00
.smw-ask-condition fieldset,
.smw-ask-printhead fieldset {
border-color: var( --border-color-base );
border-radius: var( --border-radius-base );
2019-12-29 18:45:17 +00:00
// Add focus state
&:focus-within {
border-color: var( --color-progressive );
box-shadow: inset 0 0 0 1px var( --color-progressive );
2019-12-29 18:45:17 +00:00
legend {
color: var( --color-progressive );
}
2019-12-29 18:45:17 +00:00
}
}
2019-12-29 18:45:17 +00:00
.smw-ask-query .smw-table-row .smw-table-cell {
border-color: var( --border-color-base );
}
2019-12-29 18:45:17 +00:00
.smw-ask-query textarea {
// Override default textarea bg
background-color: transparent;
}
2019-12-29 18:45:17 +00:00
.smw-ask-options-row-odd {
background: transparent;
}
2019-12-29 18:45:17 +00:00
.smw-ask-options-row-even {
background: transparent;
}
2019-12-29 18:45:17 +00:00
.smw-ask-button {
font-size: var( --font-size-small );
color: var( --color-base );
border-color: var( --border-color-base );
border-radius: var( --border-radius-base );
}
2019-12-29 18:45:17 +00:00
.smw-ask-button-submit input {
padding: var( --space-md );
font-size: var( --font-size-small );
font-weight: var( --font-weight-medium );
color: var( --color-inverted-primary );
background-color: var( --color-progressive );
border-color: var( --color-progressive );
border-radius: var( --border-radius-medium );
2019-12-29 18:45:17 +00:00
&:hover {
background-color: var( --color-progressive--hover );
border-color: var( --color-progressive--hover );
2019-12-29 18:45:17 +00:00
}
&:active {
background-color: var( --color-progressive--active );
border-color: var( --color-progressive--active );
2019-12-29 18:45:17 +00:00
}
}
2019-12-29 18:45:17 +00:00
.smw-ask-button-right {
color: var( --color-base );
border-color: var( --border-color-base );
border-radius: var( --border-radius-base );
}
2019-12-29 18:45:17 +00:00
.smw-ask-button:hover {
background-color: var( --color-surface-2 );
}
2019-12-29 18:45:17 +00:00
.smw-ask-button input {
color: var( --color-surface-1 ) !important;
}
2019-12-29 18:45:17 +00:00
.smw-ask-button-lgrey {
background-color: var( --color-surface-2 );
border-color: var( --border-color-base );
2019-12-29 18:45:17 +00:00
&:hover {
background-color: var( --color-surface-2--hover );
border-color: var( --border-color-base );
2019-12-29 18:45:17 +00:00
}
// Added active state
&:active {
background-color: var( --color-surface-2--active );
2019-12-29 18:45:17 +00:00
}
}
2019-12-29 18:45:17 +00:00
.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 );
}
2019-12-29 18:45:17 +00:00
.smw-ask-search fieldset,
.smw-ask-format fieldset,
.smw-ask-options fieldset {
border-color: var( --border-color-base );
border-radius: var( --border-radius-base );
}
2019-12-29 18:45:17 +00:00
.strike > span::before,
.strike > span::after {
background: var( --border-color-base );
}
2019-12-29 18:45:17 +00:00
.smw-ask-sort-input input,
.smw-propertysubject-input {
border-color: var( --border-color-base );
}
2019-12-29 18:45:17 +00:00
#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% );
}
2019-12-29 18:45:17 +00:00
.slowfade textarea::placeholder {
color: var( --color-subtle );
}
2019-12-29 18:45:17 +00:00
.export-links li {
border-left-color: var( --color-subtle );
}
// Make delete button destructive
.smw-ask-sort-delete-action {
color: var( --color-destructive );
&:hover {
color: var( --color-destructive--hover );
2019-12-29 18:45:17 +00:00
}
&:active {
color: var( --color-destructive--active );
2019-12-29 18:45:17 +00:00
}
}
// Options parameter description text
.smw-ask-parameter-description {
font-size: var( --font-size-x-small );
color: var( --color-subtle );
}