User:Fen/Portals/Products/styles.css: Difference between revisions
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 |
||
(One intermediate revision by the same user not shown) | |||
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; | ||
color: # | } | ||
/* Thumbnail cleanup */ | |||
.products-card-body .thumb { | |||
margin: 0 auto; | |||
border-radius: 4px; | |||
} | |||
@media screen { | |||
html.skin-theme-clientpref-night .products-portal-wrapper, | |||
html.skin-theme-clientpref-os .products-portal-wrapper { | |||
background: #1b1d1f; | |||
color: #e0e0e0; | |||
} | |||
html.skin-theme-clientpref-night .products-header, | |||
html.skin-theme-clientpref-os .products-header { | |||
background: #003e66; | |||
color: #ffffff; | |||
border-left-color: #ff6b6b; | |||
} | |||
html.skin-theme-clientpref-night .products-title, | |||
html.skin-theme-clientpref-os .products-title { | |||
color: #f2f2f2; | |||
} | |||
html.skin-theme-clientpref-night .products-subtitle, | |||
html.skin-theme-clientpref-os .products-subtitle { | |||
color: #cccccc; | |||
opacity: 0.85; | |||
} | |||
html.skin-theme-clientpref-night .products-card, | |||
html.skin-theme-clientpref-os .products-card { | |||
background-color: #26292b; | |||
border: 1px solid #3a3d3f; | |||
box-shadow: 0 2px 6px rgba(0,0,0,0.4); | |||
} | |||
html.skin-theme-clientpref-night .products-card-title, | |||
html.skin-theme-clientpref-os .products-card-title { | |||
color: #ffb3b3; | |||
border-left-color: #ff6b6b; | |||
} | |||
html.skin-theme-clientpref-night .products-card-body, | |||
html.skin-theme-clientpref-os .products-card-body { | |||
color: #dddddd; | |||
} | |||
html.skin-theme-clientpref-night .products-card-body a[href*="Category:"], | |||
html.skin-theme-clientpref-os .products-card-body a[href*="Category:"] { | |||
background: #2d3337; | |||
border: 1px solid #555; | |||
color: #ffb3b3; | |||
} | |||
html.skin-theme-clientpref-night .products-card-body a[href*="Category:"]:hover, | |||
html.skin-theme-clientpref-os .products-card-body a[href*="Category:"]:hover { | |||
background: #3a4146; | |||
border-color: #ff6b6b; | |||
color: #ffe0e0; | |||
} | |||
html.skin-theme-clientpref-night a:link, | |||
html.skin-theme-clientpref-night a:visited, | |||
html.skin-theme-clientpref-os a:link, | |||
html.skin-theme-clientpref-os a:visited { | |||
color: #66b2ff; | |||
} | |||
html.skin-theme-clientpref-night a:hover, | |||
html.skin-theme-clientpref-os a:hover { | |||
color: #99ccff; | |||
} | |||
} | } |