User:Lahwaacz/common.css

From ArchWiki
Jump to: navigation, search

Note: After saving, 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)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* editfont */
#wpTextbox1 {
    font-family: monospace;
    font-size: 13px;
}

/* hide rollback links in Special:RecentChanges and contribution lists */
div.mw-changeslist span.mw-rollback-link,
ul.mw-contributions-list span.mw-rollback-link
{
    display: none;
}

/* hide the stupid legend in Special:RecentChanges */
div.mw-changeslist-legend {
    display: none;
}

/* don't even show auto-hide notifications */
/* TODO: wrong class or overridden by javascript */
div.mw-notification-autohide div.postedit-confirmation-saved {
    display: none;
}


/* wikEdDiff customization */
div.wikEdDiffDiv {
    border: 1px solid #2f6fab;
}
div.wikEdDiffSeparator {
    border-bottom: 1px solid lightgray;
    box-shadow: 0px 0px 0.5em 1px lightgray;
    margin: 0.5em 0em;
}
pre.wikEdDiffFragment,
div.wikEdDiffNoChange
{
    border-width: 0px;
    margin: 0px;
    box-shadow: 0px 0px 0px 0px gray;
    background: white;
}






/* Override monospace text style */

code, tt {
    /* Address https://wiki.archlinux.org/index.php?title=Help_talk:Template&oldid=431890#Problems_with_Template:ic
     * Let inline code (including [[Template:ic]], which uses <code>) wrap correctly
     * The Firefox-only triple-click feature given by display:inline-block must be sacrificed
     * Override https://projects.archlinux.org/vhosts/wiki.archlinux.org.git/tree/skins/ArchLinux/arch.css#n33
     */
    display: inline;
    white-space: pre;
    padding: 0.3em;
}


/*
 * Override margins for headings in a consistent way
 * (Vector uses top-only margins, MonoBook has top padding)
 */
.mw-body-content h1,
.mw-body-content h2
{
    margin-top: 0.6em;
    margin-bottom: 0.6em;
    padding-top: 0;
}

.mw-body-content h3,
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6
{
    margin-top: 0.5em;
    margin-bottom: 0em;
    padding-top: 0;
}


/* Vector's font size for h4 is 100%, just like regular paragraphs */
.mw-body-content h1 { font-size: 188%; font-family: sans-serif; }
.mw-body-content h2 { font-size: 150%; font-family: sans-serif; }
.mw-body-content h3 { font-size: 128%; }
.mw-body-content h4 { font-size: 116%; }
.mw-body-content h5 { font-size: 108%; }
.mw-body-content h6 { font-size: 100%; }


/* Responsive style for the 'Related articles' box */
@media screen and ( max-width: 720px ) {
    div.archwiki-template-meta-related-articles-start {
        float: initial;
        clear: initial;
        width: initial;
        margin: initial;
        border-bottom: 1px solid lightgray;
    }
}




/* move category links to the top */
body:not(.page-Main_page) #bodyContent{
    display: flex;
    flex-direction: column; 
}
body:not(.page-Main_page) #contentSub {
    order: -2;
    margin-bottom: 0;
}
body:not(.page-Main_page) #catlinks {
    order: -1;
    /* The margin-bottom is consistent with div.archwiki-template-message */
    margin: 0.5em 0 1em;
}

body:not(.page-Main_page) p:first-child, .archwiki-template-meta-related-articles-start + p{
    margin-top: 0;
}