mediawiki-skins-Citizen/skinStyles/mediawiki/action/mediawiki.action.history.styles.less
alistair3149 a7f9c55c88
feat(core): update hover transition styles and implementation
The timing and easing function are defined separately than the property.
It is now accessible as a CSS variable (transition-hover)
2023-07-07 16:36:38 -04:00

56 lines
985 B
Plaintext

/*
* Citizen - Page History Styles
* https://starcitizen.tools
*/
@import '../../../resources/variables.less';
#mw-history-compare {
margin: var( --space-md ) 0;
}
.mw-history-compareselectedversions {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
margin: var( --space-md ) 0;
font-size: 0.875rem;
}
#pagehistory {
margin: 0;
list-style: none;
li {
padding: 10px 0;
border-bottom: 1px solid var( --border-color-base );
font-size: 0.875rem;
transition: var( --transition-hover );
transition-property: background, color;
&.selected {
color: var( --color-base );
outline: 0;
&.before {
background-color: var( --background-color-primary--active );
}
&.after {
background-color: var( --background-color-primary--hover );
}
}
&:hover {
background-color: var( --background-color-quiet--hover );
}
}
}
.skin-citizen-dark {
#pagehistory li.selected a {
color: @color-accent90;
}
}