Template:OOOInfoBox/styles.css: Difference between revisions
No edit summary |
mNo edit summary |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* | /* ========================================================= | ||
OOO INFOBOX — Clean Industrial Style | |||
Matches OOO wiki design system | |||
========================================================= */ | |||
.ooo-infobox { | .ooo-infobox { | ||
width: | width: 300px; | ||
border- | border-collapse: collapse; | ||
font-size: 0.92rem; | |||
background: transparent; | |||
color: inherit; | |||
background: | |||
color: | float: right; | ||
clear: right; | |||
margin: 0 0 1em 1em; | |||
} | } | ||
/* | /* --------------------------------------------------------- | ||
TITLE | |||
--------------------------------------------------------- */ | |||
.ooo-infobox__title { | |||
text-align: center; | text-align: center; | ||
font-weight: 800; | font-weight: 800; | ||
font-size: | font-size: 1.1rem; | ||
letter-spacing: . | letter-spacing: 0.3px; | ||
padding-bottom: 10px; | |||
margin-bottom: 8px; | |||
border-bottom: | color: var(--ooo-accent); | ||
border-bottom: 2px solid var(--ooo-border); | |||
} | } | ||
/* | /* --------------------------------------------------------- | ||
IMAGE | |||
--------------------------------------------------------- */ | |||
.ooo-infobox__image { | |||
text-align: center; | text-align: center; | ||
padding: 12px | padding: 8px 0 12px 0; | ||
} | } | ||
.ooo-infobox__image img { | |||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
/* | /* --------------------------------------------------------- | ||
CAPTION | |||
--------------------------------------------------------- */ | |||
.ooo-infobox__caption { | |||
text-align: center; | text-align: center; | ||
font- | font-size: 0.85rem; | ||
margin-bottom: 12px; | |||
opacity: 0.8; | |||
} | } | ||
/* | /* --------------------------------------------------------- | ||
TABLE CELLS | |||
--------------------------------------------------------- */ | |||
.ooo-infobox th, | .ooo-infobox th, | ||
.ooo-infobox td { | .ooo-infobox td { | ||
padding: | padding: 6px 4px; | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.ooo-infobox th { | .ooo-infobox th { | ||
text-align: left; | |||
font-weight: 600; | font-weight: 600; | ||
width: 48%; | |||
opacity: 0.9; | |||
} | } | ||
.ooo-infobox td { | |||
.ooo-infobox | text-align: right; | ||
} | } | ||
/* | /* --------------------------------------------------------- | ||
GROUP HEADERS | |||
--------------------------------------------------------- */ | |||
.ooo-infobox__group th { | .ooo-infobox__group th { | ||
padding-top: 14px; | |||
padding-bottom: 4px; | |||
font-size: 0.85rem; | |||
font-weight: 800; | font-weight: 800; | ||
letter-spacing: 0.3px; | |||
text-transform: uppercase; | |||
color: var(-- | |||
border- | color: var(--ooo-accent); | ||
border-bottom: 1px solid var(--ooo-border); | |||
} | } | ||
/* | /* --------------------------------------------------------- | ||
MUTED TEXT | |||
--------------------------------------------------------- */ | |||
.ooo-infobox__muted { | |||
opacity: 0.7; | |||
} | } | ||
/* | /* --------------------------------------------------------- | ||
ALIGNMENT OPTIONS | |||
--------------------------------------------------------- */ | |||
.ooo-infobox--left { | |||
float: left; | |||
} | clear: left; | ||
margin: 0 1em 1em 0; | |||
} | |||
.ooo-infobox--none { | |||
float: none; | |||
margin: 0 0 1em 0; | |||
} | |||
.ooo-infobox--center { | |||
float: none; | |||
margin: 0 auto 1em; | |||
} | } | ||
/* | /* --------------------------------------------------------- | ||
MOBILE | |||
--------------------------------------------------------- */ | |||
@media (max-width: 640px) { | @media (max-width: 640px) { | ||
.ooo-infobox { width: 100%; } | .ooo-infobox, | ||
.ooo-infobox--left, | |||
.ooo-infobox--none, | |||
.ooo-infobox--center { | |||
float: none; | |||
width: 100%; | |||
margin: 0 0 1em 0; | |||
} | |||
} | } | ||