Template:LWPortal/styles.css
Template page
More actions
/* Landrace.wiki – Portal (Wikipedia Professional Style) */
/* Reset and base */
.lw-portal {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Liberation Sans', sans-serif;
font-size: 14px;
line-height: 1.6;
color: #202122;
max-width: 1400px;
margin: 0 auto;
}
.lw-portal * {
box-sizing: border-box;
}
/* Portal title */
.lw-portal__title {
font-size: 32px;
font-weight: 600;
text-align: center;
margin: 16px 0 12px;
color: #202122;
border-bottom: 1px solid #a2a9b1;
padding-bottom: 10px;
letter-spacing: -0.02em;
}
/* Navigation bar */
.lw-portal__bar {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
align-items: center;
margin: 0 0 20px;
font-size: 13px;
padding: 8px 0;
border-bottom: 1px solid #eaecf0;
}
.lw-portal__bar b {
color: #54595d;
font-weight: 600;
}
.lw-portal__bar a {
text-decoration: none;
color: #36c;
transition: color 0.15s ease;
}
.lw-portal__bar a:hover {
text-decoration: underline;
color: #447ff5;
}
/* Grid layout */
.lw-portal__grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-top: 16px;
}
@media (max-width: 1000px) {
.lw-portal__grid {
grid-template-columns: 1fr;
}
}
/* Box containers */
.lw-box {
background: #ffffff;
border: 1px solid #a2a9b1;
margin-bottom: 16px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
overflow: visible;
}
.lw-box__hd {
background: linear-gradient(to bottom, #f8f9fa 0%, #eaecf0 100%);
padding: 10px 14px;
border-bottom: 1px solid #a2a9b1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.lw-box__title {
font-weight: 700;
font-size: 17px;
color: #202122;
letter-spacing: -0.01em;
}
.lw-box__link {
font-size: 12px;
color: #72777d;
font-weight: 500;
}
.lw-box__link a {
color: #36c;
text-decoration: none;
}
.lw-box__link a:hover {
text-decoration: underline;
}
.lw-box__bd {
padding: 16px;
line-height: 1.6;
}
/* Hero section for intro */
.lw-hero {
display: grid;
grid-template-columns: 420px 1fr;
gap: 20px;
align-items: start;
}
@media (max-width: 1000px) {
.lw-hero {
grid-template-columns: 1fr;
}
}
.lw-hero__img {
background: #f8f9fa;
border: 1px solid #c8ccd1;
padding: 4px;
transition: border-color 0.2s ease;
}
.lw-hero__img:hover {
border-color: #a2a9b1;
}
.lw-hero__img img {
display: block;
width: 100%;
height: auto;
}
.lw-hero__caption {
font-size: 12px;
color: #54595d;
margin-top: 6px;
line-height: 1.5;
padding: 6px 8px;
background: #f8f9fa;
border-left: 3px solid #36c;
}
.lw-hero__text p {
margin: 0 0 14px;
line-height: 1.65;
text-align: justify;
}
.lw-hero__text p:last-child {
margin-bottom: 0;
}
/* Bold text in hero */
.lw-hero__text p strong,
.lw-hero__text p b {
font-weight: 600;
color: #000;
}
/* Italics for species names */
.lw-hero__text i,
.lw-hero__text em {
font-style: italic;
}
/* Featured article image float */
.lw-box__bd .featured-img-right {
float: right;
margin: 0 0 16px 16px;
max-width: 220px;
background: #f8f9fa;
border: 1px solid #c8ccd1;
padding: 4px;
}
.lw-box__bd .featured-img-right img {
display: block;
width: 100%;
height: auto;
}
.lw-box__bd .featured-img-caption {
font-size: 11px;
color: #54595d;
margin-top: 6px;
padding: 4px 6px;
background: #f8f9fa;
border-left: 3px solid #36c;
line-height: 1.4;
}
/* Paragraphs in featured articles */
.lw-box__bd > p {
margin: 0 0 14px;
line-height: 1.65;
text-align: justify;
}
.lw-box__bd > p:last-of-type {
margin-bottom: 0;
}
/* Major topics definition lists */
.lw-box__bd dl {
margin: 0;
}
.lw-box__bd dt {
font-weight: 700;
margin-top: 16px;
margin-bottom: 6px;
color: #202122;
font-size: 15px;
border-bottom: 1px solid #eaecf0;
padding-bottom: 4px;
}
.lw-box__bd dt:first-child {
margin-top: 0;
}
.lw-box__bd dd {
margin: 0 0 12px 12px;
line-height: 1.7;
color: #202122;
}
.lw-box__bd dd a {
color: #36c;
text-decoration: none;
padding: 1px 2px;
transition: background-color 0.15s ease;
}
.lw-box__bd dd a:hover {
text-decoration: underline;
background-color: #eaf3ff;
}
/* Link separators in definition lists */
.lw-box__bd dd {
word-spacing: 0.15em;
}
/* Lists */
.lw-list {
margin: 0;
padding-left: 22px;
}
.lw-list li {
margin: 8px 0;
line-height: 1.6;
}
.lw-list li strong,
.lw-list li b {
font-weight: 600;
color: #202122;
}
/* Unordered lists in box bodies */
.lw-box__bd ul {
margin: 0;
padding-left: 22px;
}
.lw-box__bd ul li {
margin: 10px 0;
line-height: 1.6;
}
/* Kicker/subheadings */
.lw-kicker {
font-size: 13px;
color: #54595d;
margin-bottom: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
}
/* Links in body text */
.lw-box__bd a {
color: #36c;
text-decoration: none;
}
.lw-box__bd a:hover {
text-decoration: underline;
}
.lw-box__bd a:visited {
color: #795cb2;
}
/* Selected picture full width */
.lw-box__bd .selected-picture {
margin: 0;
background: #f8f9fa;
border: 1px solid #c8ccd1;
padding: 4px;
}
.lw-box__bd .selected-picture img {
display: block;
width: 100%;
height: auto;
}
/* Category tags */
.lw-box__bd .category-list {
line-height: 2;
word-spacing: 0.2em;
}
.lw-box__bd .category-list a {
white-space: nowrap;
padding: 2px 4px;
background: #f8f9fa;
border-radius: 3px;
transition: background-color 0.15s ease;
}
.lw-box__bd .category-list a:hover {
background-color: #eaecf0;
}
/* Grid for related portals */
.portal-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
.portal-grid a {
padding: 6px 10px;
background: #f8f9fa;
border: 1px solid #c8ccd1;
border-radius: 3px;
text-align: center;
transition: all 0.15s ease;
}
.portal-grid a:hover {
background: #eaecf0;
border-color: #a2a9b1;
text-decoration: none;
}
/* Inline styles for special formatting */
.lw-box__bd .note-box {
margin: 14px 0;
padding: 12px 14px;
background: #f8f9fa;
border-left: 4px solid #36c;
font-size: 13px;
line-height: 1.6;
color: #54595d;
}
.lw-box__bd .note-box b {
color: #202122;
font-weight: 600;
}
/* Responsive adjustments */
@media (max-width: 1000px) {
.lw-hero {
grid-template-columns: 1fr;
}
.lw-box__bd .featured-img-right {
float: none;
margin: 0 0 16px 0;
max-width: 100%;
}
.portal-grid {
grid-template-columns: 1fr;
}
}
/* Wikipedia-style table formatting if used */
.lw-box__bd .wikitable {
border-collapse: collapse;
width: 100%;
margin: 12px 0;
background: #f8f9fa;
}
.lw-box__bd .wikitable th {
background: #eaecf0;
padding: 8px 10px;
border: 1px solid #a2a9b1;
font-weight: 600;
text-align: left;
}
.lw-box__bd .wikitable td {
padding: 8px 10px;
border: 1px solid #c8ccd1;
}
/* Smooth scrolling */
html {
scroll-behavior: smooth;
}
/* Print styles */
@media print {
.lw-portal__bar,
.lw-box__link {
display: none;
}
.lw-box {
page-break-inside: avoid;
}
}