MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 19: | Line 19: | ||
#ca-history { display: none !important; } | #ca-history { display: none !important; } | ||
.wikitable { | @media screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { | ||
/* Tabloyu daha duyarlı hale getir */ | |||
.wikitable, .wikitable tbody, .wikitable td, .wikitable tr { | |||
display: block; | |||
} | |||
/* Sütun başlıklarını gizle */ | |||
.wikitable thead tr { | |||
position: absolute; | |||
top: -9999px; | |||
left: -9999px; | |||
} | |||
.wikitable tr { border: 1px solid #ccc; } | |||
.wikitable td { | |||
/* Tablo hücrelerini blok olarak ayarla ve kenar boşluklarını düzenle */ | |||
border: none; | |||
border-bottom: 1px solid #eee; | |||
position: relative; | |||
padding-left: 50%; | |||
white-space: normal; | |||
text-align:left; | |||
} | |||
.wikitable td:before { | |||
/* Hücre başlıklarını içerik olarak ekleyin */ | |||
position: absolute; | |||
top: 6px; | |||
left: 6px; | |||
width: 45%; | |||
padding-right: 10px; | |||
white-space: nowrap; | |||
font-weight: bold; | |||
text-align:left; | |||
} | |||
/* Sütun başlıklarını td:before ile eşleştir */ | |||
.wikitable td:before { content: attr(data-th); } | |||
} | } | ||
Revision as of 07:30, 5 April 2024
/* CSS placed here will be applied to all skins */
#ca-viewsource { display: none !important; }
#ca-edit { display: none !important; }
#ca-talk { display: none !important; }
#ca-protect { display: none !important; }
#ca-move { display: none !important; }
#ca-delete { display: none !important; }
#ca-watch { display: none !important; }
#ca-unwatch { display: none !important; }
#ca-formedit { display: none !important; }
#ca-nstab-user { display: none !important; }
#t-specialpages { display: none !important; }
#t-upload { display: none !important; }
#citizen-pref-item { display: none !important; }
#n-recentchanges { display: none !important; }
#mw-usertoollinks-contribs { display: none !important; }
#n-randompage { display: none !important; }
#n-help-mediawiki { display: none !important; }
#ca-history { display: none !important; }
@media screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
/* Tabloyu daha duyarlı hale getir */
.wikitable, .wikitable tbody, .wikitable td, .wikitable tr {
display: block;
}
/* Sütun başlıklarını gizle */
.wikitable thead tr {
position: absolute;
top: -9999px;
left: -9999px;
}
.wikitable tr { border: 1px solid #ccc; }
.wikitable td {
/* Tablo hücrelerini blok olarak ayarla ve kenar boşluklarını düzenle */
border: none;
border-bottom: 1px solid #eee;
position: relative;
padding-left: 50%;
white-space: normal;
text-align:left;
}
.wikitable td:before {
/* Hücre başlıklarını içerik olarak ekleyin */
position: absolute;
top: 6px;
left: 6px;
width: 45%;
padding-right: 10px;
white-space: nowrap;
font-weight: bold;
text-align:left;
}
/* Sütun başlıklarını td:before ile eşleştir */
.wikitable td:before { content: attr(data-th); }
}