Template:LWPortal/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) Undo revision 2844 by Eloise Zomia (talk) Tag: Undo |
Eloise Zomia (talk | contribs) No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* Landrace.wiki – Portal | /* Landrace.wiki – Portal:Botany (Matching Portal:Current Events Design System) */ | ||
.lw- | .lw-portal { | ||
font-size: 14px; | |||
line-height: 1.35; | |||
color: #202122; | |||
} | |||
.lw- | .lw-portal * { | ||
box-sizing: border-box; | |||
} | |||
.lw- | /* Portal header */ | ||
.lw-portal__title { | |||
font-size: 22px; | |||
font-weight: 800; | |||
text-align: center; | |||
margin: 8px 0 10px; | |||
} | |||
.lw- | /* Navigation bar */ | ||
.lw-portal__bar { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 10px; | |||
justify-content: center; | |||
align-items: center; | |||
margin: 0 0 12px; | |||
} | |||
.lw- | .lw-portal__bar a { | ||
text-decoration: none; | |||
color: #2d6a4f; | |||
} | |||
.lw-kicker{font-size:12px;color:#6b7280;margin-bottom:6px} | .lw-portal__bar a:hover { | ||
text-decoration: underline; | |||
} | |||
/* Grid layout */ | |||
.lw-portal__grid { | |||
display: grid; | |||
grid-template-columns: 1.2fr 0.8fr; | |||
gap: 12px; | |||
} | |||
@media (max-width: 900px) { | |||
.lw-portal__grid { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
/* Card containers (modern, rounded) */ | |||
.lw-box { | |||
background: #fff; | |||
border: 1px solid #e5e7eb; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
box-shadow: 0 1px 2px rgba(0,0,0,.03); | |||
margin-bottom: 12px; | |||
} | |||
.lw-box__hd { | |||
padding: 10px 12px; | |||
border-bottom: 1px solid #eef2f7; | |||
display: flex; | |||
align-items: baseline; | |||
justify-content: space-between; | |||
gap: 10px; | |||
} | |||
.lw-box__title { | |||
font-weight: 800; | |||
font-size: 15px; | |||
} | |||
.lw-box__link { | |||
font-size: 12px; | |||
color: #6b7280; | |||
} | |||
.lw-box__link a { | |||
color: #2d6a4f; | |||
text-decoration: none; | |||
} | |||
.lw-box__link a:hover { | |||
text-decoration: underline; | |||
} | |||
.lw-box__bd { | |||
padding: 12px; | |||
} | |||
/* Hero section */ | |||
.lw-hero { | |||
display: grid; | |||
grid-template-columns: 1fr 1fr; | |||
gap: 12px; | |||
align-items: start; | |||
} | |||
@media (max-width: 900px) { | |||
.lw-hero { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
.lw-hero__img { | |||
background: #f3f4f6; | |||
border: 1px solid #eef2f7; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
} | |||
.lw-hero__img img { | |||
display: block; | |||
width: 100%; | |||
height: auto; | |||
} | |||
.lw-hero__caption { | |||
font-size: 12px; | |||
color: #6b7280; | |||
margin-top: 6px; | |||
} | |||
.lw-hero__text p { | |||
margin: 0 0 8px; | |||
line-height: 1.5; | |||
} | |||
.lw-hero__text p:last-child { | |||
margin-bottom: 0; | |||
} | |||
/* Featured article image */ | |||
.featured-img { | |||
background: #f3f4f6; | |||
border: 1px solid #eef2f7; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
margin-bottom: 12px; | |||
} | |||
.featured-img img { | |||
display: block; | |||
width: 100%; | |||
height: auto; | |||
} | |||
.featured-img__caption { | |||
font-size: 11px; | |||
color: #6b7280; | |||
padding: 8px; | |||
background: #f9fafb; | |||
} | |||
/* Featured article with side image */ | |||
.featured-article { | |||
display: grid; | |||
grid-template-columns: 1fr 200px; | |||
gap: 12px; | |||
align-items: start; | |||
} | |||
@media (max-width: 700px) { | |||
.featured-article { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
.featured-article__content p { | |||
margin: 0 0 10px; | |||
line-height: 1.5; | |||
} | |||
/* Did you know list */ | |||
.lw-box__bd ul { | |||
margin: 0; | |||
padding-left: 20px; | |||
} | |||
.lw-box__bd ul li { | |||
margin: 6px 0; | |||
line-height: 1.45; | |||
} | |||
/* Major topics - definition list styling */ | |||
.lw-box__bd dl { | |||
margin: 0; | |||
} | |||
.lw-box__bd dt { | |||
font-weight: 700; | |||
font-size: 13px; | |||
margin-top: 12px; | |||
margin-bottom: 4px; | |||
color: #2d6a4f; | |||
} | |||
.lw-box__bd dt:first-child { | |||
margin-top: 0; | |||
} | |||
.lw-box__bd dd { | |||
margin: 0 0 8px 0; | |||
line-height: 1.5; | |||
font-size: 13px; | |||
} | |||
.lw-box__bd dd a { | |||
color: #2d6a4f; | |||
text-decoration: none; | |||
} | |||
.lw-box__bd dd a:hover { | |||
text-decoration: underline; | |||
} | |||
/* Links */ | |||
.lw-box__bd a { | |||
color: #2d6a4f; | |||
text-decoration: none; | |||
} | |||
.lw-box__bd a:hover { | |||
text-decoration: underline; | |||
} | |||
/* Kicker/subheadings */ | |||
.lw-kicker { | |||
font-size: 12px; | |||
color: #6b7280; | |||
margin-bottom: 6px; | |||
font-weight: 600; | |||
} | |||
/* Lists */ | |||
.lw-list { | |||
margin: 0; | |||
padding-left: 18px; | |||
} | |||
.lw-list li { | |||
margin: 4px 0; | |||
} | |||
/* Portal grid for related portals */ | |||
.portal-grid { | |||
display: grid; | |||
grid-template-columns: repeat(2, 1fr); | |||
gap: 8px; | |||
} | |||
.portal-grid a { | |||
display: block; | |||
padding: 8px 12px; | |||
background: #f9fafb; | |||
border: 1px solid #e5e7eb; | |||
border-radius: 8px; | |||
text-align: center; | |||
font-size: 13px; | |||
font-weight: 600; | |||
color: #2d6a4f; | |||
text-decoration: none; | |||
transition: all 0.15s ease; | |||
} | |||
.portal-grid a:hover { | |||
background: #f3f4f6; | |||
border-color: #d1d5db; | |||
transform: translateY(-1px); | |||
box-shadow: 0 2px 4px rgba(0,0,0,.05); | |||
} | |||
/* Category tags */ | |||
.category-list { | |||
line-height: 1.8; | |||
} | |||
.category-list a { | |||
display: inline-block; | |||
padding: 3px 8px; | |||
margin: 2px 3px 2px 0; | |||
background: #f3f4f6; | |||
border-radius: 6px; | |||
font-size: 12px; | |||
color: #2d6a4f; | |||
text-decoration: none; | |||
transition: background 0.15s ease; | |||
} | |||
.category-list a:hover { | |||
background: #e5e7eb; | |||
} | |||
/* Action items with bold labels */ | |||
.lw-list li strong { | |||
color: #2d6a4f; | |||
font-weight: 700; | |||
} | |||
/* Selected picture full width */ | |||
.selected-picture { | |||
background: #f3f4f6; | |||
border: 1px solid #eef2f7; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
margin-bottom: 8px; | |||
} | |||
.selected-picture img { | |||
display: block; | |||
width: 100%; | |||
height: auto; | |||
} | |||
/* Accent badges (optional) */ | |||
.badge { | |||
display: inline-block; | |||
padding: 2px 8px; | |||
background: #2d6a4f; | |||
color: white; | |||
border-radius: 4px; | |||
font-size: 11px; | |||
font-weight: 600; | |||
text-transform: uppercase; | |||
letter-spacing: 0.03em; | |||
} | |||
/* Info callout boxes */ | |||
.info-box { | |||
padding: 10px 12px; | |||
background: #f0fdf4; | |||
border-left: 3px solid #2d6a4f; | |||
border-radius: 6px; | |||
font-size: 13px; | |||
color: #166534; | |||
margin: 10px 0; | |||
} | |||
/* Responsive refinements */ | |||
@media (max-width: 900px) { | |||
.lw-portal__grid { | |||
grid-template-columns: 1fr; | |||
} | |||
.featured-article { | |||
grid-template-columns: 1fr; | |||
} | |||
.portal-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
} | |||
Latest revision as of 11:00, 20 January 2026
/* Landrace.wiki – Portal:Botany (Matching Portal:Current Events Design System) */
.lw-portal {
font-size: 14px;
line-height: 1.35;
color: #202122;
}
.lw-portal * {
box-sizing: border-box;
}
/* Portal header */
.lw-portal__title {
font-size: 22px;
font-weight: 800;
text-align: center;
margin: 8px 0 10px;
}
/* Navigation bar */
.lw-portal__bar {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
align-items: center;
margin: 0 0 12px;
}
.lw-portal__bar a {
text-decoration: none;
color: #2d6a4f;
}
.lw-portal__bar a:hover {
text-decoration: underline;
}
/* Grid layout */
.lw-portal__grid {
display: grid;
grid-template-columns: 1.2fr 0.8fr;
gap: 12px;
}
@media (max-width: 900px) {
.lw-portal__grid {
grid-template-columns: 1fr;
}
}
/* Card containers (modern, rounded) */
.lw-box {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 1px 2px rgba(0,0,0,.03);
margin-bottom: 12px;
}
.lw-box__hd {
padding: 10px 12px;
border-bottom: 1px solid #eef2f7;
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 10px;
}
.lw-box__title {
font-weight: 800;
font-size: 15px;
}
.lw-box__link {
font-size: 12px;
color: #6b7280;
}
.lw-box__link a {
color: #2d6a4f;
text-decoration: none;
}
.lw-box__link a:hover {
text-decoration: underline;
}
.lw-box__bd {
padding: 12px;
}
/* Hero section */
.lw-hero {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
align-items: start;
}
@media (max-width: 900px) {
.lw-hero {
grid-template-columns: 1fr;
}
}
.lw-hero__img {
background: #f3f4f6;
border: 1px solid #eef2f7;
border-radius: 12px;
overflow: hidden;
}
.lw-hero__img img {
display: block;
width: 100%;
height: auto;
}
.lw-hero__caption {
font-size: 12px;
color: #6b7280;
margin-top: 6px;
}
.lw-hero__text p {
margin: 0 0 8px;
line-height: 1.5;
}
.lw-hero__text p:last-child {
margin-bottom: 0;
}
/* Featured article image */
.featured-img {
background: #f3f4f6;
border: 1px solid #eef2f7;
border-radius: 12px;
overflow: hidden;
margin-bottom: 12px;
}
.featured-img img {
display: block;
width: 100%;
height: auto;
}
.featured-img__caption {
font-size: 11px;
color: #6b7280;
padding: 8px;
background: #f9fafb;
}
/* Featured article with side image */
.featured-article {
display: grid;
grid-template-columns: 1fr 200px;
gap: 12px;
align-items: start;
}
@media (max-width: 700px) {
.featured-article {
grid-template-columns: 1fr;
}
}
.featured-article__content p {
margin: 0 0 10px;
line-height: 1.5;
}
/* Did you know list */
.lw-box__bd ul {
margin: 0;
padding-left: 20px;
}
.lw-box__bd ul li {
margin: 6px 0;
line-height: 1.45;
}
/* Major topics - definition list styling */
.lw-box__bd dl {
margin: 0;
}
.lw-box__bd dt {
font-weight: 700;
font-size: 13px;
margin-top: 12px;
margin-bottom: 4px;
color: #2d6a4f;
}
.lw-box__bd dt:first-child {
margin-top: 0;
}
.lw-box__bd dd {
margin: 0 0 8px 0;
line-height: 1.5;
font-size: 13px;
}
.lw-box__bd dd a {
color: #2d6a4f;
text-decoration: none;
}
.lw-box__bd dd a:hover {
text-decoration: underline;
}
/* Links */
.lw-box__bd a {
color: #2d6a4f;
text-decoration: none;
}
.lw-box__bd a:hover {
text-decoration: underline;
}
/* Kicker/subheadings */
.lw-kicker {
font-size: 12px;
color: #6b7280;
margin-bottom: 6px;
font-weight: 600;
}
/* Lists */
.lw-list {
margin: 0;
padding-left: 18px;
}
.lw-list li {
margin: 4px 0;
}
/* Portal grid for related portals */
.portal-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
.portal-grid a {
display: block;
padding: 8px 12px;
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 8px;
text-align: center;
font-size: 13px;
font-weight: 600;
color: #2d6a4f;
text-decoration: none;
transition: all 0.15s ease;
}
.portal-grid a:hover {
background: #f3f4f6;
border-color: #d1d5db;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
/* Category tags */
.category-list {
line-height: 1.8;
}
.category-list a {
display: inline-block;
padding: 3px 8px;
margin: 2px 3px 2px 0;
background: #f3f4f6;
border-radius: 6px;
font-size: 12px;
color: #2d6a4f;
text-decoration: none;
transition: background 0.15s ease;
}
.category-list a:hover {
background: #e5e7eb;
}
/* Action items with bold labels */
.lw-list li strong {
color: #2d6a4f;
font-weight: 700;
}
/* Selected picture full width */
.selected-picture {
background: #f3f4f6;
border: 1px solid #eef2f7;
border-radius: 12px;
overflow: hidden;
margin-bottom: 8px;
}
.selected-picture img {
display: block;
width: 100%;
height: auto;
}
/* Accent badges (optional) */
.badge {
display: inline-block;
padding: 2px 8px;
background: #2d6a4f;
color: white;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
}
/* Info callout boxes */
.info-box {
padding: 10px 12px;
background: #f0fdf4;
border-left: 3px solid #2d6a4f;
border-radius: 6px;
font-size: 13px;
color: #166534;
margin: 10px 0;
}
/* Responsive refinements */
@media (max-width: 900px) {
.lw-portal__grid {
grid-template-columns: 1fr;
}
.featured-article {
grid-template-columns: 1fr;
}
.portal-grid {
grid-template-columns: 1fr;
}
}