MediaWiki:Tables.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
.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;
}
}