Jump to content

User:Fen/Portals/Incidents/styles.css

From Consumer Rights Wiki
.incidents-portal-wrapper {
  font-family: "Work Sans", "Segoe UI", sans-serif;
  background: #fef9f7;
  color: #1b1b1b;
  padding: 2em;
  max-width: 1200px;
  margin: auto;
}

/* Header */
.incidents-header {
  background: linear-gradient(to right, #991b1b, #7f1d1d);
  color: #fff;
  padding: 1.5em;
  border-left: 10px solid #ff4d4d;
  border-radius: 6px;
  margin-bottom: 2em;
  box-shadow: 0 0 15px rgba(127, 29, 29, 0.3);
}
.incidents-title {
  font-size: 2.3em;
  font-weight: 800;
}
.incidents-subtitle {
  font-size: 1.1em;
  font-style: italic;
  margin-top: 0.4em;
  color: #f8d7da;
}

/* Grid layout */
.incidents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
}

/* Card */
.incidents-card {
  background: #fff;
  border: 2px solid #ffdddd;
  border-left: 5px solid #e60000;
  border-radius: 6px;
  padding: 1.2em;
  box-shadow: 0 2px 6px rgba(200, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.incidents-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(255, 0, 0, 0.08);
}
.incidents-card.wide {
  grid-column: 1 / -1;
}

/* Titles */
.incidents-card-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #c40000;
  margin-bottom: 0.5em;
  border-bottom: 1px dashed #bbb;
  padding-bottom: 0.2em;
}

/* Body */
.incidents-card-body {
  font-size: 0.97em;
  color: #202020;
}
.incidents-card-body ul {
  padding-left: 1.2em;
}
.incidents-card-body li {
  margin-bottom: 0.4em;
}

/* Center content */
.incidents-card-body.center {
  text-align: center;
}

/* Category tags */
.incidents-card-body a[href*="Category:"] {
  display: inline-block;
  background: #ffeaea;
  border: 1px solid #ffcccc;
  padding: 0.3em 0.6em;
  font-size: 0.9em;
  font-weight: 600;
  color: #900;
  border-radius: 4px;
  margin: 0.2em;
  text-decoration: none;
}
.incidents-card-body a[href*="Category:"]:hover {
  background: #fdd;
  color: #600;
  border-color: #d00;
}

/* Link styling */
a:link,
a:visited {
  color: #a20000;
  text-decoration: none;
}
a:hover {
  color: #ff0000;
  text-decoration: underline;
}