MediaWiki:Common.css: Difference between revisions
From Tibia Idle wiki
Blanked the page Tags: Blanking Manual revert |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* RESPONSYWNA, NOWOCZESNA, JASNA TABELA WIKI */ | |||
/* Każdą tabelę opakowujemy w przewijalny kontener */ | |||
.wikitable { | |||
background: #fff !important; | |||
color: #23272e !important; | |||
border-radius: 12px !important; | |||
border: none !important; | |||
box-shadow: 0 4px 24px rgba(0,0,0,0.07); | |||
margin: 32px auto !important; | |||
min-width: 600px; /* tabele nie "złamie" na maleńkiej szerokości */ | |||
width: 100% !important; | |||
/* usuwamy overflow:hidden! */ | |||
} | |||
/* Dodajemy przewijalność poziomą tylko na małym ekranie */ | |||
@media (max-width: 800px) { | |||
.wikitable { | |||
min-width: 500px; | |||
width: 100vw !important; | |||
/* umożliwia przewijanie w bok */ | |||
display: block; | |||
overflow-x: auto; | |||
-webkit-overflow-scrolling: touch; | |||
} | |||
} | |||
/* Styl komórek */ | |||
.wikitable th, .wikitable td { | |||
padding: 12px 16px !important; | |||
border: none !important; | |||
vertical-align: middle !important; | |||
white-space: nowrap; /* nie łamie tekstu w nagłówkach */ | |||
} | |||
/* Styl nagłówków */ | |||
.wikitable th { | |||
background: #f7fafc !important; | |||
color: #3182ce !important; | |||
font-weight: 700 !important; | |||
letter-spacing: 0.02em; | |||
border-bottom: 2px solid #3182ce !important; | |||
} | |||
/* Co drugi wiersz lekko szary */ | |||
.wikitable tr:nth-child(even) { | |||
background: #f5f6fa !important; | |||
} | |||
.wikitable tr:nth-child(odd) { | |||
background: #fff !important; | |||
} | |||
/* Efekt hover */ | |||
.wikitable tr:hover { | |||
background: #e3eafc !important; | |||
} | |||
/* Linki bez podkreślenia */ | |||
.wikitable a, .wikitable a:visited { | |||
color: #e55353 !important; | |||
text-decoration: none !important; | |||
transition: color 0.2s; | |||
} | |||
.wikitable a:hover { | |||
color: #f9a602 !important; | |||
text-decoration: none !important; | |||
} | |||
/* Zaokrąglenie rogów tylko na rogach tabeli */ | |||
.wikitable th:first-child { border-top-left-radius: 12px !important; } | |||
.wikitable th:last-child { border-top-right-radius: 12px !important; } | |||
.wikitable tr:last-child td:first-child { border-bottom-left-radius: 12px !important; } | |||
.wikitable tr:last-child td:last-child { border-bottom-right-radius: 12px !important; } | |||
/* Na mobile — pozwól przewijanie w bok, nie przycinaj! */ | |||
@media (max-width: 800px) { | |||
.wikitable th, .wikitable td { | |||
min-width: 100px; | |||
white-space: nowrap; | |||
} | |||
} | |||
Revision as of 14:00, 26 June 2025
/* RESPONSYWNA, NOWOCZESNA, JASNA TABELA WIKI */
/* Każdą tabelę opakowujemy w przewijalny kontener */
.wikitable {
background: #fff !important;
color: #23272e !important;
border-radius: 12px !important;
border: none !important;
box-shadow: 0 4px 24px rgba(0,0,0,0.07);
margin: 32px auto !important;
min-width: 600px; /* tabele nie "złamie" na maleńkiej szerokości */
width: 100% !important;
/* usuwamy overflow:hidden! */
}
/* Dodajemy przewijalność poziomą tylko na małym ekranie */
@media (max-width: 800px) {
.wikitable {
min-width: 500px;
width: 100vw !important;
/* umożliwia przewijanie w bok */
display: block;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
}
/* Styl komórek */
.wikitable th, .wikitable td {
padding: 12px 16px !important;
border: none !important;
vertical-align: middle !important;
white-space: nowrap; /* nie łamie tekstu w nagłówkach */
}
/* Styl nagłówków */
.wikitable th {
background: #f7fafc !important;
color: #3182ce !important;
font-weight: 700 !important;
letter-spacing: 0.02em;
border-bottom: 2px solid #3182ce !important;
}
/* Co drugi wiersz lekko szary */
.wikitable tr:nth-child(even) {
background: #f5f6fa !important;
}
.wikitable tr:nth-child(odd) {
background: #fff !important;
}
/* Efekt hover */
.wikitable tr:hover {
background: #e3eafc !important;
}
/* Linki bez podkreślenia */
.wikitable a, .wikitable a:visited {
color: #e55353 !important;
text-decoration: none !important;
transition: color 0.2s;
}
.wikitable a:hover {
color: #f9a602 !important;
text-decoration: none !important;
}
/* Zaokrąglenie rogów tylko na rogach tabeli */
.wikitable th:first-child { border-top-left-radius: 12px !important; }
.wikitable th:last-child { border-top-right-radius: 12px !important; }
.wikitable tr:last-child td:first-child { border-bottom-left-radius: 12px !important; }
.wikitable tr:last-child td:last-child { border-bottom-right-radius: 12px !important; }
/* Na mobile — pozwól przewijanie w bok, nie przycinaj! */
@media (max-width: 800px) {
.wikitable th, .wikitable td {
min-width: 100px;
white-space: nowrap;
}
}