MediaWiki:Common.css: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 293: Line 293:
     display: none;
     display: none;
}
}
/* =========================
  HIDE SIDEBAR ITEMS FOR PUBLIC USERS
  ========================= */


/* Recent changes */
/* =================================================
body:not(.mw-userloggedin) #n-recentchanges {
  HIDE SPECIAL PAGES & UPLOAD FOR NON-ADMIN USERS
  ================================================= */
 
/* 1️⃣ Guest users (logged-out) */
body.mw-user-anon #n-specialpages,
body.mw-user-anon #t-upload {
    display: none !important;
}
 
/* 2️⃣ Logged-in normal users (NOT admin, NOT editor) */
body.mw-user-loggedin:not(.mw-group-sysop):not(.mw-group-editor) #n-specialpages,
body.mw-user-loggedin:not(.mw-group-sysop):not(.mw-group-editor) #t-upload {
    display: none !important;
}
 
 
#toc {
     display: none;
     display: none;
}
}


/* Help about MediaWiki */
 
body:not(.mw-userloggedin) #n-help-mediawiki {
 
     display: none;
.infobox.biography {
    float: right;
    clear: right;
    width: 320px;
    margin: 0 0 1em 1em;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
    background: #ffffff;
    color: #202122;
    font-size: 88%;
    line-height: 1.5em;
}
 
.infobox.biography th,
.infobox.biography td {
    border: 1px solid #eaecf0;
    padding: 8px;
    vertical-align: top;
}
 
.infobox-title {
    background: #eaecf0;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
     padding: 10px;
}
}


/* Special pages */
.infobox-image {
body:not(.mw-userloggedin) #n-specialpages {
    text-align: center;
     display: none;
    background: #ffffff !important;
     padding: 10px;
}
}


/* What links here */
.infobox-image img {
body:not(.mw-userloggedin) #t-whatlinkshere {
    background: #ffffff !important;
     display: none;
    border: none;
     box-shadow: none;
}
}


/* Related changes */
.infobox-caption {
body:not(.mw-userloggedin) #t-recentchangeslinked {
    text-align: center;
     display: none;
    font-size: 90%;
     background: #ffffff;
}
}


/* Upload file */
.infobox.biography th {
body:not(.mw-userloggedin) #t-upload {
    width: 120px;
     display: none;
    background: #f8f9fa;
    text-align: left;
     font-weight: bold;
}
}


/* Page information */
 
body:not(.mw-userloggedin) #t-info {
 
     display: none;
 
/* Mobile responsive infobox */
@media screen and (max-width: 768px) {
 
    .infobox.biography {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px 0 !important;
        box-sizing: border-box;
        overflow-x: auto;
    }
 
    .infobox.biography table {
        width: 100% !important;
    }
 
    .infobox.biography th {
        width: 35% !important;
        word-break: break-word;
    }
 
    .infobox.biography td {
        width: 65% !important;
        word-break: break-word;
    }
 
    .infobox-image img {
        max-width: 100% !important;
        height: auto !important;
    }
 
     .infobox-title {
        font-size: 22px !important;
    }
}
}