MediaWiki:Common.css: Difference between revisions
IssuePress (talk | contribs) No edit summary |
IssuePress (talk | contribs) No edit summary |
||
Line 37: | Line 37: | ||
} | } | ||
th.infobox-title { | .infobox th.infobox-title { | ||
font-size: 1rem; | font-size: 1rem; | ||
font-weight: bold; | font-weight: bold; | ||
Line 54: | Line 54: | ||
font-weight: 600; | font-weight: 600; | ||
text-align: center; | text-align: center; | ||
} | |||
.infobox .button { | |||
position: relative; | |||
padding:.25rem 1.5rem; | |||
background-color:#E6F2F9; | |||
color:#3393CC; | |||
border:1px solid; | |||
border-radius:1rem; | |||
text-decoration:none; | |||
display: inline-flex; | |||
align-items:center; | |||
box-sizing: border-box; | |||
height: 32px; | |||
} | |||
.infobox .button::before { | |||
background-color: transparent; | |||
position: absolute; | |||
top: 0; | |||
bottom: 0; | |||
left: 0; | |||
right: 0; | |||
opacity: 0; | |||
} | |||
.infobox .button:hover::before { | |||
background-color: currentColor; | |||
opacity: .1; | |||
} | } | ||
Revision as of 03:05, 8 December 2024
/* CSS placed here will be applied to all skins */
.infobox {
font-size: .875rem;
background: #f8f9fa;
padding: 1.375rem 1rem;
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:.5rem;
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;
}
.infobox .button {
position: relative;
padding:.25rem 1.5rem;
background-color:#E6F2F9;
color:#3393CC;
border:1px solid;
border-radius:1rem;
text-decoration:none;
display: inline-flex;
align-items:center;
box-sizing: border-box;
height: 32px;
}
.infobox .button::before {
background-color: transparent;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
opacity: 0;
}
.infobox .button:hover::before {
background-color: currentColor;
opacity: .1;
}
.rootpage-Main_Page .mw-body-header,
.rootpage-Main_Page .vector-page-toolbar {
display: none;
}
.chip-container {
font-size: .875rem;
background: #f8f9fa;
padding: 1.5rem;
border-radius: 1rem;
overflow: hidden;
margin-bottom: 1rem;
}
.chip-container h2 {
font-family: sans-serif !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;
}
.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;
}
.chip.text-white a {
color: white;
}
.chip.text-black a {
color: black;
}
@media screen {
.vector-body {
font-size: 1rem;
font-size: calc(1em * 1);
line-height: 1.6;
}
}
@media (min-width:641px) {
.infobox {
margin: 0 0 1rem 1rem;
max-width: 350px;
width: auto;
}
}