MediaWiki interface page
Revision as of 20:43, 7 February 2023 by Js (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* All CSS here will be loaded for users of the Citizen skin */
:root {
    --color-base: black;
    --color-base--emphasized: black;
    --color-base--subtle: gray;

    /*--color-primary__h: 153;
    --color-primary__s: 78%;
    --color-primary__l: 43%; light green colour */

    --color-primary__h: 120;
    --color-primary__s: 100%;
    --color-primary__l: 21%;

    --font-family-base: "eda","HelveticaNeue",Helvetica,Arial,sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #26262;
    background-color: rgba(0, 0, 0, 0);

}

a:hover {    text-decoration: underline;}

/* no wordmark in the footer */
 .mw-logo-wordmark { display: none; } 

/* no header: we'll add page titles manually to be able to change the colour */
.firstHeading-container { visibility: hidden; }  
#siteSub { visibility: hidden; }

/* Bring the text to 14px */
#bodyContent { font-size: 1.175em; }

/* Hide the ToC */
/*.toc { visibility: hidden; } */

a.image img {
	max-width:100%;
	height:auto;
}


/* Colorem video */
div.colorem {
    width: 100%;
    height: auto;
     position: absolute;
    pointer-events: none;
    max-width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: top center;
    top: 0;
    left: 0;
    z-index: -1;
}

div.colorem video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    overflow-clip-margin: content-box;
    overflow: clip;
}

/* Logo on top */
.page-heading {
    background: url(/w/resources/assets/edgy-logo.svg) left center/contain no-repeat border-box;
}

.citizen-body-header--sticky {
    background-color: rgba(0, 0, 0, 0);
}
.citizen-body-header--sticky .mw-body-header {
    background-color: rgba(0, 0, 0, 0);
}

.citizen-body-header--sticky .mw-body-header::before {
    background-color: rgba(0, 0, 0, 0);
}


header.mw-body-header {
    gap: 0; 
    background-color: rgba(0, 0, 0, 0);
}


/* cards */
.card {
	display: flex;
	min-width: 240px;
	max-width: 100%;
	box-sizing: border-box;
	flex-direction: column;
	flex-grow: 1;
	justify-content: space-between;
	margin: 0 0.2rem 0.4rem 0.2rem;
	background-color: var( --color-surface-1 );
	border-radius: var( --border-radius--medium );
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.03 ), 0 1px 2px rgba( 0, 0, 0, 0.06 );
	font-size: 0.875rem;
	transition: box-shadow 0.2s ease;
}

.card:hover {
	box-shadow: 0 10px 20px rgba( 0, 0, 0, 0.0475 ), 0 6px 6px rgba( 0, 0, 0, 0.0575 );
}

.card-col2 {
	width: calc( 100% / 2 - 0.4rem );
}

.card-col3 {
	width: calc( 100% / 3 - 0.4rem );
}

.card-col4 {
	width: calc( 100% / 4 - 0.4rem );
}

.card-col5 {
	width: calc( 100% / 5 - 0.4rem );
}

.card-col6 {
	width: calc( 100% / 6 - 0.4rem );
}

.card-container {
	margin-top: 1.6rem !important;
	margin-right: -0.2rem;
	margin-bottom: 1.6rem !important;
	margin-left: -0.2rem;
	border-radius: 0 0 12px 12px;
}

.card-container.floatnone {
	padding: 0 20px;
}

.card-row {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
}

.card-caption {
	font-size: 0.875rem;
	font-weight: 600;
}

.card-image a {
	display: flex;
	overflow: hidden;
	justify-content: center;
	background: none !important;
}

.card-image a img {
	transition: transform 0.2s cubic-bezier( 0.77, 0.2, 0.05, 1 );
}

.card:hover .card-image a img {
	transform: scale( 1.1 );
}

.card .card-title {
	margin-top: 0;
	margin-bottom: 0.8rem;
	color: var( --color-base--emphasized );
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
}

/* CSS hack */
.card .card-title + .byline-bottom {
	margin-top: -0.6rem;
}

.card ol,
.card ul {
	padding-left: 1.6rem;
	margin: 0;
}

.card .byline-top,
.card .byline-bottom {
	color: var( --color-base );
	font-size: 0.825rem;
}

.card .byline-top {
	margin: 0 0 0.2rem 0;
}

.card .byline-bottom {
	margin: 0.2rem 0 1.6rem 0;
}

.card .byline-bottom + p {
	margin-top: 0.8rem;
}

.card .numdata {
	margin-top: 0.8rem;
}

.card-top,
.card-bottom {
	padding: 1.2rem;
}

.card-button {
	background: var( --color-base );
	border-radius: 0 0 var( --border-radius--medium ) var( --border-radius--medium );
	transition: opacity 0.2s ease;
}

.card-button:hover {
	opacity: 0.8;
}

.card-button a {
	display: block;
	padding: 0.6rem;
	/* Cancel out a styles */
	background: none !important;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.25px;
	text-align: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.card-bottom {
	background: var( --color-surface-2 );
}

@media only screen and ( max-width: 720px ) {
	.card-row {
		overflow: auto;
		width: auto;
		flex-wrap: nowrap;
		padding: 0 20px;
		margin: 0 -20px;
	}
}