mediawiki-skins-Citizen/resources/skins.citizen.styles/common/common.less

275 lines
4 KiB
Plaintext
Raw Normal View History

2019-08-15 17:40:13 +00:00
/*
* Framework
*/
html {
2020-02-06 19:44:22 +00:00
scroll-behavior: smooth; // not supported by IE, Edge, Safari, and Opera, use JQuery as fallback
scroll-padding-top: @header-height + @margin-side; // fixed header offset, supported by major browsers
2019-08-15 17:40:13 +00:00
}
html,
body {
2020-02-06 19:44:22 +00:00
min-height: 100%;
padding: 0;
margin: 0;
background: var( --common-html-background );
color: var( --common-html-color );
overflow-x: hidden; // prevent overflow from scrollbar
2019-08-15 17:40:13 +00:00
}
table {
display: block;
2020-02-06 19:44:22 +00:00
overflow: auto;
max-width: 100vw;
2019-08-15 17:40:13 +00:00
}
hr {
2020-02-06 19:44:22 +00:00
display: none;
2019-08-15 17:40:13 +00:00
}
ul {
2020-02-06 19:44:22 +00:00
list-style-type: square;
2019-08-15 17:40:13 +00:00
}
ul,
ol {
2020-02-06 19:44:22 +00:00
padding: 0;
2019-08-15 17:40:13 +00:00
}
p,
2019-12-10 18:38:02 +00:00
ul,
ol,
2019-12-04 03:51:50 +00:00
dl {
2020-02-06 19:44:22 +00:00
margin: @content-margin-top 0 0 0;
2019-08-15 17:40:13 +00:00
}
pre,
code,
.mw-code {
border: var( --common-pre-border );
background-color: var( --common-pre-background );
color: var( --common-pre-color );
2019-08-15 17:40:13 +00:00
}
code {
2020-02-06 19:44:22 +00:00
padding: 1px 4px;
2019-08-15 17:40:13 +00:00
}
pre,
.mw-code {
2020-02-06 19:44:22 +00:00
padding: 1rem;
/* Wrap lines in overflow. T2260, T103780 */
white-space: pre-wrap;
2019-08-15 17:40:13 +00:00
}
input,
select,
textarea {
border: var( --common-input-border );
background-color: var( --common-input-background );
color: var( --common-input-color );
}
2019-12-10 20:32:34 +00:00
fieldset {
padding: @content-margin-top / 2 @margin-side;
border-color: var( --common-fieldset-border-color );
2020-02-06 19:44:22 +00:00
margin: @content-margin-top 0;
color: var( --common-fieldset-color );
2019-12-10 20:32:34 +00:00
}
2020-02-06 19:44:22 +00:00
fieldset > table {
margin-top: 0 !important;
2019-12-10 20:32:34 +00:00
}
legend {
2020-02-06 19:44:22 +00:00
padding: 4px;
margin: 0;
color: var( --common-legend-color );
2019-12-10 20:32:34 +00:00
}
2020-06-30 20:08:24 +00:00
input,
pre,
code,
2020-06-30 20:16:23 +00:00
fieldset,
2020-06-30 20:48:29 +00:00
select,
textarea {
border: var( --common-input-border );
2020-06-30 20:08:24 +00:00
}
2019-08-15 17:40:13 +00:00
textarea {
2020-02-06 19:44:22 +00:00
width: 100%;
}
blockquote {
2020-02-06 19:44:22 +00:00
padding: 0 @content-margin-top * 4 * @content-scaling;
margin: @content-margin-top * 2 * @content-scaling;
2020-02-06 19:44:22 +00:00
color: @base-30;
cite {
display: block;
margin-top: @content-margin-top * @content-scaling;
&:before {
2020-02-06 19:56:27 +00:00
content: '— ';
}
2020-02-06 19:44:22 +00:00
}
2019-08-15 17:40:13 +00:00
}
2019-11-19 00:43:44 +00:00
dd {
2020-02-06 19:44:22 +00:00
margin-bottom: 0.1rem;
margin-left: @content-margin-top * 2;
2019-11-19 00:43:44 +00:00
}
2019-08-15 17:40:13 +00:00
td {
2020-02-06 19:44:22 +00:00
> p,
> ul,
> ol {
&:first-child {
margin-top: 0; // Remove margin for the first element in td
}
}
2019-08-15 17:40:13 +00:00
}
a {
2020-02-06 19:44:22 +00:00
color: @color-link;
text-decoration: none !important;
&:not( [ href ] ) {
cursor: pointer;
/* Always cursor:pointer even without href */
}
&:hover {
color: var( --common-link-color );
2020-02-06 19:44:22 +00:00
}
&.new {
color: var( --common-link-new-color ) !important; // Override visited
2020-02-06 19:44:22 +00:00
&:hover {
color: @color-link-new-active !important;
}
}
&.mw-selflink {
color: inherit;
font-weight: bold;
text-decoration: inherit;
&:hover {
cursor: inherit;
text-decoration: inherit;
}
2020-06-11 01:41:05 +00:00
&:active {
2020-02-06 19:44:22 +00:00
color: inherit;
}
}
2019-08-15 17:40:13 +00:00
}
.error {
2020-02-06 19:44:22 +00:00
padding: 2px 4px;
background-color: @red-90;
2019-08-15 17:40:13 +00:00
}
2019-12-11 05:53:49 +00:00
.nowrap {
2020-02-06 19:44:22 +00:00
white-space: nowrap;
2019-12-11 05:53:49 +00:00
}
2019-08-15 17:40:13 +00:00
/*
* Content
*/
.mw-body,
.parsoid-body {
2020-02-06 19:44:22 +00:00
min-height: 80vh; // avoid footer being in the middle of the page
padding: 0 @margin-side;
margin-top: @header-height + @margin-side;
2020-02-06 19:44:22 +00:00
direction: ltr;
2019-08-15 17:40:13 +00:00
}
2020-06-14 01:54:32 +00:00
.mw-body-content {
.plainlist ol,
.plainlist ul {
margin: 0;
2020-06-14 01:54:32 +00:00
line-height: inherit;
list-style: none none;
}
}
2019-08-15 17:40:13 +00:00
.mw-wiki-title {
2020-02-06 19:44:22 +00:00
a& {
color: @base-50;
transition: @transition-opacity;
&:hover,
&:active,
&:focus {
color: @base-30;
text-decoration: none;
}
}
2019-08-15 17:40:13 +00:00
}
2020-06-11 22:15:40 +00:00
figcaption,
.thumbcaption {
margin: @content-margin-top / 2 0 0;
color: @base-30;
}
2020-02-06 19:44:22 +00:00
.thumb {
overflow: hidden;
> .thumbinner {
> a {
transition: @transition-box-shadow-quick;
&:hover:not( .lazy ):not( .new ) {
.boxshadow(2);
img {
transform: scale( 1.1 );
}
}
&:before {
content: none;
}
&.new {
display: block;
padding: @margin-side / 2;
background-color: @base-80;
transition: @transition-background-quick, @transition-color-quick;
}
}
}
}
2020-06-12 17:44:24 +00:00
.mw-indicators {
/* Ensure that this is displayed on top of .mw-body-content and clickable */
position: relative;
z-index: 1;
float: right;
2020-06-12 17:44:24 +00:00
}
2020-02-06 19:44:22 +00:00
/* Wider page width for special pages */
.ns--1 {
.firstHeading,
#siteSub,
.mw-body-content {
max-width: @screen2;
}
2020-06-12 17:44:24 +00:00
}
2020-02-06 19:44:22 +00:00
.skin-citizen-dark {
.mw-editsection > a:before {
filter: invert( 1 );
}
}
2020-06-10 05:17:49 +00:00
@media ( max-width: @screen2 ) {
2020-02-06 19:44:22 +00:00
.mw-editsection {
position: relative !important;
transform: none !important;
}
2019-08-19 04:33:07 +00:00
}