2019-08-15 17:40:13 +00:00
|
|
|
/*
|
2022-12-07 19:38:04 +00:00
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* SkinStyles for Special:RecentChanges and Watchlist
|
|
|
|
* Module: mediawiki.special.changeslist
|
|
|
|
* Version: 1.39.0
|
|
|
|
*
|
2023-06-01 22:47:40 +00:00
|
|
|
* Date: 2023-05-29
|
2019-08-15 17:40:13 +00:00
|
|
|
*/
|
|
|
|
|
2023-07-16 06:54:10 +00:00
|
|
|
@import '../../../resources/variables.less';
|
|
|
|
@import '../../../resources/mixins.less';
|
|
|
|
|
2022-12-07 19:38:04 +00:00
|
|
|
/* default.less */
|
2022-05-12 21:43:39 +00:00
|
|
|
.mw-plusminus {
|
|
|
|
&-pos {
|
2023-06-01 22:47:40 +00:00
|
|
|
color: var( --color-text-success );
|
2022-05-12 21:43:39 +00:00
|
|
|
}
|
|
|
|
|
2023-06-01 22:47:40 +00:00
|
|
|
&-neg {
|
|
|
|
color: var( --color-text-error );
|
2022-05-12 21:43:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-null {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-08-15 17:40:13 +00:00
|
|
|
.mw-changeslist {
|
2022-12-01 21:13:25 +00:00
|
|
|
h4 {
|
2023-07-11 21:06:01 +00:00
|
|
|
z-index: 1; // Needed to cover the timeline dots
|
2022-11-16 23:25:02 +00:00
|
|
|
padding: var( --space-sm ) 0;
|
2022-12-01 21:13:25 +00:00
|
|
|
margin-bottom: 0;
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-10-23 23:40:19 +00:00
|
|
|
font-weight: var( --font-weight-normal );
|
2023-07-28 01:19:27 +00:00
|
|
|
color: var( --color-base--subtle );
|
2022-10-28 03:26:52 +00:00
|
|
|
letter-spacing: 0.05em;
|
2022-12-01 21:13:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&-line {
|
2023-07-11 21:34:35 +00:00
|
|
|
/* Disable timeline dot for nested changeline */
|
|
|
|
.mw-changeslist-line::before {
|
2024-01-27 01:57:53 +00:00
|
|
|
content: none;
|
2023-07-11 19:49:56 +00:00
|
|
|
}
|
|
|
|
|
2023-07-06 23:41:59 +00:00
|
|
|
&-inner {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
2021-03-06 14:59:07 +00:00
|
|
|
}
|
2023-07-06 23:41:59 +00:00
|
|
|
|
|
|
|
&-separator {
|
|
|
|
color: var( --color-base--subtle );
|
2023-12-14 00:16:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-12 02:52:26 +00:00
|
|
|
.cloptions {
|
2022-12-07 19:38:04 +00:00
|
|
|
padding: 0;
|
2023-07-12 00:35:46 +00:00
|
|
|
margin: 0;
|
2023-07-28 01:19:27 +00:00
|
|
|
border: 0;
|
2022-12-07 19:38:04 +00:00
|
|
|
|
2023-07-12 02:52:26 +00:00
|
|
|
> legend {
|
|
|
|
display: none; // Eh it is difficult to style legend
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not( .oo-ui-widget ) {
|
|
|
|
padding: var( --space-md );
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2023-07-28 01:19:27 +00:00
|
|
|
background: var( --color-surface-2 );
|
|
|
|
border-radius: var( --border-radius--medium );
|
2022-12-07 19:38:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-12 02:52:26 +00:00
|
|
|
/* Skeleton screen loading */
|
2023-07-12 00:35:46 +00:00
|
|
|
body:not( .mw-rcfilters-ui-initialized ) .mw-rcfilters-head {
|
|
|
|
padding: var( --space-md );
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2023-07-28 01:19:27 +00:00
|
|
|
background: var( --color-surface-2 );
|
|
|
|
border-radius: var( --border-radius--medium );
|
2023-07-12 00:35:46 +00:00
|
|
|
}
|
|
|
|
|
2023-07-11 19:49:56 +00:00
|
|
|
.client-js {
|
|
|
|
.mw-recentchanges-toplinks {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
2023-07-06 23:07:08 +00:00
|
|
|
|
2023-07-11 19:49:56 +00:00
|
|
|
.mw-recentchanges-toplinks:not( .mw-recentchanges-toplinks-collapsed ) {
|
|
|
|
padding: 0; /* Shift padding to button only */
|
2023-07-28 01:19:27 +00:00
|
|
|
margin-bottom: 16px; /* Same margin between rcfilter and saved filter */
|
2023-07-11 19:49:56 +00:00
|
|
|
border-color: var( --border-color-base );
|
|
|
|
border-radius: var( --border-radius--small );
|
2023-07-06 23:07:08 +00:00
|
|
|
|
2023-07-11 19:49:56 +00:00
|
|
|
/* Extend button to full width */
|
|
|
|
.oo-ui-buttonElement-frameless.oo-ui-labelElement:first-child {
|
2023-07-06 23:07:08 +00:00
|
|
|
display: block;
|
2023-07-11 19:49:56 +00:00
|
|
|
background: var( --color-surface-2 );
|
|
|
|
border-top-left-radius: var( --border-radius--small );
|
|
|
|
border-top-right-radius: var( --border-radius--small );
|
2023-07-06 23:07:08 +00:00
|
|
|
|
2023-07-11 19:49:56 +00:00
|
|
|
.oo-ui-buttonElement-button {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.oo-ui-indicatorElement-indicator {
|
|
|
|
right: 6px !important;
|
|
|
|
}
|
2023-07-06 23:07:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-recentchanges-toplinks {
|
|
|
|
.oo-ui-buttonElement-frameless.oo-ui-labelElement:first-child {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-06-03 00:21:18 +00:00
|
|
|
}
|
2022-12-01 21:13:25 +00:00
|
|
|
|
2023-01-31 20:38:03 +00:00
|
|
|
/*
|
|
|
|
* Only apply stick header style on the special pages
|
|
|
|
* Sometimes wiki transclude those pages and these styles will break regular pages
|
|
|
|
*/
|
|
|
|
.ns-special {
|
|
|
|
.mw-changeslist h4 {
|
|
|
|
.citizen-sticky-header( 0, false, false );
|
|
|
|
}
|
|
|
|
|
|
|
|
// Disable sticky header
|
|
|
|
#citizen-body-header-sticky-sentinel {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-12-01 21:13:25 +00:00
|
|
|
}
|
2023-07-11 21:34:35 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Make changelist looks like a timeline
|
|
|
|
* And also sync different history lists into the same styles
|
|
|
|
*/
|
|
|
|
.mw-changeslist,
|
|
|
|
.mw-contributions-list {
|
|
|
|
position: relative;
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2023-07-11 21:34:35 +00:00
|
|
|
|
|
|
|
/* Timeline line */
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 4px;
|
|
|
|
width: 1px;
|
|
|
|
content: '';
|
2023-07-28 01:19:27 +00:00
|
|
|
background: var( --border-color-base--darker );
|
2023-07-11 21:34:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-changeslist ul,
|
|
|
|
.mw-contributions-list {
|
|
|
|
margin: 0 !important;
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-changeslist-line,
|
|
|
|
.mw-contributions-list li {
|
|
|
|
padding: var( --space-sm ) var( --space-xs ) !important;
|
|
|
|
margin: 0 0 0 16px !important;
|
2023-07-12 00:14:15 +00:00
|
|
|
color: var( --color-base--subtle );
|
2024-01-27 01:57:53 +00:00
|
|
|
border-radius: var( --border-radius--small );
|
2023-07-11 21:34:35 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --background-color-quiet--hover );
|
2023-07-16 19:50:30 +00:00
|
|
|
|
|
|
|
&::before {
|
|
|
|
background-color: var( --color-base--emphasized );
|
|
|
|
}
|
2023-07-11 21:34:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Timeline dot */
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
margin-top: 7px;
|
|
|
|
content: '';
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-base--subtle );
|
|
|
|
border-radius: 100%;
|
2023-07-11 21:34:35 +00:00
|
|
|
}
|
2023-07-12 00:14:15 +00:00
|
|
|
|
|
|
|
.comment {
|
|
|
|
color: var( --color-base ); // Make comment more readable
|
|
|
|
}
|
2023-07-11 21:34:35 +00:00
|
|
|
}
|
2023-07-11 21:41:21 +00:00
|
|
|
|
|
|
|
.mw-pager-navigation-bar {
|
|
|
|
margin: var( --space-md ) 0;
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|