Module:TemplateBase/Infobox/styles.css
From KolymaPEDIA
Jump to navigationJump to search
/* ==================================================
Base Infobox Structural Styling
================================================== */
.tbase-infobox {
width: 300px;
border: 1px solid #2988F7;
border-radius: 2px;
background: linear-gradient(#DDF1F4, #E9F4F8, #E9F4F8);
border-collapse: separate;
border-spacing: 0;
margin: 0.5em 0 0.5em 1em;
float: right;
clear: right;
font-size: 90%;
overflow: hidden; /* Enforces the border-radius clipping */
}
/* Top Title Block */
.tbase-infobox-title {
background: transparent;
background-image: linear-gradient(#288CF8, #81B6D3, #95A3F4);
color: #fff;
text-shadow:
-1px -1px 0 black,
1px -1px 0 black,
-1px 1px 0 black,
1px 1px 0 black;
font-size: 131%;
font-weight: bold;
text-align: center;
padding: 0.5em;
line-height: 1.2em;
letter-spacing: 0.7px;
}
/* Image Container */
.tbase-infobox-image {
position: relative;
text-align: center;
padding: 0 !important;
}
.tbase-infobox-image img {
max-width: 100%;
height: auto;
}
/* Table Cells Setup */
.tbase-infobox th,
.tbase-infobox td {
padding: 0 0.4em;
vertical-align: middle;
}
/* Labels (The left column) */
.tbase-infobox-label {
font-weight: bold;
text-align: left;
width: 35%;
}
/* Data (The right column) */
.tbase-infobox-data,
.tbase-infobox-full-data {
text-align: left;
}
/* Lines between each category */
.tbase-infobox tr + tr > th,
.tbase-infobox tr + tr > td {
border-top: 1px solid rgba(0, 0, 0, 0.15);
}
/* Subheaders & Headers */
.tbase-infobox-header {
background: rgba(0, 0, 0, 0.05);
font-weight: bold;
text-align: center;
}
/* Force MediaWiki list formatting inside data cells */
.tbase-infobox-data ul {
margin: 0 0 0 1.5em !important;
padding: 0;
list-style-type: disc !important;
}
.tbase-infobox-data li {
margin: 0;
padding: 0;
}
/* ==================================================
Military Conflict Grid & Legacy Adaptions
================================================== */
.tbase-infobox-split-table {
width: 100%;
margin: 0;
padding: 0;
border: 0;
border-collapse: collapse;
display: table;
table-layout: fixed;
background: transparent;
}
.tbase-infobox-split-table td {
vertical-align: top;
padding: 0.25em 0.5em;
}
/* Strip default cell padding so the inner grid flushes against the edge */
.tbase-infobox-full-data.split-container,
.tbase-infobox-data.split-container {
padding: 0 !important;
}
/* Internal grid margin handling to prevent cramped content */
.tbase-infobox-split-table tr:first-child td {
padding-top: 0.5em;
}
.tbase-infobox-split-table tr:last-child td {
padding-bottom: 0.5em;
}
.tbase-infobox-notes {
font-size: 90%;
text-align: left;
}
/* Status specific normalization carrying over from legacy css */
.tbase-infobox .status > p:first-child {
margin: 0;
}
@media all and (min-width: 720px) {
.desktop-float-right {
box-sizing: border-box;
float: right;
clear: right;
}
}