2022-11-15 15:43:56 +00:00
|
|
|
/*
|
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* Module: mediawiki.skinning.elements
|
|
|
|
* Version: REL1_39
|
|
|
|
*
|
|
|
|
* Date: 2022-11-14
|
2023-06-08 19:30:00 +00:00
|
|
|
*/
|
2022-11-15 15:43:56 +00:00
|
|
|
|
2022-11-15 21:08:36 +00:00
|
|
|
/* Links */
|
|
|
|
// Some of the link styles are handled in content.links
|
|
|
|
a {
|
|
|
|
color: var( --color-link );
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:not( [ href ] ) {
|
|
|
|
cursor: pointer; /* Always cursor:pointer even without href */
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var( --color-link--hover );
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: var( --color-link--active );
|
|
|
|
}
|
2023-06-15 18:37:07 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
a:lang( ar ),
|
|
|
|
a:lang( kk-arab ),
|
|
|
|
a:lang( mzn ),
|
|
|
|
a:lang( ps ),
|
|
|
|
a:lang( ur ) {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Inline Elements */
|
|
|
|
img {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr {
|
2023-07-28 01:19:27 +00:00
|
|
|
margin: var( --space-md ) 0;
|
2022-11-15 21:08:36 +00:00
|
|
|
border: 0;
|
2024-07-15 06:07:25 +00:00
|
|
|
border-top: var( --border-width-base ) solid var( --border-color-base );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Structural Elements */
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
margin: 0;
|
2022-11-25 01:21:36 +00:00
|
|
|
// It seems that many wikis have the expectation that headers have a bottom margin
|
|
|
|
margin-bottom: 0.25em;
|
2024-10-23 21:34:41 +00:00
|
|
|
font-weight: var( --font-weight-semi-bold );
|
2024-10-23 21:33:46 +00:00
|
|
|
line-height: var( --line-height-xxx-small );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2 {
|
|
|
|
margin-top: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h3,
|
|
|
|
h4 {
|
|
|
|
margin-top: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h5,
|
|
|
|
h6 {
|
|
|
|
margin-top: 1.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2024-02-26 21:54:58 +00:00
|
|
|
font-size: var( --font-size-xxx-large );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
2024-02-26 21:54:58 +00:00
|
|
|
font-size: var( --font-size-xx-large );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
2024-02-26 21:54:58 +00:00
|
|
|
font-size: var( --font-size-x-large );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h4 {
|
2024-02-26 21:54:58 +00:00
|
|
|
font-size: var( --font-size-large );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h5 {
|
2024-02-26 21:54:58 +00:00
|
|
|
font-size: var( --font-size-medium );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
h6 {
|
2024-02-26 21:54:58 +00:00
|
|
|
font-size: var( --font-size-medium );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: var( --space-md ) 0;
|
|
|
|
overflow-wrap: break-word; // Force wrap to preserve layout
|
|
|
|
}
|
|
|
|
|
|
|
|
p img {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2024-06-18 23:48:40 +00:00
|
|
|
ol {
|
2022-11-15 15:43:56 +00:00
|
|
|
padding: 0;
|
2024-06-14 20:02:13 +00:00
|
|
|
margin: var( --space-md ) 0 var( --space-md ) var( --space-xxl );
|
2022-11-15 15:43:56 +00:00
|
|
|
}
|
|
|
|
|
2024-06-18 23:48:40 +00:00
|
|
|
ul {
|
|
|
|
// Will break a lot of styles if we use padding for horizontal spacing
|
2022-11-15 15:43:56 +00:00
|
|
|
padding: 0;
|
2024-06-14 20:02:13 +00:00
|
|
|
margin: var( --space-md ) 0 var( --space-md ) var( --space-xxl );
|
2022-11-15 15:43:56 +00:00
|
|
|
}
|
2022-11-15 21:08:36 +00:00
|
|
|
|
2024-06-18 23:48:40 +00:00
|
|
|
ol,
|
|
|
|
ul {
|
|
|
|
ol,
|
|
|
|
ul {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-15 21:08:36 +00:00
|
|
|
dt {
|
2024-10-23 21:34:41 +00:00
|
|
|
font-weight: var( --font-weight-semi-bold );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dl {
|
|
|
|
margin: var( --space-md ) 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
dd {
|
|
|
|
margin-left: var( --space-lg );
|
|
|
|
}
|
|
|
|
|
|
|
|
pre,
|
|
|
|
code,
|
|
|
|
tt,
|
|
|
|
kbd,
|
|
|
|
samp,
|
|
|
|
.mw-code {
|
|
|
|
font-family: var( --font-family-monospace );
|
2024-02-26 22:16:07 +00:00
|
|
|
font-size: var( --font-size-small );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pre,
|
|
|
|
code,
|
|
|
|
.mw-code {
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-emphasized );
|
2023-07-28 01:19:27 +00:00
|
|
|
background-color: var( --color-surface-2 );
|
2024-07-15 06:07:25 +00:00
|
|
|
border: var( --border-width-base ) solid var( --border-color-base );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
padding: 2px 4px;
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-base );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pre,
|
|
|
|
.mw-code {
|
|
|
|
padding: 1rem;
|
2023-07-28 01:19:27 +00:00
|
|
|
overflow: auto;
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-large );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Forms */
|
|
|
|
fieldset {
|
|
|
|
padding: var( --space-xs ) var( --space-md );
|
|
|
|
margin: var( --space-md ) 0;
|
2024-07-15 06:07:25 +00:00
|
|
|
border: var( --border-width-base ) solid var( --border-color-base );
|
2022-11-15 21:08:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
legend {
|
|
|
|
padding: var( --space-xxs );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-11-15 21:08:36 +00:00
|
|
|
letter-spacing: 0.05em;
|
|
|
|
}
|
|
|
|
|
2022-11-18 21:22:27 +00:00
|
|
|
/* Figure */
|
|
|
|
figure {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2022-11-15 21:08:36 +00:00
|
|
|
/* Emulate Center */
|
|
|
|
.center {
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
*.center * {
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|