MediaWiki:Tables.css: Difference between revisions
Jump to navigation
Jump to search
Created page with "→======================================== NEWCORA WIKI THEME - TABLES ======================================== Table styles & data presentation ========================================: →[TABLES] WIKITABLE ========================================: .wikitable { width: 100%; border-collapse: collapse; background: rgba(255,255,255,0.95); border: 2px solid rgba(255, 111, 163, 0.18); border-radius: 20px; margin: 20px 0; box-shadow..." |
No edit summary |
||
| Line 1: | Line 1: | ||
.wikitable { | .wikitable { | ||
width: 100%; | width: 100%; | ||
Revision as of 16:45, 21 October 2025
.wikitable {
width: 100%;
border-collapse: collapse;
background: rgba(255,255,255,0.95);
border: 2px solid rgba(255, 111, 163, 0.18);
border-radius: 20px;
margin: 20px 0;
box-shadow: 0 6px 24px rgba(255, 79, 145, 0.18);
overflow: hidden;
}
.wikitable th {
background: linear-gradient(135deg, #ff4f91, #d02f72);
color: white;
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 rgba(255, 111, 163, 0.1);
color: #666;
font-size: 14px;
line-height: 1.5;
vertical-align: top;
}
.wikitable tr:nth-child(even) td {
background: rgba(255, 111, 163, 0.02);
}
.wikitable tr:hover td {
background: rgba(255, 111, 163, 0.05);
}
.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: rgba(255,255,255,0.95);
border: 2px solid rgba(255, 111, 163, 0.18);
border-radius: 20px;
margin: 20px 0;
box-shadow: 0 6px 24px rgba(255, 79, 145, 0.18);
overflow: hidden;
}
.daily-table th {
background: linear-gradient(135deg, rgba(255, 111, 163, 0.1), rgba(255, 111, 163, 0.15));
color: #d02f72;
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 rgba(255, 111, 163, 0.08);
color: #666;
font-size: 13px;
text-align: center;
vertical-align: middle;
}
.daily-table tr:nth-child(even) td {
background: rgba(255, 111, 163, 0.02);
}
.daily-table tr:hover td {
background: rgba(255, 111, 163, 0.05);
}
.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: rgba(255,255,255,0.95);
border: 2px solid rgba(255, 111, 163, 0.18);
border-radius: 20px;
margin: 20px 0;
box-shadow: 0 6px 24px rgba(255, 79, 145, 0.18);
overflow: hidden;
}
.faq-table th {
background: linear-gradient(135deg, #ffd9e9, #ffb3cf);
color: #b32561;
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 rgba(255, 111, 163, 0.1);
color: #666;
font-size: 14px;
line-height: 1.6;
vertical-align: top;
}
.faq-table td:first-child {
font-weight: 600;
color: #d02f72;
background: rgba(255, 111, 163, 0.03);
}
.faq-table tr:hover td {
background: rgba(255, 111, 163, 0.05);
}
.faq-table tr:hover td:first-child {
background: rgba(255, 111, 163, 0.08);
}
.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;
}
}