Template:Country/styles.css: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
.country-page { |
.country-page { |
||
color: var(--country-ink, var(--ew-ink)); |
color: var(--country-ink, var(--ew-ink)); |
||
color: var(--ew-component-text, var(--country-ink)); |
|||
} |
} |
||
/* ========================================================= |
|||
HERO |
|||
========================================================= */ |
|||
.country-hero { |
.country-hero { |
||
| Line 18: | Line 14: | ||
} |
} |
||
/* Do not show the blue missing-file link before |
/* Do not show the blue missing-file link before hero art is uploaded. */ |
||
.country-hero__overlay { |
.country-hero__overlay { |
||
color: #fffaf2; |
color: #fffaf2; |
||
| Line 42: | Line 37: | ||
color: #eadcc9; |
color: #eadcc9; |
||
} |
} |
||
/* ========================================================= |
|||
OVERVIEW |
|||
========================================================= */ |
|||
.country-overview { |
.country-overview { |
||
| Line 57: | Line 47: | ||
line-height: 0.78; |
line-height: 0.78; |
||
} |
} |
||
/* ========================================================= |
|||
QUICK FACTS |
|||
========================================================= */ |
|||
.country-quickfacts { |
.country-quickfacts { |
||
| Line 73: | Line 58: | ||
min-height: 74px; |
min-height: 74px; |
||
padding: 0.8rem 0.95rem; |
padding: 0.8rem 0.95rem; |
||
color: var(--country-ink, var(--ew-ink)); |
|||
color: var(--ew-component-text, var(--country-ink)); |
|||
border: 1px solid var(--country-line, var(--ew-border)); |
border: 1px solid var(--country-line, var(--ew-border)); |
||
border: 1px solid var(--ew-component-border, var(--country-line)); |
|||
border-left: 4px solid var(--country-accent, var(--ew-gold)); |
border-left: 4px solid var(--country-accent, var(--ew-gold)); |
||
border-radius: 8px; |
border-radius: 8px; |
||
background-color: var(--country-paper, var(--ew-paper-light)); |
background-color: var(--country-paper, var(--ew-paper-light)); |
||
background-color: var(--ew-component-surface, var(--country-paper)); |
|||
background-image: |
background-image: |
||
linear-gradient( |
linear-gradient( |
||
135deg, |
135deg, |
||
rgba(255, 255, 255, 0.22), |
var(--ew-component-sheen, rgba(255, 255, 255, 0.22)), |
||
rgba(112, 82, 61, 0.06) |
rgba(112, 82, 61, 0.06) |
||
); |
); |
||
box-shadow: 0 4px 12px rgba(63, 43, 31, 0.07); |
|||
box-shadow: |
|||
0 4px 12px |
|||
var(--ew-component-shadow, rgba(63, 43, 31, 0.07)); |
|||
} |
} |
||
| Line 89: | Line 86: | ||
display: block; |
display: block; |
||
margin-bottom: 0.2rem; |
margin-bottom: 0.2rem; |
||
color: var(--country-muted, #6f665d); |
color: var(--ew-component-muted, var(--country-muted, #6f665d)); |
||
font-family: "Alegreya SC", Georgia, serif; |
font-family: "Alegreya SC", Georgia, serif; |
||
font-size: 0.78rem; |
font-size: 0.78rem; |
||
| Line 96: | Line 93: | ||
text-transform: uppercase; |
text-transform: uppercase; |
||
} |
} |
||
/* ========================================================= |
|||
COUNTRY RECORD |
|||
========================================================= */ |
|||
.country-record { |
.country-record { |
||
color: var(--country-ink, var(--ew-ink)); |
|||
color: var(--ew-component-text, var(--country-ink)); |
|||
border: 1px solid var(--country-line, var(--ew-border)); |
border: 1px solid var(--country-line, var(--ew-border)); |
||
border: 1px solid var(--ew-component-border, var(--country-line)); |
|||
background: var(--country-paper, var(--ew-paper-light)); |
background: var(--country-paper, var(--ew-paper-light)); |
||
background: var(--ew-component-surface, var(--country-paper)); |
|||
box-shadow: 0 10px 22px rgba(55, 37, 27, 0.13); |
|||
box-shadow: |
|||
0 10px 22px |
|||
var(--ew-component-shadow, rgba(55, 37, 27, 0.13)); |
|||
} |
} |
||
| Line 133: | Line 134: | ||
.country-record__row { |
.country-record__row { |
||
grid-template-columns: minmax(100px, 0.9fr) minmax(0, 1.3fr); |
grid-template-columns: minmax(100px, 0.9fr) minmax(0, 1.3fr); |
||
border-top: 1px solid var(--country-line, var(--ew-border)); |
border-top: 1px solid var(--country-line, var(--ew-border)); |
||
border-top: 1px solid var(--ew-component-border, var(--country-line)); |
|||
} |
} |
||
.country-record__row span { |
.country-record__row span { |
||
color: var(--country-muted, #6f665d); |
color: var(--ew-component-muted, var(--country-muted, #6f665d)); |
||
} |
} |
||
/* ========================================================= |
|||
HEADINGS |
|||
========================================================= */ |
|||
.country-page h2 { |
.country-page h2 { |
||
| Line 149: | Line 147: | ||
gap: 0.75rem; |
gap: 0.75rem; |
||
align-items: center; |
align-items: center; |
||
margin-top: 2.35rem; |
margin-top: 2.35rem; |
||
border-bottom: 0; |
border-bottom: 0; |
||
color: var(--country-deep, var(--ew-dark-2)); |
color: var(--country-deep, var(--ew-dark-2)); |
||
color: var(--ew-component-heading, var(--country-deep)); |
|||
font-family: "Alegreya SC", Georgia, serif; |
font-family: "Alegreya SC", Georgia, serif; |
||
font-size: 1.75rem; |
font-size: 1.75rem; |
||
| Line 167: | Line 169: | ||
.country-page h3 { |
.country-page h3 { |
||
color: var(--country-accent, var(--ew-gold)); |
color: var(--country-accent, var(--ew-gold)); |
||
color: var(--ew-component-accent, var(--country-accent)); |
|||
font-family: "Alegreya SC", Georgia, serif; |
font-family: "Alegreya SC", Georgia, serif; |
||
} |
} |
||
.country-page a, |
|||
.country-record a { |
|||
color: var(--country-accent, var(--ew-link)); |
|||
color: var(--ew-component-link, var(--country-accent)); |
|||
} |
|||
/* ========================================================= |
|||
TEXT + IMAGE FEATURES |
|||
/* ========================================================= |
|||
Images and text begin at the same vertical position. |
|||
FEATURE SECTIONS |
|||
Previously align-items:center vertically centred shorter |
|||
Text and images start from the same vertical position. |
|||
========================================================= */ |
========================================================= */ |
||
.country-feature { |
.country-feature { |
||
display: grid; |
display: grid; |
||
grid-template-columns: |
grid-template-columns: |
||
minmax(0, 1.25fr) |
|||
minmax(240px, 0.75fr); |
|||
gap: 1.5rem; |
gap: 1.5rem; |
||
/* Previously center. This caused short text blocks to sit |
|||
halfway down beside taller images. */ |
|||
align-items: start; |
align-items: start; |
||
margin: 1rem 0 1.75rem; |
margin: 1rem 0 1.75rem; |
||
} |
} |
||
.country-feature--image-left { |
.country-feature--image-left { |
||
grid-template-columns: |
grid-template-columns: |
||
minmax(240px, 0.75fr) |
|||
minmax(0, 1.25fr); |
|||
} |
} |
||
| Line 208: | Line 224: | ||
overflow: hidden; |
overflow: hidden; |
||
border-radius: 10px; |
border-radius: 10px; |
||
box-shadow: 0 8px 20px rgba(50, 33, 24, 0.16); |
|||
box-shadow: |
|||
0 8px 20px |
|||
var(--ew-component-shadow, rgba(50, 33, 24, 0.16)); |
|||
} |
} |
||
| Line 220: | Line 239: | ||
/* ========================================================= |
/* ========================================================= |
||
COUNTRY CARDS |
|||
========================================================= */ |
========================================================= */ |
||
| Line 231: | Line 250: | ||
.country-person-card { |
.country-person-card { |
||
overflow: hidden; |
overflow: hidden; |
||
color: var(--country-ink, var(--ew-ink)); |
|||
color: var(--ew-component-text, var(--country-ink)); |
|||
border: 1px solid var(--country-line, var(--ew-border)); |
border: 1px solid var(--country-line, var(--ew-border)); |
||
border: 1px solid var(--ew-component-border, var(--country-line)); |
|||
border-radius: 10px; |
border-radius: 10px; |
||
background: var(--country-paper, var(--ew-paper-light)); |
background: var(--country-paper, var(--ew-paper-light)); |
||
background: var(--ew-component-surface, var(--country-paper)); |
|||
box-shadow: 0 5px 14px rgba(62, 42, 31, 0.08); |
|||
box-shadow: |
|||
0 5px 14px |
|||
var(--ew-component-shadow, rgba(62, 42, 31, 0.08)); |
|||
} |
} |
||
| Line 254: | Line 284: | ||
margin: 0; |
margin: 0; |
||
} |
} |
||
/* ========================================================= |
|||
PLACE CARDS |
|||
========================================================= */ |
|||
.country-place-card__body { |
.country-place-card__body { |
||
| Line 277: | Line 302: | ||
display: none !important; |
display: none !important; |
||
} |
} |
||
/* ========================================================= |
|||
PERSON CARDS |
|||
========================================================= */ |
|||
.country-person-card { |
.country-person-card { |
||
| Line 302: | Line 322: | ||
/* ========================================================= |
/* ========================================================= |
||
RELATIONS |
|||
========================================================= */ |
========================================================= */ |
||
| Line 312: | Line 332: | ||
.country-relations > div { |
.country-relations > div { |
||
position: relative; |
position: relative; |
||
padding: 0.85rem 1rem; |
padding: 0.85rem 1rem; |
||
color: var(--country-ink, var(--ew-ink)); |
|||
color: var(--ew-component-text, var(--country-ink)); |
|||
border: 1px solid var(--country-line, var(--ew-border)); |
border: 1px solid var(--country-line, var(--ew-border)); |
||
border: 1px solid var(--ew-component-border, var(--country-line)); |
|||
border-left: 4px solid var(--country-accent, var(--ew-gold)); |
border-left: 4px solid var(--country-accent, var(--ew-gold)); |
||
border-radius: 8px; |
border-radius: 8px; |
||
background: rgba(245, 240, 230, 0.68); |
|||
background: |
|||
var( |
|||
--ew-component-surface-alt, |
|||
rgba(245, 240, 230, 0.68) |
|||
); |
|||
} |
} |
||
| Line 325: | Line 357: | ||
.relation { |
.relation { |
||
display: inline-block; |
display: inline-block; |
||
margin-left: 0.65rem; |
margin-left: 0.65rem; |
||
padding: 0.1rem 0.5rem; |
padding: 0.1rem 0.5rem; |
||
border-radius: 999px; |
border-radius: 999px; |
||
color: #fff; |
color: #fff; |
||
font-size: 0.76rem; |
font-size: 0.76rem; |
||
font-weight: 700; |
font-weight: 700; |
||
vertical-align: 0.08em; |
vertical-align: 0.08em; |
||
} |
|||
.relation--allied { |
|||
background: #2f604c; |
|||
} |
} |
||
.relation--friendly { |
.relation--friendly { |
||
background: #39715a; |
background: #39715a; |
||
} |
|||
.relation--neutral { |
|||
background: #5f6f7a; |
|||
} |
} |
||
| Line 356: | Line 400: | ||
/* ========================================================= |
/* ========================================================= |
||
MAIN |
MAIN / RELATED ARTICLE LINKS |
||
========================================================= */ |
========================================================= */ |
||
| Line 363: | Line 407: | ||
margin: 0.8rem 0 1.2rem; |
margin: 0.8rem 0 1.2rem; |
||
padding: 0.75rem 1rem; |
padding: 0.75rem 1rem; |
||
color: var(--country-ink, var(--ew-ink)); |
|||
color: var(--ew-component-text, var(--country-ink)); |
|||
border-left: 4px solid var(--country-accent, var(--ew-gold)); |
border-left: 4px solid var(--country-accent, var(--ew-gold)); |
||
background: |
background: |
||
linear-gradient( |
linear-gradient( |
||
90deg, |
90deg, |
||
var( |
|||
--ew-component-surface-alt, |
|||
rgba(152, 77, 46, 0.11) |
|||
), |
|||
transparent |
transparent |
||
); |
); |
||
| Line 374: | Line 426: | ||
/* ========================================================= |
/* ========================================================= |
||
HOUSE / CLAN BANNERS |
|||
BASE MOBILE RECORD BEHAVIOUR |
|||
The shared responsive country grids remain in Common.css. |
|||
========================================================= */ |
|||
@media (max-width: 760px) { |
|||
.country-record { |
|||
order: -1; |
|||
} |
|||
} |
|||
/* ========================================================= |
|||
DESKTOP COUNTRY OVERVIEW |
|||
The Country Record floats to the right and the contents box |
|||
uses the left side while article text flows between them. |
|||
========================================================= */ |
|||
@media (min-width: 951px) { |
|||
.country-page .country-overview { |
|||
display: block !important; |
|||
margin-bottom: 1.5rem !important; |
|||
} |
|||
.country-page .country-overview > .country-record { |
|||
float: right !important; |
|||
box-sizing: border-box !important; |
|||
width: 340px !important; |
|||
max-width: 34% !important; |
|||
margin: 0 0 1.5rem 2rem !important; |
|||
} |
|||
.country-page .country-overview__lead { |
|||
display: block !important; |
|||
min-width: 0 !important; |
|||
} |
|||
.country-page .toc, |
|||
.country-page #toc { |
|||
float: left !important; |
|||
clear: none !important; |
|||
box-sizing: border-box !important; |
|||
width: min(300px, 27%) !important; |
|||
max-width: 300px !important; |
|||
margin: 0 1.5rem 1.5rem 0 !important; |
|||
} |
|||
.country-page h2 { |
|||
clear: none !important; |
|||
min-width: 0 !important; |
|||
overflow: hidden; |
|||
} |
|||
.country-page::after { |
|||
display: block; |
|||
clear: both; |
|||
content: ""; |
|||
} |
|||
} |
|||
/* ========================================================= |
|||
HOUSE / CLAN HERALDRY |
|||
========================================================= */ |
========================================================= */ |
||
.country-page .country-house-banner { |
.country-page .country-house-banner { |
||
float: none !important; |
|||
display: flex; |
display: flex; |
||
flex-direction: column; |
flex-direction: column; |
||
align-items: center; |
align-items: center; |
||
box-sizing: border-box; |
|||
width: 100%; |
width: 100%; |
||
max-width: none; |
|||
margin: 0.55rem auto 1.2rem; |
margin: 0.55rem auto 1.2rem; |
||
padding: 0; |
|||
border: 0; |
|||
background: none; |
|||
box-shadow: none; |
|||
text-align: center; |
text-align: center; |
||
} |
} |
||
| Line 464: | Line 449: | ||
.country-page .country-house-banner img { |
.country-page .country-house-banner img { |
||
display: block; |
display: block; |
||
width: auto; |
width: auto; |
||
max-width: min(180px, 100%); |
max-width: min(180px, 100%); |
||
height: auto; |
height: auto; |
||
margin: 0 auto; |
margin: 0 auto; |
||
} |
} |
||
| Line 472: | Line 459: | ||
.country-page .country-house-banner__caption { |
.country-page .country-house-banner__caption { |
||
margin-top: 0.35rem; |
margin-top: 0.35rem; |
||
color: var(--country-muted, #6f665d); |
|||
color: |
|||
var( |
|||
--ew-component-muted, |
|||
var(--country-muted, #6f665d) |
|||
); |
|||
font-size: 0.9rem; |
font-size: 0.9rem; |
||
font-style: italic; |
font-style: italic; |
||
| Line 479: | Line 472: | ||
/* ========================================================= |
/* ========================================================= |
||
RESPONSIVE |
|||
TABLET / MOBILE OVERVIEW |
|||
========================================================= */ |
========================================================= */ |
||
@media (max-width: |
@media (max-width: 760px) { |
||
.country- |
.country-record { |
||
order: -1; |
|||
} |
|||
.country-page .country-record, |
|||
.country-page .toc, |
|||
.country-page #toc { |
|||
float: none !important; |
|||
clear: both !important; |
|||
box-sizing: border-box !important; |
|||
width: min(100%, 580px) !important; |
|||
max-width: 100% !important; |
|||
margin: 0 auto 1.5rem !important; |
|||
} |
} |
||
} |
|||
@media (max-width: 720px) { |
|||
.country-page .country-house-banner img { |
.country-page .country-house-banner img { |
||
max-width: min(150px, 100%); |
max-width: min(150px, 100%); |
||
Latest revision as of 00:58, 18 September 2026
/* =========================================================
ERINDAL COUNTRY PAGES
TemplateStyles stylesheet for country-specific components.
Shared Erindal article geometry remains in MediaWiki:Common.css.
========================================================= */
.country-page {
color: var(--country-ink, var(--ew-ink));
color: var(--ew-component-text, var(--country-ink));
}
.country-hero {
background: var(--country-deep, var(--ew-dark-2));
}
/* Do not show the blue missing-file link before hero art is uploaded. */
.country-hero__overlay {
color: #fffaf2;
background:
linear-gradient(
180deg,
rgba(20, 12, 9, 0.06) 18%,
rgba(20, 12, 9, 0.88) 100%
),
linear-gradient(
90deg,
rgba(20, 12, 9, 0.52),
transparent 64%
);
}
.country-hero__eyebrow {
color: #efb879;
}
.country-hero__subtitle {
color: #eadcc9;
}
.country-overview {
grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}
.country-overview__lead > p:first-child::first-letter {
color: var(--country-accent, var(--ew-gold));
font-size: 3.7em;
line-height: 0.78;
}
.country-quickfacts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem;
margin-top: 1.4rem;
}
.country-quickfact {
min-height: 74px;
padding: 0.8rem 0.95rem;
color: var(--country-ink, var(--ew-ink));
color: var(--ew-component-text, var(--country-ink));
border: 1px solid var(--country-line, var(--ew-border));
border: 1px solid var(--ew-component-border, var(--country-line));
border-left: 4px solid var(--country-accent, var(--ew-gold));
border-radius: 8px;
background-color: var(--country-paper, var(--ew-paper-light));
background-color: var(--ew-component-surface, var(--country-paper));
background-image:
linear-gradient(
135deg,
var(--ew-component-sheen, rgba(255, 255, 255, 0.22)),
rgba(112, 82, 61, 0.06)
);
box-shadow:
0 4px 12px
var(--ew-component-shadow, rgba(63, 43, 31, 0.07));
}
.country-quickfact span {
display: block;
margin-bottom: 0.2rem;
color: var(--ew-component-muted, var(--country-muted, #6f665d));
font-family: "Alegreya SC", Georgia, serif;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.country-record {
color: var(--country-ink, var(--ew-ink));
color: var(--ew-component-text, var(--country-ink));
border: 1px solid var(--country-line, var(--ew-border));
border: 1px solid var(--ew-component-border, var(--country-line));
background: var(--country-paper, var(--ew-paper-light));
background: var(--ew-component-surface, var(--country-paper));
box-shadow:
0 10px 22px
var(--ew-component-shadow, rgba(55, 37, 27, 0.13));
}
.country-record__heading {
color: #fff7ec;
background-color: var(--country-deep, var(--ew-dark-2));
background-image:
linear-gradient(
135deg,
rgba(255, 255, 255, 0.04),
rgba(74, 43, 32, 0.42)
);
}
.country-record__emblem,
.country-record__map {
padding: 1rem;
text-align: center;
}
.country-record__emblem img,
.country-record__map img {
max-width: 100%;
height: auto;
}
.country-record__row {
grid-template-columns: minmax(100px, 0.9fr) minmax(0, 1.3fr);
border-top: 1px solid var(--country-line, var(--ew-border));
border-top: 1px solid var(--ew-component-border, var(--country-line));
}
.country-record__row span {
color: var(--ew-component-muted, var(--country-muted, #6f665d));
}
.country-page h2 {
display: flex;
gap: 0.75rem;
align-items: center;
margin-top: 2.35rem;
border-bottom: 0;
color: var(--country-deep, var(--ew-dark-2));
color: var(--ew-component-heading, var(--country-deep));
font-family: "Alegreya SC", Georgia, serif;
font-size: 1.75rem;
font-weight: 700;
}
.country-page h2::after {
content: "";
flex: 1;
height: 1px;
background: var(--country-accent, var(--ew-gold));
opacity: 0.55;
}
.country-page h3 {
color: var(--country-accent, var(--ew-gold));
color: var(--ew-component-accent, var(--country-accent));
font-family: "Alegreya SC", Georgia, serif;
}
.country-page a,
.country-record a {
color: var(--country-accent, var(--ew-link));
color: var(--ew-component-link, var(--country-accent));
}
/* =========================================================
FEATURE SECTIONS
Text and images start from the same vertical position.
========================================================= */
.country-feature {
display: grid;
grid-template-columns:
minmax(0, 1.25fr)
minmax(240px, 0.75fr);
gap: 1.5rem;
/* Previously center. This caused short text blocks to sit
halfway down beside taller images. */
align-items: start;
margin: 1rem 0 1.75rem;
}
.country-feature--image-left {
grid-template-columns:
minmax(240px, 0.75fr)
minmax(0, 1.25fr);
}
.country-feature__text,
.country-feature__media {
align-self: start;
min-width: 0;
}
.country-feature__text > p:first-child {
margin-top: 0;
}
.country-feature__text > p:last-child {
margin-bottom: 0;
}
.country-feature__media {
overflow: hidden;
border-radius: 10px;
box-shadow:
0 8px 20px
var(--ew-component-shadow, rgba(50, 33, 24, 0.16));
}
.country-feature__media img {
display: block;
width: 100%;
min-height: 230px;
object-fit: cover;
}
/* =========================================================
COUNTRY CARDS
========================================================= */
.country-card-grid--four {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.country-mini-card,
.country-place-card,
.country-person-card {
overflow: hidden;
color: var(--country-ink, var(--ew-ink));
color: var(--ew-component-text, var(--country-ink));
border: 1px solid var(--country-line, var(--ew-border));
border: 1px solid var(--ew-component-border, var(--country-line));
border-radius: 10px;
background: var(--country-paper, var(--ew-paper-light));
background: var(--ew-component-surface, var(--country-paper));
box-shadow:
0 5px 14px
var(--ew-component-shadow, rgba(62, 42, 31, 0.08));
}
.country-mini-card,
.country-person-card {
padding: 1rem;
}
.country-mini-card h3,
.country-place-card h3,
.country-person-card h3 {
margin: 0 0 0.35rem;
font-size: 1.15rem;
}
.country-mini-card p,
.country-place-card p,
.country-person-card p {
margin: 0;
}
.country-place-card__body {
padding: 0.85rem 1rem;
}
.country-place-card .mw-file-description,
.country-place-card__image,
.country-place-card__image img {
display: block;
width: 100%;
height: 135px;
object-fit: cover;
}
/* Missing territory/city art should not leave a large empty image panel. */
.country-place-card a.new.country-place-card__image {
display: none !important;
}
.country-person-card {
text-align: center;
}
.country-person-card__portrait {
margin: -1rem -1rem 0.85rem;
overflow: hidden;
}
.country-person-card__portrait img {
display: block;
width: 100%;
height: 230px;
object-fit: cover;
object-position: center 20%;
}
/* =========================================================
RELATIONS
========================================================= */
.country-relations {
display: grid;
gap: 0.7rem;
}
.country-relations > div {
position: relative;
padding: 0.85rem 1rem;
color: var(--country-ink, var(--ew-ink));
color: var(--ew-component-text, var(--country-ink));
border: 1px solid var(--country-line, var(--ew-border));
border: 1px solid var(--ew-component-border, var(--country-line));
border-left: 4px solid var(--country-accent, var(--ew-gold));
border-radius: 8px;
background:
var(
--ew-component-surface-alt,
rgba(245, 240, 230, 0.68)
);
}
.country-relations p {
margin: 0.3rem 0 0;
}
.relation {
display: inline-block;
margin-left: 0.65rem;
padding: 0.1rem 0.5rem;
border-radius: 999px;
color: #fff;
font-size: 0.76rem;
font-weight: 700;
vertical-align: 0.08em;
}
.relation--allied {
background: #2f604c;
}
.relation--friendly {
background: #39715a;
}
.relation--neutral {
background: #5f6f7a;
}
.relation--guarded {
background: #6f6678;
}
.relation--uneasy {
background: #a06b2f;
}
.relation--tense {
background: #9a4f37;
}
.relation--hostile {
background: #7f3030;
}
/* =========================================================
MAIN / RELATED ARTICLE LINKS
========================================================= */
.country-mainlink,
.country-related {
margin: 0.8rem 0 1.2rem;
padding: 0.75rem 1rem;
color: var(--country-ink, var(--ew-ink));
color: var(--ew-component-text, var(--country-ink));
border-left: 4px solid var(--country-accent, var(--ew-gold));
background:
linear-gradient(
90deg,
var(
--ew-component-surface-alt,
rgba(152, 77, 46, 0.11)
),
transparent
);
}
/* =========================================================
HOUSE / CLAN BANNERS
========================================================= */
.country-page .country-house-banner {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
margin: 0.55rem auto 1.2rem;
text-align: center;
}
.country-page .country-house-banner .mw-file-description,
.country-page .country-house-banner__image {
display: block;
margin: 0 auto;
}
.country-page .country-house-banner img {
display: block;
width: auto;
max-width: min(180px, 100%);
height: auto;
margin: 0 auto;
}
.country-page .country-house-banner__caption {
margin-top: 0.35rem;
color:
var(
--ew-component-muted,
var(--country-muted, #6f665d)
);
font-size: 0.9rem;
font-style: italic;
}
/* =========================================================
RESPONSIVE
========================================================= */
@media (max-width: 760px) {
.country-record {
order: -1;
}
}
@media (max-width: 720px) {
.country-page .country-house-banner img {
max-width: min(150px, 100%);
}
}