Difference between revisions of "MediaWiki:Common.css"

From wiki.samerhijazi.net
Jump to navigation Jump to search
(Created page with "/* * Override https://projects.archlinux.org/vhosts/wiki.archlinux.org.git/tree/resources/src/mediawiki.skinning/elements.css#n208 * which was introduced in MediaWiki becaus...")
 
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
/*
+
#ca-talk { display:none!important; }
* Override https://projects.archlinux.org/vhosts/wiki.archlinux.org.git/tree/resources/src/mediawiki.skinning/elements.css#n208
+
#ca-history { display:none!important; }
* which was introduced in MediaWiki because of at least https://phabricator.wikimedia.org/T2260 and https://phabricator.wikimedia.org/T103780
+
#ca-watch { display:none!important; }
* but those problems should not affect us
+
#ca-unwatch { display:none!important; }
*/
+
/* #ca-delete { display:none!important; } */
 
+
#bodyContent a.external[href ^="http://wiki.samerhijazi.net"],
pre,
+
#bodyContent a.external[href ^="http://wiki.samerhijazi.net"] {
.mw-code {
 
    white-space: pre;
 
}
 
 
 
 
 
/*
 
* Remove icon from links to wiki.archlinux.org because they are sometimes
 
* used for example to link to edit diffs or in status templates for the
 
* "Discuss" link
 
*/
 
 
 
#bodyContent a.external[href ^="http://wiki.archlinux.org"],
 
#bodyContent a.external[href ^="https://wiki.archlinux.org"] {
 
 
     background: none;
 
     background: none;
 
     padding-right: 0;
 
     padding-right: 0;
 
}
 
}
  
 
+
pre.code {
/* Template:Pkg, Template:AUR, Template:Grp, Template:Man */
+
background-color: #333;
 
+
border: 1px solid #ccc;
span.archwiki-template-pkg,
+
border-radius: 4px;
span.archwiki-template-man {
+
color: #fff;
    font-family: monospace;
+
display: block;
 +
font-size: 13px;
 +
line-height: 1.4;
 +
margin: 0 0 10px;
 +
margin: 0 0 10px;
 +
overflow: auto;
 +
padding: 20px 30px;
 +
padding: 9.5px;
 +
word-break: break-all;
 +
word-wrap: break-word;
 +
}
 +
pre.text {
 +
background-color: #1C6EA4;
 +
border: 1px solid #ccc;
 +
border-radius: 4px;
 +
color: #fff;
 +
display: block;
 +
font-size: 13px;
 +
line-height: 1.4;
 +
margin: 0 0 10px;
 +
margin: 0 0 10px;
 +
overflow: auto;
 +
padding: 20px 30px;
 +
padding: 9.5px;
 +
word-break: break-all;
 +
word-wrap: break-word;
 
}
 
}
  
 
+
span.k {
/* Note, Warning, Tip templates */
+
     color: #6ab825;
 
+
     font-weight: bold;
div.archwiki-template-box {
 
     padding: 5px;
 
    border: thin solid black;
 
    margin: 0.5em 0;
 
    overflow: hidden; }
 
    div.archwiki-template-box.archwiki-template-box-note {
 
        background-color: #ddf;
 
        border-color: #bbd; }
 
    div.archwiki-template-box.archwiki-template-box-warning {
 
        background-color: #fdd;
 
        border-color: #dbb; }
 
     div.archwiki-template-box.archwiki-template-box-tip {
 
        background-color: #dfd;
 
        border-color: #bdb; }
 
 
 
 
 
/* Status templates */
 
 
 
div.archwiki-template-message {
 
    position: relative;
 
    overflow: hidden; /* This e.g. prevents the template from overlapping the related articles box;
 
                        using 'auto' would display a vertical scrollbar in e.g. Chromium and Opera:
 
                        increasing min-height would fix it too, but this seems safer and more elegant */
 
    min-height: 4.6em; /* Needed to better host the two icons at the sides */
 
    margin-bottom: 1em;
 
    background-color: #f9faff;
 
    border: 1px solid #d7dfe3;
 
    padding: 0 100px;
 
    text-align: center; }
 
    div.archwiki-template-message > p > a {
 
        display: block;
 
        position: absolute;
 
        top: 5px; }
 
        div.archwiki-template-message > p > a:first-of-type {
 
            left: 26px; /* the icon is 48px, centering in the 100px padding */ }
 
        div.archwiki-template-message > p > a:last-of-type {
 
            right: 26px; /* the icon is 48px, centering in the 100px padding */ }
 
    div.archwiki-template-message > div {
 
        font-size: 90%; }
 
    div.archwiki-template-message ul,
 
    div.archwiki-template-message ol {
 
        text-align: left; }
 
 
 
 
 
/* Related articles templates */
 
 
 
div.archwiki-template-meta-related-articles-start {
 
    float: right;
 
    clear: right;
 
    width: 25%;
 
    margin: 0 0 0.5em 0.5em; }
 
    div.archwiki-template-meta-related-articles-start > p {
 
        background: #333;
 
        color: white;
 
        padding: 0.2em;
 
        border-bottom:5px #08c solid;
 
        margin:0;
 
        text-align:center;
 
        font-weight:bold; }
 
    div.archwiki-template-meta-related-articles-start > ul {
 
        list-style-type: none;
 
        list-style-image: none;
 
        /* Resetting the margin of ul is necessary for compatibility among browsers */
 
        margin: 0;
 
        padding: 0.3em; }
 
        div.archwiki-template-meta-related-articles-start > ul > li {
 
            padding: 0.4em 0;
 
            /* line-height:1 makes wrapped long links distinguishable */
 
            line-height: 1; }
 
 
 
 
 
/*
 
* Main Page columns
 
* Keep coherent with https://github.com/archlinux/archwiki/search?q=deviceWidthTablet
 
*/
 
 
 
@media screen and ( min-width: 721px ) {
 
    div.archwiki-main-page-columns {
 
        column-count: 2; }
 
        div.archwiki-main-page-columns > * {
 
            page-break-inside: avoid;
 
            /* fix alignment of list items in multi-column layout, see https://stackoverflow.com/a/42349512/4180822 */
 
            display: inline-block;
 
            width: 100%; }
 
 
}
 
}

Latest revision as of 14:08, 10 October 2021

#ca-talk { display:none!important; }
#ca-history { display:none!important; }
#ca-watch { display:none!important; }
#ca-unwatch { display:none!important; }
/* #ca-delete { display:none!important; } */
#bodyContent a.external[href ^="http://wiki.samerhijazi.net"],
#bodyContent a.external[href ^="http://wiki.samerhijazi.net"] {
    background: none;
    padding-right: 0;
}

pre.code {
background-color: #333;
border: 1px solid #ccc;
border-radius: 4px;
color: #fff;
display: block;
font-size: 13px;
line-height: 1.4;
margin: 0 0 10px;
margin: 0 0 10px;
overflow: auto;
padding: 20px 30px;
padding: 9.5px;
word-break: break-all;
word-wrap: break-word;
}
pre.text {
background-color: #1C6EA4;
border: 1px solid #ccc;
border-radius: 4px;
color: #fff;
display: block;
font-size: 13px;
line-height: 1.4;
margin: 0 0 10px;
margin: 0 0 10px;
overflow: auto;
padding: 20px 30px;
padding: 9.5px;
word-break: break-all;
word-wrap: break-word;
}

span.k {
    color: #6ab825;
    font-weight: bold;
}