Jump to content

User:Fen/Portals/Products/styles.css: Difference between revisions

From Consumer Rights Wiki
Fen (talk | contribs)
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..."
 
Fen (talk | contribs)
No edit summary
 
Line 1: Line 1:
/* Wrapper: Light and clean */
.products-portal-wrapper {
.products-portal-wrapper {
   font-family: 'Segoe UI', sans-serif;
   font-family: "Rubik", "Segoe UI", sans-serif;
   background: #fdfaf6;
   background: #f9fbfc;
   padding: 2em;
   padding: 2em;
   max-width: 1200px;
   max-width: 1200px;
   margin: auto;
   margin: auto;
   box-shadow: 0 0 15px rgba(0,0,0,0.1);
   border-radius: 8px;
}
}


/* Header */
/* Header: Minimalist alert-bar style */
.products-header {
.products-header {
   background: linear-gradient(to right, #ba0000, #450000);
   background: #005d8f;
   color: #fff;
   color: #ffffff;
   text-align: center;
   padding: 1.2em 1.5em;
   padding: 1.5em;
   border-left: 10px solid #ff5050;
   border-radius: 8px;
   border-radius: 4px;
   margin-bottom: 2em;
   margin-bottom: 2em;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}
}
.products-title {
.products-title {
   font-size: 2.5em;
   font-size: 2.2em;
   font-weight: 900;
   font-weight: 800;
   text-transform: uppercase;
   margin-bottom: 0.2em;
   letter-spacing: 1px;
   letter-spacing: 0.5px;
}
}
.products-subtitle {
.products-subtitle {
   font-size: 1.2em;
   font-size: 1em;
   font-style: italic;
   font-weight: 400;
   margin-top: 0.5em;
   opacity: 0.9;
  color: #f0e0e0;
}
}


Line 34: Line 33:
.products-grid {
.products-grid {
   display: grid;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   grid-template-columns: 1fr 1fr;
   gap: 1.5em;
   gap: 1.2em;
}
}


/* Card styles */
/* Card Base: Soft, tile-like design */
.products-card {
.products-card {
   background: #fff;
   background-color: #ffffff;
   border: 1px solid #ccc;
   border: 1px solid #d8e1e8;
   border-left: 6px solid #ba0000;
   border-radius: 10px;
   padding: 1em;
   padding: 1.2em;
   box-shadow: 0 4px 8px rgba(0,0,0,0.05);
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
   transition: transform 0.2s ease, box-shadow 0.2s ease;
   transition: box-shadow 0.2s ease, transform 0.2s ease;
}
}
.products-card:hover {
.products-card:hover {
  transform: translateY(-4px);
   box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
   box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
}
/* Wide Cards span full width */
.products-card.wide {
.products-card.wide {
   grid-column: 1 / -1;
   grid-column: 1 / -1;
}
}


/* Titles */
/* Card Title */
.products-card-title {
.products-card-title {
   font-size: 1.5em;
   font-size: 1.4em;
   font-weight: bold;
   font-weight: 600;
   color: #333;
   color: #003550;
   border-bottom: 2px solid #ba0000;
  margin-bottom: 0.6em;
   margin-bottom: 0.5em;
   border-left: 4px solid #ff5050;
   padding-left: 0.5em;
}
}


/* Body */
/* Card Body */
.products-card-body {
.products-card-body {
   font-size: 1em;
   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.5em;
   margin-bottom: 0.4em;
}
}


/* Centered content */
/* 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-color: #f4f4f4;
   background: #eef4f8;
   border: 1px solid #bbb;
   border: 1px solid #ccdce6;
   padding: 0.3em 0.6em;
   padding: 0.3em 0.7em;
   margin: 0.2em;
   font-size: 0.95em;
   font-weight: bold;
   font-weight: 600;
   color: #222;
   color: #003e66;
  border-radius: 6px;
  margin: 0.25em;
   text-decoration: none;
   text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}
}
.products-card-body a[href*="Category:"]:hover {
.products-card-body a[href*="Category:"]:hover {
   background-color: #ddd;
   background: #dbeaf5;
  border-color: #a6c4d6;
  color: #002a47;
}
}


Line 102: Line 107:
a:link,
a:link,
a:visited {
a:visited {
   color: #3366cc;
   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: #224499;
}
 
/* 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;
}