MediaWiki:Tables.css: Difference between revisions
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: | background: var(--bg-1); | ||
border: 2px solid | border: 2px solid var(--border); | ||
border-radius: 20px; | border-radius: 20px; | ||
margin: 20px 0; | margin: 20px 0; | ||
box-shadow: 0 6px 24px | box-shadow: 0 6px 24px var(--shadow-soft); | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.wikitable th { | .wikitable th { | ||
background: | background: var(--primary); | ||
color: | 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 | border-bottom: 1px solid var(--border); | ||
color: | 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: | background: var(--bg-1); | ||
} | } | ||
.wikitable tr:hover td { | .wikitable tr:hover td { | ||
background: | background: var(--bg-1); | ||
} | } | ||
| Line 59: | Line 59: | ||
border-bottom-right-radius: 20px; | border-bottom-right-radius: 20px; | ||
} | } | ||
/* [TABLES] DAILY TABLE | /* [TABLES] DAILY TABLE | ||
| Line 70: | Line 65: | ||
width: 100%; | width: 100%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
background: | background: var(--bg-1); | ||
border: 2px solid | border: 2px solid var(--border); | ||
border-radius: 20px; | border-radius: 20px; | ||
margin: 20px 0; | margin: 20px 0; | ||
box-shadow: 0 6px 24px | box-shadow: 0 6px 24px var(--shadow-soft); | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.daily-table th { | .daily-table th { | ||
background: | background: var(--primary); | ||
color: | 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 | border-bottom: 1px solid var(--border); | ||
color: | 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: | background: var(--bg-1); | ||
} | } | ||
.daily-table tr:hover td { | .daily-table tr:hover td { | ||
background: | background: var(--bg-1); | ||
} | } | ||
| Line 126: | Line 121: | ||
border-bottom-right-radius: 20px; | border-bottom-right-radius: 20px; | ||
} | } | ||
/* [TABLES] FAQ TABLE | /* [TABLES] FAQ TABLE | ||
| Line 137: | Line 127: | ||
width: 100%; | width: 100%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
background: | background: var(--bg-1); | ||
border: 2px solid | border: 2px solid var(--border); | ||
border-radius: 20px; | border-radius: 20px; | ||
margin: 20px 0; | margin: 20px 0; | ||
box-shadow: 0 6px 24px | box-shadow: 0 6px 24px var(--shadow-soft); | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.faq-table th { | .faq-table th { | ||
background: | background: var(--primary); | ||
color: | 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 | border-bottom: 1px solid var(--border); | ||
color: | 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: | color: var(--heading); | ||
background: | background: var(--bg-1); | ||
} | } | ||
.faq-table tr:hover td { | .faq-table tr:hover td { | ||
background: | background: var(--bg-1); | ||
} | } | ||
.faq-table tr:hover td:first-child { | .faq-table tr:hover td:first-child { | ||
background: | background: var(--bg-1); | ||
} | } | ||
| Line 198: | Line 188: | ||
border-bottom-right-radius: 20px; | border-bottom-right-radius: 20px; | ||
} | } | ||
/* ======================================== | /* ======================================== | ||
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;
}
}