MediaWiki:Tables.css: Difference between revisions

From CoraTO Wiki - Official Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:
   width: 100%;
   width: 100%;
   border-collapse: collapse;
   border-collapse: collapse;
   background: rgba(255,255,255,0.95);
   background: var(--bg-1);
   border: 2px solid rgba(255, 111, 163, 0.18);
   border: 2px solid var(--border);
   border-radius: 20px;
   border-radius: 20px;
   margin: 20px 0;
   margin: 20px 0;
   box-shadow: 0 6px 24px rgba(255, 79, 145, 0.18);
   box-shadow: 0 6px 24px var(--shadow-soft);
   overflow: hidden;
   overflow: hidden;
}
}


.wikitable th {
.wikitable th {
   background: linear-gradient(135deg, #ff4f91, #d02f72);
   background: var(--primary);
   color: white;
   color: var(--text-strong);
   font-weight: 700;
   font-weight: 700;
   padding: 16px 20px;
   padding: 16px 20px;
Line 33: Line 33:
.wikitable td {
.wikitable td {
   padding: 16px 20px;
   padding: 16px 20px;
   border-bottom: 1px solid rgba(255, 111, 163, 0.1);
   border-bottom: 1px solid var(--border);
   color: #666;
   color: var(--text-muted);
   font-size: 14px;
   font-size: 14px;
   line-height: 1.5;
   line-height: 1.5;
Line 41: Line 41:


.wikitable tr:nth-child(even) td {
.wikitable tr:nth-child(even) td {
   background: rgba(255, 111, 163, 0.02);
   background: var(--bg-1);
}
}


.wikitable tr:hover td {
.wikitable tr:hover td {
   background: rgba(255, 111, 163, 0.05);
   background: var(--bg-1);
}
}


Line 59: Line 59:
   border-bottom-right-radius: 20px;
   border-bottom-right-radius: 20px;
}
}
html[data-theme="dark"] .wikitable { background: #141c2a; border: 2px solid rgba(159,208,255,.18); box-shadow: 0 6px 24px rgba(123,187,255,.18) }
html[data-theme="dark"] .wikitable th { background: linear-gradient(135deg, #274c77, #1b2b41); color: #ffffff; border: none }
html[data-theme="dark"] .wikitable td { border-bottom: 1px solid rgba(159,208,255,.18); color: #cfe6ff }
html[data-theme="dark"] .wikitable tr:nth-child(even) td { background: #121a29 }
html[data-theme="dark"] .wikitable tr:hover td { background: rgba(61,97,146,.12) }


/* [TABLES] DAILY TABLE
/* [TABLES] DAILY TABLE
Line 70: Line 65:
   width: 100%;
   width: 100%;
   border-collapse: collapse;
   border-collapse: collapse;
   background: rgba(255,255,255,0.95);
   background: var(--bg-1);
   border: 2px solid rgba(255, 111, 163, 0.18);
   border: 2px solid var(--border);
   border-radius: 20px;
   border-radius: 20px;
   margin: 20px 0;
   margin: 20px 0;
   box-shadow: 0 6px 24px rgba(255, 79, 145, 0.18);
   box-shadow: 0 6px 24px var(--shadow-soft);
   overflow: hidden;
   overflow: hidden;
}
}


.daily-table th {
.daily-table th {
   background: linear-gradient(135deg, rgba(255, 111, 163, 0.1), rgba(255, 111, 163, 0.15));
   background: var(--primary);
   color: #d02f72;
   color: var(--text-strong);
   font-weight: 700;
   font-weight: 700;
   padding: 14px 18px;
   padding: 14px 18px;
Line 100: Line 95:
.daily-table td {
.daily-table td {
   padding: 12px 18px;
   padding: 12px 18px;
   border-bottom: 1px solid rgba(255, 111, 163, 0.08);
   border-bottom: 1px solid var(--border);
   color: #666;
   color: var(--text-muted);
   font-size: 13px;
   font-size: 13px;
   text-align: center;
   text-align: center;
Line 108: Line 103:


.daily-table tr:nth-child(even) td {
.daily-table tr:nth-child(even) td {
   background: rgba(255, 111, 163, 0.02);
   background: var(--bg-1);
}
}


.daily-table tr:hover td {
.daily-table tr:hover td {
   background: rgba(255, 111, 163, 0.05);
   background: var(--bg-1);
}
}


Line 126: Line 121:
   border-bottom-right-radius: 20px;
   border-bottom-right-radius: 20px;
}
}
html[data-theme="dark"] .daily-table { background: #141c2a; border: 2px solid rgba(159,208,255,.18); box-shadow: 0 6px 24px rgba(123,187,255,.18) }
html[data-theme="dark"] .daily-table th { background: linear-gradient(135deg, rgba(39,76,119,.18), rgba(27,43,65,.18)); color: #9fd0ff; border: none }
html[data-theme="dark"] .daily-table td { border-bottom: 1px solid rgba(159,208,255,.18); color: #cfe6ff }
html[data-theme="dark"] .daily-table tr:nth-child(even) td { background: #121a29 }
html[data-theme="dark"] .daily-table tr:hover td { background: rgba(61,97,146,.12) }


/* [TABLES] FAQ TABLE
/* [TABLES] FAQ TABLE
Line 137: Line 127:
   width: 100%;
   width: 100%;
   border-collapse: collapse;
   border-collapse: collapse;
   background: rgba(255,255,255,0.95);
   background: var(--bg-1);
   border: 2px solid rgba(255, 111, 163, 0.18);
   border: 2px solid var(--border);
   border-radius: 20px;
   border-radius: 20px;
   margin: 20px 0;
   margin: 20px 0;
   box-shadow: 0 6px 24px rgba(255, 79, 145, 0.18);
   box-shadow: 0 6px 24px var(--shadow-soft);
   overflow: hidden;
   overflow: hidden;
}
}


.faq-table th {
.faq-table th {
   background: linear-gradient(135deg, #ffd9e9, #ffb3cf);
   background: var(--primary);
   color: #b32561;
   color: var(--text-strong);
   font-weight: 700;
   font-weight: 700;
   padding: 16px 20px;
   padding: 16px 20px;
Line 166: Line 156:
.faq-table td {
.faq-table td {
   padding: 18px 20px;
   padding: 18px 20px;
   border-bottom: 1px solid rgba(255, 111, 163, 0.1);
   border-bottom: 1px solid var(--border);
   color: #666;
   color: var(--text-muted);
   font-size: 14px;
   font-size: 14px;
   line-height: 1.6;
   line-height: 1.6;
Line 175: Line 165:
.faq-table td:first-child {
.faq-table td:first-child {
   font-weight: 600;
   font-weight: 600;
   color: #d02f72;
   color: var(--heading);
   background: rgba(255, 111, 163, 0.03);
   background: var(--bg-1);
}
}


.faq-table tr:hover td {
.faq-table tr:hover td {
   background: rgba(255, 111, 163, 0.05);
   background: var(--bg-1);
}
}


.faq-table tr:hover td:first-child {
.faq-table tr:hover td:first-child {
   background: rgba(255, 111, 163, 0.08);
   background: var(--bg-1);
}
}


Line 198: Line 188:
   border-bottom-right-radius: 20px;
   border-bottom-right-radius: 20px;
}
}
html[data-theme="dark"] .faq-table { background: #141c2a; border: 2px solid rgba(159,208,255,.18); box-shadow: 0 6px 24px rgba(123,187,255,.18) }
html[data-theme="dark"] .faq-table th { background: linear-gradient(135deg, #274c77, #1b2b41); color: #ffffff; border: none }
html[data-theme="dark"] .faq-table td { border-bottom: 1px solid rgba(159,208,255,.18); color: #cfe6ff }
html[data-theme="dark"] .faq-table td:first-child { color: #9fd0ff; background: rgba(39,76,119,.08) }
html[data-theme="dark"] .faq-table tr:hover td { background: rgba(61,97,146,.12) }


/* ========================================
/* ========================================

Latest revision as of 08:25, 2 January 2026


.wikitable {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  border: 2px solid var(--border);
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 6px 24px var(--shadow-soft);
  overflow: hidden;
}

.wikitable th {
  background: var(--primary);
  color: var(--text-strong);
  font-weight: 700;
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.wikitable th:first-child {
  border-top-left-radius: 20px;
}

.wikitable th:last-child {
  border-top-right-radius: 20px;
}

.wikitable td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

.wikitable tr:nth-child(even) td {
  background: var(--bg-1);
}

.wikitable tr:hover td {
  background: var(--bg-1);
}

.wikitable tr:last-child td {
  border-bottom: none;
}

.wikitable tr:last-child td:first-child {
  border-bottom-left-radius: 20px;
}

.wikitable tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}

/* [TABLES] DAILY TABLE
   ======================================== */
.daily-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  border: 2px solid var(--border);
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 6px 24px var(--shadow-soft);
  overflow: hidden;
}

.daily-table th {
  background: var(--primary);
  color: var(--text-strong);
  font-weight: 700;
  padding: 14px 18px;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.daily-table th:first-child {
  border-top-left-radius: 20px;
}

.daily-table th:last-child {
  border-top-right-radius: 20px;
}

.daily-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
}

.daily-table tr:nth-child(even) td {
  background: var(--bg-1);
}

.daily-table tr:hover td {
  background: var(--bg-1);
}

.daily-table tr:last-child td {
  border-bottom: none;
}

.daily-table tr:last-child td:first-child {
  border-bottom-left-radius: 20px;
}

.daily-table tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}

/* [TABLES] FAQ TABLE
   ======================================== */
.faq-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  border: 2px solid var(--border);
  border-radius: 20px;
  margin: 20px 0;
  box-shadow: 0 6px 24px var(--shadow-soft);
  overflow: hidden;
}

.faq-table th {
  background: var(--primary);
  color: var(--text-strong);
  font-weight: 700;
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border: none;
}

.faq-table th:first-child {
  border-top-left-radius: 20px;
  width: 30%;
}

.faq-table th:last-child {
  border-top-right-radius: 20px;
}

.faq-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  vertical-align: top;
}

.faq-table td:first-child {
  font-weight: 600;
  color: var(--heading);
  background: var(--bg-1);
}

.faq-table tr:hover td {
  background: var(--bg-1);
}

.faq-table tr:hover td:first-child {
  background: var(--bg-1);
}

.faq-table tr:last-child td {
  border-bottom: none;
}

.faq-table tr:last-child td:first-child {
  border-bottom-left-radius: 20px;
}

.faq-table tr:last-child td:last-child {
  border-bottom-right-radius: 20px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Desktop médio: 992px - 1199px */
@media (max-width: 1199px) {
  .wikitable {
    font-size: 0.9rem;
    margin: 1rem 0;
  }
  
  .wikitable th,
  .wikitable td {
    padding: 0.6rem 0.8rem;
  }
  
  .wikitable th {
    font-size: 0.85rem;
  }
  
  .wikitable caption {
    font-size: 1rem;
    padding: 0.4rem;
  }
  
  .sortable th {
    padding-right: 1.8rem;
  }
  
  .sortable th:after {
    right: 0.4rem;
  }
}

/* Desktop pequeno: 768px - 991px */
@media (max-width: 991px) {
  .wikitable {
    font-size: 0.85rem;
    margin: 0.8rem 0;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
  
  .wikitable th,
  .wikitable td {
    padding: 0.5rem 0.7rem;
    min-width: 80px;
  }
  
  .wikitable th {
    font-size: 0.8rem;
  }
  
  .wikitable caption {
    font-size: 0.95rem;
    padding: 0.3rem;
  }
  
  .sortable th {
    padding-right: 1.6rem;
  }
  
  .sortable th:after {
    right: 0.3rem;
  }
}

/* Tablet: 576px - 767px */
@media (max-width: 767px) {
  .wikitable {
    font-size: 0.8rem;
    margin: 0.6rem 0;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
  
  .wikitable th,
  .wikitable td {
    padding: 0.4rem 0.6rem;
    min-width: 70px;
  }
  
  .wikitable th {
    font-size: 0.75rem;
  }
  
  .wikitable caption {
    font-size: 0.9rem;
    padding: 0.25rem;
  }
  
  .sortable th {
    padding-right: 1.4rem;
  }
  
  .sortable th:after {
    right: 0.25rem;
    font-size: 0.7rem;
  }
  
  .wikitable tbody tr:hover {
    transform: none;
  }
}

/* Mobile: até 575px */
@media (max-width: 575px) {
  .wikitable {
    font-size: 0.75rem;
    margin: 0.5rem 0;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
  
  .wikitable th,
  .wikitable td {
    padding: 0.3rem 0.5rem;
    min-width: 60px;
  }
  
  .wikitable th {
    font-size: 0.7rem;
  }
  
  .wikitable caption {
    font-size: 0.85rem;
    padding: 0.2rem;
  }
  
  .sortable th {
    padding-right: 1.2rem;
  }
  
  .sortable th:after {
    right: 0.2rem;
    font-size: 0.65rem;
  }
  
  .wikitable tbody tr:hover {
    transform: none;
  }
  
  /* Stack table cells vertically on very small screens */
  .wikitable-responsive {
    display: block;
  }
  
  .wikitable-responsive thead {
    display: none;
  }
  
  .wikitable-responsive tbody,
  .wikitable-responsive tr,
  .wikitable-responsive td {
    display: block;
    width: 100%;
  }
  
  .wikitable-responsive tr {
    border: 1px solid #a2a9b1;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
  }
  
  .wikitable-responsive td {
    border: none;
    padding: 0.2rem 0;
    text-align: left;
  }
  
  .wikitable-responsive td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: #0645ad;
  }
}