User:Fen/Portals/Products/styles.css: Difference between revisions
Appearance
Created page with ".products-portal-wrapper { font-family: 'Segoe UI', sans-serif; background: #fdfaf6; padding: 2em; max-width: 1200px; margin: auto; box-shadow: 0 0 15px rgba(0,0,0,0.1); } →Header: .products-header { background: linear-gradient(to right, #ba0000, #450000); color: #fff; text-align: center; padding: 1.5em; border-radius: 8px; margin-bottom: 2em; box-shadow: 0 3px 12px rgba(0,0,0,0.4); } .products-title { font-size: 2.5em; font-weight: 900..." |
No edit summary |
||
Line 1: | Line 1: | ||
/* Wrapper: Light and clean */ | |||
.products-portal-wrapper { | .products-portal-wrapper { | ||
font-family: | font-family: "Rubik", "Segoe UI", sans-serif; | ||
background: # | background: #f9fbfc; | ||
padding: 2em; | padding: 2em; | ||
max-width: 1200px; | max-width: 1200px; | ||
margin: auto; | margin: auto; | ||
border-radius: 8px; | |||
} | } | ||
/* Header */ | /* Header: Minimalist alert-bar style */ | ||
.products-header { | .products-header { | ||
background: | background: #005d8f; | ||
color: # | color: #ffffff; | ||
padding: 1.2em 1.5em; | |||
border-left: 10px solid #ff5050; | |||
border-radius: | border-radius: 4px; | ||
margin-bottom: 2em; | margin-bottom: 2em; | ||
} | } | ||
.products-title { | .products-title { | ||
font-size: 2. | font-size: 2.2em; | ||
font-weight: | font-weight: 800; | ||
margin-bottom: 0.2em; | |||
letter-spacing: | letter-spacing: 0.5px; | ||
} | } | ||
.products-subtitle { | .products-subtitle { | ||
font-size: | font-size: 1em; | ||
font- | font-weight: 400; | ||
opacity: 0.9; | |||
} | } | ||
Line 34: | Line 33: | ||
.products-grid { | .products-grid { | ||
display: grid; | display: grid; | ||
grid-template-columns: | grid-template-columns: 1fr 1fr; | ||
gap: 1. | gap: 1.2em; | ||
} | } | ||
/* Card | /* Card Base: Soft, tile-like design */ | ||
.products-card { | .products-card { | ||
background: # | background-color: #ffffff; | ||
border: 1px solid # | border: 1px solid #d8e1e8; | ||
border- | border-radius: 10px; | ||
padding: | padding: 1.2em; | ||
box-shadow: 0 | box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03); | ||
transition: | transition: box-shadow 0.2s ease, transform 0.2s ease; | ||
} | } | ||
.products-card:hover { | .products-card:hover { | ||
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07); | |||
box-shadow: 0 | transform: translateY(-2px); | ||
} | } | ||
/* Wide Cards span full width */ | |||
.products-card.wide { | .products-card.wide { | ||
grid-column: 1 / -1; | grid-column: 1 / -1; | ||
} | } | ||
/* | /* Card Title */ | ||
.products-card-title { | .products-card-title { | ||
font-size: 1. | font-size: 1.4em; | ||
font-weight: | font-weight: 600; | ||
color: # | color: #003550; | ||
border- | margin-bottom: 0.6em; | ||
border-left: 4px solid #ff5050; | |||
padding-left: 0.5em; | |||
} | } | ||
/* Body */ | /* Card Body */ | ||
.products-card-body { | .products-card-body { | ||
font-size: | font-size: 0.98em; | ||
line-height: 1.6; | line-height: 1.6; | ||
color: #222; | color: #222; | ||
Line 72: | Line 74: | ||
.products-card-body ul { | .products-card-body ul { | ||
padding-left: 1.2em; | padding-left: 1.2em; | ||
list-style-type: disc; | |||
} | } | ||
.products-card-body li { | .products-card-body li { | ||
margin-bottom: 0. | margin-bottom: 0.4em; | ||
} | } | ||
/* | /* Center content (image card) */ | ||
.products-card-body.center { | .products-card-body.center { | ||
text-align: center; | text-align: center; | ||
Line 85: | Line 88: | ||
.products-card-body a[href*="Category:"] { | .products-card-body a[href*="Category:"] { | ||
display: inline-block; | display: inline-block; | ||
background | background: #eef4f8; | ||
border: 1px solid # | border: 1px solid #ccdce6; | ||
padding: 0.3em 0. | padding: 0.3em 0.7em; | ||
font-size: 0.95em; | |||
font-weight: | font-weight: 600; | ||
color: # | color: #003e66; | ||
border-radius: 6px; | |||
margin: 0.25em; | |||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.products-card-body a[href*="Category:"]:hover { | .products-card-body a[href*="Category:"]:hover { | ||
background-color: # | background: #dbeaf5; | ||
border-color: #a6c4d6; | |||
color: #002a47; | |||
} | } | ||
Line 102: | Line 107: | ||
a:link, | a:link, | ||
a:visited { | a:visited { | ||
color: # | color: #005ca9; | ||
text-decoration: none; | text-decoration: none; | ||
transition: color 0.2s ease; | |||
} | } | ||
a:hover { | a:hover, | ||
a:focus { | |||
color: #003f73; | |||
text-decoration: underline; | text-decoration: underline; | ||
} | |||
/* Thumbnail cleanup */ | |||
.products-card-body .thumb { | |||
margin: 0 auto; | |||
border-radius: 4px; | |||
} | } |
Latest revision as of 08:09, 13 July 2025
/* Wrapper: Light and clean */ .products-portal-wrapper { font-family: "Rubik", "Segoe UI", sans-serif; background: #f9fbfc; padding: 2em; max-width: 1200px; margin: auto; border-radius: 8px; } /* Header: Minimalist alert-bar style */ .products-header { background: #005d8f; color: #ffffff; padding: 1.2em 1.5em; border-left: 10px solid #ff5050; border-radius: 4px; margin-bottom: 2em; } .products-title { font-size: 2.2em; font-weight: 800; margin-bottom: 0.2em; letter-spacing: 0.5px; } .products-subtitle { font-size: 1em; font-weight: 400; opacity: 0.9; } /* Grid layout */ .products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; } /* Card Base: Soft, tile-like design */ .products-card { background-color: #ffffff; border: 1px solid #d8e1e8; border-radius: 10px; padding: 1.2em; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03); transition: box-shadow 0.2s ease, transform 0.2s ease; } .products-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07); transform: translateY(-2px); } /* Wide Cards span full width */ .products-card.wide { grid-column: 1 / -1; } /* Card Title */ .products-card-title { font-size: 1.4em; font-weight: 600; color: #003550; margin-bottom: 0.6em; border-left: 4px solid #ff5050; padding-left: 0.5em; } /* Card Body */ .products-card-body { font-size: 0.98em; line-height: 1.6; color: #222; } .products-card-body ul { padding-left: 1.2em; list-style-type: disc; } .products-card-body li { margin-bottom: 0.4em; } /* Center content (image card) */ .products-card-body.center { text-align: center; } /* Category links */ .products-card-body a[href*="Category:"] { display: inline-block; background: #eef4f8; border: 1px solid #ccdce6; padding: 0.3em 0.7em; font-size: 0.95em; font-weight: 600; color: #003e66; border-radius: 6px; margin: 0.25em; text-decoration: none; } .products-card-body a[href*="Category:"]:hover { background: #dbeaf5; border-color: #a6c4d6; color: #002a47; } /* General link styles */ a:link, a:visited { color: #005ca9; text-decoration: none; transition: color 0.2s ease; } a:hover, a:focus { color: #003f73; text-decoration: underline; } /* Thumbnail cleanup */ .products-card-body .thumb { margin: 0 auto; border-radius: 4px; }