MediaWiki:Common.css: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 290: Line 290:
.wikitable tr:first-child td { border-top-style: solid; }
.wikitable tr:first-child td { border-top-style: solid; }
.wikitable tr td:first-child { border-left-style: solid; }
.wikitable tr td:first-child { border-left-style: solid; }
.wikitable tr:first-child th:first-child {
    border-top-left-radius: 1rem;
    overflow:hidden;
}
.wikitable tr:first-child th:last-child {
border-top-right-radius: 1rem;
overflow:hidden;
}
.wikitable tr:last-child td:first-child {
.wikitable tr:last-child td:first-child {

Revision as of 23:28, 12 December 2024

/* CSS placed here will be applied to all skins */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:[email protected]&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Roboto+Mono&display=swap');

html, body {
	font-family: "Roboto", sans-serif;
	font-style: normal;
}

.mw-body h1, .mw-body-content h1, .mw-body-content h2, .mw-page-title-main {
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.code {
	font-family: "Roboto Mono", monospace;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

.infobox {
	font-size: .875rem;
    background: #f8f9fa;
    padding: 1.375rem 1rem;
    margin-bottom: 1.5rem;
	width: 100%;
    border-radius: 1rem;
    border: 1px solid #F1F3F5;
}

.infobox-image {
    text-align: center;
}

.infobox .leaflet-container {
	aspect-ratio: 7/5;
	border: 1px solid F1F3F5;
	border-radius:.375rem;
	height: 100% !important;
	min-height: 200px;
	margin-bottom: .5rem;
}

.infobox th {
    text-align: left;
    vertical-align: top;
    padding: .125rem .5rem;
}

.infobox td {
    vertical-align: top;
    padding: .125rem .5rem;
}

.infobox p {
	margin: 0;
}

.infobox th.infobox-title {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.infobox .infobox-header {
	font-size: .875rem;
	font-weight: bold;
	text-align: center;
	padding-top:.5rem;
}

.infobox .infobox-subheader {
	font-size: .75rem;
	font-weight: 600;
	text-align: center;
}

.button {
    position: relative;
    padding: 0.25rem 1.5rem;
    border: 1px solid currentColor; /* Use currentColor for better consistency */
    border-radius: 1rem;
    text-decoration: none;
    display: inline-flex;
    font-weight: 500;
    letter-spacing:.05em;
    align-items: center;
    justify-content: center; /* Add for better alignment in the button */
    box-sizing: border-box;
    height: 32px;
    overflow: hidden; /* Ensures the ::before pseudo-element doesn't exceed boundaries */
    cursor: pointer; /* Ensures it looks clickable */
    transition: background-color 0.3s ease; /* Smooth hover transitions */
}

.button::before {
    content: ""; /* Required for pseudo-elements to display */
    background-color: currentColor; /* Matches text color */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease; /* Smooth opacity transition */
}

.button:hover::before {
    opacity: 0.1; /* Soft hover effect */
}

.button.blue {
	background-color: #0078BF;
	color: #ffffff;
}
.button.blue.outline {
	background-color: #E6F2F9;
    color: #0078BF;
}

.button.green {
	background-color: #67B346;
	color: #ffffff;
}
.button.green.outline {
	background-color: #F0F7EC;
    color: #67B346;
}
.button.red {
	background-color: #FFF0EF;
	color: #ffffff;
}
.button.red.outline {
	background-color: #FFF0EF;
    color: #FF665E;
}

.button.disabled {
	background-color: #B9C3CD;
	color: #ffffff;
	cursor: not-allowed;
}
.button.disabled.outline {
	background-color: #F1F3F5;
    color: #B9C3CD;
}

.rootpage-Main_Page .mw-body-header,
.rootpage-Main_Page .vector-page-toolbar {
  display: none;
}

.catlinks,
.chip-container {
	font-size: .875rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #F1F3F5;
}

.chip-container h2 {
	font-family: "Roboto" !important;
	font-size: 1.2rem;
	font-weight: bold;
	margin: 0 0 .75rem 0;
	padding-top: 0;
	border-bottom: unset;
}

.chip-container .chips {
	display:flex; 
	gap: 0.5rem;
	flex-wrap: wrap;
}

.chip {
	color: black;
	background-color: white;
	display: inline-flex;
	font-size: 1rem; 
	font-weight: 500;
	line-height: 1 !important;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	border-radius: .375rem; 
	box-sizing: border-box;
	padding:.25rem .625rem;
	border: 1px solid #F1F3F5;
	height: 32px;
	overflow: hidden;
}

p .chip {
	font-size: .875rem;
	padding:.125rem .375rem;
	height: 24px;
}

.button::before {
    content: ""; /* Required for pseudo-elements to display */
    background-color: currentColor; /* Matches text color */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease; /* Smooth opacity transition */
}

.button:hover::before {
    opacity: 0.1; /* Soft hover effect */
}

.chip a, .chip span {
	display: inline-flex;
	line-height: 1 !important;
	padding: 0 .125rem;
}

.chip a {
  position: relative;
  bottom: -0.02em;
}

.chip span[typeof="mw:File"],
.chip span[typeof="mw:File"] a {
	height: 100%;
	bottom: 0;
	align-items: center;
}

.text-white,
.text-white a {
	color: white;
}

.text-black,
.text-black a {
	color: black;
}

@media screen {
	
	#mw-indicator-smw-entity-examiner {
	  max-height: 10px;
	}
	
  .vector-body {
    font-size: 1rem;
    font-size: calc(1em * 1);
    line-height: 1.6;
  }
  
  .infobox code,
  .color-metadata code {
  	background-color: #ffffff;
  }
  
 .wikitable {
	border-collapse: separate;
    border-spacing: 0;
   	border-radius: 1rem;
   	overflow: hidden;
   	border: .5px solid #F1F3F5;
 }
 
   .wikitable > tr > th, .wikitable > * > tr > th {
		background-color: #f4f6f7;
   }
  
   .wikitable > tr > th, .wikitable > tr > td, .wikitable > * > tr > th, .wikitable > * > tr > td {
    	border: .5px solid #F1F3F5;
    	padding: .5rem 1rem;
	}
	.wikitable > tr, .wikitable > * > tr {
		background-color: #ffffff;
	}
	.wikitable tr.row-even {
		background-color: #f8f9fa;
	}
	
	.wikitable tr:first-child td { border-top-style: solid; }
	.wikitable tr td:first-child { border-left-style: solid; }
	
	.wikitable tr:last-child td:first-child {
	    border-bottom-left-radius: 1rem;
	    overflow:hidden;
	}
	.wikitable tr:last-child td:last-child {
		border-bottom-right-radius: 1rem;
	    overflow:hidden;
	}
}

@media (min-width:641px) {
	.infobox {
		margin: 0 0 1.5rem 1.5rem;
		max-width: 350px;
    	width: auto;
	}
}