MediaWiki:Common.css: Skillnad mellan sidversioner

Från Gonjo wiktionary
Hoppa till navigering Hoppa till sök
(Skapade sidan med '→‎CSS som skrivs här påverkar alla utseenden: @import url('https://fonts.googleapis.com/css2?family=Noto+Serif&display=swap'); h1{ font-family: 'Noto Serif', serif; }')
 
Ingen redigeringssammanfattning
 
(47 mellanliggande sidversioner av samma användare visas inte)
Rad 1: Rad 1:
/* CSS som skrivs här påverkar alla utseenden */
/* CSS som skrivs här påverkar alla utseenden */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arimo&family=Tinos&display=swap');


h1{
body{
font-family: 'Noto Serif', serif;
font-family: 'Arimo', sans-serif;
font-size: 115%;
}
 
.mw-body h1{
font-family: 'Tinos', serif;
font-size: 54px;
}
 
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
 
.mainpage_box h1 {
border-bottom: none;
}
 
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
display: block;
background: none;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
.mw-pt-languages-label {
background: none;
border-right: none;
}
 
/*
FÖR PERIODISKA SYSTEMET-MALLEN
*/
 
.elem{
cursor: help;
text-align:center;
}
 
.fromNatural{
border: 2px solid #8811ff;
}
 
.fromDecay{
border: 2px dashed #773300;
}
 
.fromSynthetic{
border: 2px dotted #4499ff;
}
 
.isGas{
color: red;
}
 
.isLiquid{
color: green;
}
 
.isUnknown{
color: lightgray;
}
 
.alkali{
background-color: #ff6666;
}
 
.alkaliEarth{
background-color: #ffdead;
}
 
.lantanoid{
background-color: #ffbfff;
}
 
.actinoid{
background-color: #ff99cc;
}
 
.transitionMetal{
background-color: #ffc0c0;
}
 
.otherMetal{
background-color: #cccccc;
}
 
.halfMetal{
background-color: #cccc99;
}
 
.diatomic{
background-color: #e7ff8f;
}
 
.polyatomic{
background-color: #a1ffc3;
}
 
.nobleGas{
background-color: #c0ffff;
}
 
.unknownProperty{
background-color: #e8e8e8;
}
 
 
@media screen and (max-width: 719px) {
.thumb {
float: none;
}
.thumb, .thumbinner {
margin-left: auto;
margin-right: auto;
}
}
 
.helpCursor{
cursor: help;
}
}

Nuvarande version från 17 oktober 2023 kl. 02.21

/* CSS som skrivs här påverkar alla utseenden */
@import url('https://fonts.googleapis.com/css2?family=Arimo&family=Tinos&display=swap');

body{
font-family: 'Arimo', sans-serif;
font-size: 115%;
}

.mw-body h1{
font-family: 'Tinos', serif;
font-size: 54px;
}

.mainpage_row {
	display: flex;
	flex-direction: row;
	flex-flow: row wrap;
	justify-content: space-between;
	padding: 0;
	margin: 0 -5px 0 -5px;
}
.mainpage_box {
	flex: 1;
	margin: 5px;
	min-width: 210px;
	border: 1px solid #CCC;
	padding: 0 10px 10px 10px;
	box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}

.mainpage_box h1 {
border-bottom: none;
}

.mainpage_box h3 {
	/* Reset padding so is equal across skins */
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
	/* Padding left gets overridden by headanchor gadget */
	margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
	padding-left: 0;
}
.mainpage_box h3 .header_icon {
	float: left;
	margin-right: 5px;
}
.mainpage_box .items {
	border-top: 1px solid #CCC;
	padding-top: 0.5em;
}
.mainpage_box p:last-child {
	margin-bottom: 0;
}
.mainpage_boxcontents_small {
	font-size: 95%;
}
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
	display: block;
	background: none;
	border: 1px solid #CCC;
	box-shadow: 0 2px 2px rgba(0,0,0,0.1);
	width: auto;
}
.mw-pt-languages-label {
	background: none;
	border-right: none;
}

/* 
FÖR PERIODISKA SYSTEMET-MALLEN
*/

.elem{
cursor: help;
text-align:center;
}

.fromNatural{
border: 2px solid #8811ff;
}

.fromDecay{
border: 2px dashed #773300;
}

.fromSynthetic{
border: 2px dotted #4499ff;
}

.isGas{
color: red;
}

.isLiquid{
color: green;
}

.isUnknown{
color: lightgray;
}

.alkali{
background-color: #ff6666;
}

.alkaliEarth{
background-color: #ffdead;
}

.lantanoid{
background-color: #ffbfff;
}

.actinoid{
background-color: #ff99cc;
}

.transitionMetal{
background-color: #ffc0c0;
}

.otherMetal{
background-color: #cccccc;
}

.halfMetal{
background-color: #cccc99;
}

.diatomic{
background-color: #e7ff8f;
}

.polyatomic{
background-color: #a1ffc3;
}

.nobleGas{
background-color: #c0ffff;
}

.unknownProperty{
background-color: #e8e8e8;
}


@media screen and (max-width: 719px) {
	.thumb {
		float: none;
	}
	.thumb, .thumbinner {
		margin-left: auto;
		margin-right: auto;
	}
}

.helpCursor{
cursor: help;
}