Template:LWPortal/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
/* Landrace.wiki – Portal ( | /* Landrace.wiki – Portal:Botany (Matching Portal:Current Events Design System) */ | ||
.lw-portal { | .lw-portal { | ||
font-size: 14px; | font-size: 14px; | ||
line-height: 1. | line-height: 1.35; | ||
color: #202122; | color: #202122; | ||
} | } | ||
| Line 15: | Line 11: | ||
} | } | ||
/* Portal | /* Portal header */ | ||
.lw-portal__title { | .lw-portal__title { | ||
font-size: | font-size: 22px; | ||
font-weight: | font-weight: 800; | ||
text-align: center; | text-align: center; | ||
margin: | margin: 8px 0 10px; | ||
} | } | ||
| Line 31: | Line 23: | ||
display: flex; | display: flex; | ||
flex-wrap: wrap; | flex-wrap: wrap; | ||
gap: | gap: 10px; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
margin: 0 0 | margin: 0 0 12px; | ||
} | } | ||
.lw-portal__bar a { | .lw-portal__bar a { | ||
text-decoration: none; | text-decoration: none; | ||
color: # | color: #2d6a4f; | ||
} | } | ||
.lw-portal__bar a:hover { | .lw-portal__bar a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
| Line 59: | Line 41: | ||
.lw-portal__grid { | .lw-portal__grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 1.2fr 0.8fr; | ||
gap: | gap: 12px; | ||
} | } | ||
@media (max-width: | @media (max-width: 900px) { | ||
.lw-portal__grid { | .lw-portal__grid { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
| Line 70: | Line 51: | ||
} | } | ||
/* | /* Card containers (modern, rounded) */ | ||
.lw-box { | .lw-box { | ||
background: # | background: #fff; | ||
border: 1px solid # | border: 1px solid #e5e7eb; | ||
border-radius: 12px; | |||
box-shadow: 0 1px 2px rgba(0, 0, 0, | overflow: hidden; | ||
box-shadow: 0 1px 2px rgba(0,0,0,.03); | |||
margin-bottom: 12px; | |||
} | } | ||
.lw-box__hd { | .lw-box__hd { | ||
padding: 10px 12px; | |||
padding: 10px | border-bottom: 1px solid #eef2f7; | ||
border-bottom: 1px solid # | |||
display: flex; | display: flex; | ||
align-items: | align-items: baseline; | ||
justify-content: space-between; | justify-content: space-between; | ||
gap: | gap: 10px; | ||
} | } | ||
.lw-box__title { | .lw-box__title { | ||
font-weight: | font-weight: 800; | ||
font-size: | font-size: 15px; | ||
} | } | ||
.lw-box__link { | .lw-box__link { | ||
font-size: 12px; | font-size: 12px; | ||
color: # | color: #6b7280; | ||
} | } | ||
.lw-box__link a { | .lw-box__link a { | ||
color: # | color: #2d6a4f; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| Line 112: | Line 90: | ||
.lw-box__bd { | .lw-box__bd { | ||
padding: | padding: 12px; | ||
} | } | ||
/* Hero section | /* Hero section */ | ||
.lw-hero { | .lw-hero { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 1fr 1fr; | ||
gap: | gap: 12px; | ||
align-items: start; | align-items: start; | ||
} | } | ||
@media (max-width: | @media (max-width: 900px) { | ||
.lw-hero { | .lw-hero { | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
| Line 131: | Line 108: | ||
.lw-hero__img { | .lw-hero__img { | ||
background: # | background: #f3f4f6; | ||
border: 1px solid # | border: 1px solid #eef2f7; | ||
border-radius: 12px; | |||
overflow: hidden; | |||
} | } | ||
| Line 149: | Line 122: | ||
.lw-hero__caption { | .lw-hero__caption { | ||
font-size: 12px; | font-size: 12px; | ||
color: # | color: #6b7280; | ||
margin-top: 6px; | margin-top: 6px; | ||
} | } | ||
.lw-hero__text p { | .lw-hero__text p { | ||
margin: 0 0 | margin: 0 0 8px; | ||
line-height: 1. | line-height: 1.5; | ||
} | } | ||
| Line 167: | Line 135: | ||
} | } | ||
/* | /* 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; | |||
background: # | |||
} | } | ||
/* Featured article with side image */ | |||
display: | .featured-article { | ||
width: | 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; | |||
margin | |||
line-height: 1. | |||
} | } | ||
/* | /* Did you know list */ | ||
.lw-box__bd | .lw-box__bd ul { | ||
margin: 0 | margin: 0; | ||
padding-left: 20px; | |||
} | } | ||
.lw-box__bd | .lw-box__bd ul li { | ||
margin- | margin: 6px 0; | ||
line-height: 1.45; | |||
} | } | ||
/* Major topics definition | /* Major topics - definition list styling */ | ||
.lw-box__bd dl { | .lw-box__bd dl { | ||
margin: 0; | margin: 0; | ||
| Line 224: | Line 194: | ||
.lw-box__bd dt { | .lw-box__bd dt { | ||
font-weight: 700; | font-weight: 700; | ||
font-size: 13px; | |||
margin- | margin-top: 12px; | ||
margin-bottom: 4px; | |||
color: #2d6a4f; | |||
} | } | ||
| Line 237: | Line 205: | ||
.lw-box__bd dd { | .lw-box__bd dd { | ||
margin: 0 0 | margin: 0 0 8px 0; | ||
line-height: 1. | line-height: 1.5; | ||
font-size: 13px; | |||
} | } | ||
.lw-box__bd dd a { | .lw-box__bd dd a { | ||
color: # | color: #2d6a4f; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.lw-box__bd dd a:hover { | .lw-box__bd dd a:hover { | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
/* Links */ | |||
/* Links | |||
.lw-box__bd a { | .lw-box__bd a { | ||
color: # | color: #2d6a4f; | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
| Line 307: | Line 229: | ||
} | } | ||
.lw- | /* Kicker/subheadings */ | ||
color: # | .lw-kicker { | ||
font-size: 12px; | |||
color: #6b7280; | |||
margin-bottom: 6px; | |||
font-weight: 600; | |||
} | } | ||
/* | /* Lists */ | ||
.lw- | .lw-list { | ||
margin: 0; | margin: 0; | ||
padding-left: 18px; | |||
padding: | |||
} | } | ||
.lw- | .lw-list li { | ||
margin: 4px 0; | |||
} | } | ||
/* | /* Portal grid for related portals */ | ||
.portal-grid { | .portal-grid { | ||
display: grid; | display: grid; | ||
| Line 351: | Line 255: | ||
.portal-grid a { | .portal-grid a { | ||
padding: | display: block; | ||
background: # | padding: 8px 12px; | ||
border: 1px solid # | background: #f9fafb; | ||
border-radius: | border: 1px solid #e5e7eb; | ||
border-radius: 8px; | |||
text-align: center; | text-align: center; | ||
font-size: 13px; | |||
font-weight: 600; | |||
color: #2d6a4f; | |||
text-decoration: none; | |||
transition: all 0.15s ease; | transition: all 0.15s ease; | ||
} | } | ||
.portal-grid a:hover { | .portal-grid a:hover { | ||
background: # | background: #f3f4f6; | ||
border-color: # | 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; | text-decoration: none; | ||
transition: background 0.15s ease; | |||
} | } | ||
.category-list a:hover { | |||
. | background: #e5e7eb; | ||
background: # | |||
} | } | ||
.lw- | /* Action items with bold labels */ | ||
color: # | .lw-list li strong { | ||
font-weight: | 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%; | width: 100%; | ||
height: auto; | |||
} | } | ||
. | /* Accent badges (optional) */ | ||
background: # | .badge { | ||
display: inline-block; | |||
border: | padding: 2px 8px; | ||
background: #2d6a4f; | |||
color: white; | |||
border-radius: 4px; | |||
font-size: 11px; | |||
font-weight: 600; | font-weight: 600; | ||
text- | text-transform: uppercase; | ||
letter-spacing: 0.03em; | |||
} | } | ||
. | /* Info callout boxes */ | ||
padding: | .info-box { | ||
border: | 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;
}
}