# MediaWiki:Gadget-refStyle.css

From faraghaib
Jump to navigation Jump to search

Note: After publishing, 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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.

    /* following lines are for references section display.
    "ol.refernece {margin: 0} tested on all major browsers.
    ol.reference li {margin: } required so numbers are not hidden (might not be enough for 3-digit refs)
    refDisplayRows used by a gadget and  refDisplayScroll/Hide used by gadget only. */

    ol.references {
        margin: 0;
    }

    .mw-content-rtl ol.references, .mw-content-rtl ol.references {
        margin: 0;
    }

    ol.references li {
        margin:0 3em;
    }

    .refDisplayRows ol, ol.refDisplayRows{
        -webkit-column-width:32em;
        -moz-column-width:32em;
        column-width:32em;
    }

    ol.refDisplayScroll{
        max-height: 20em;
        overflow: auto;
        margin:0;
    }

    ol.refDisplayHide{display: none}

    .globegris {
    background: url('//upload.wikimedia.org/wikipedia/commons/1/10/Wikipedia-logo-v2-200px-transparent.png');
    }

    span.texhtml{
    white-space: nowrap;
    }

    .farsiReflsit .references{
    list-style:farsi;
    }

    .upper-roman-list ol {list-style: upper-roman; }
    .lower-roman-list ol {list-style: lower-roman; }
    .upper-latin-list ol {list-style: upper-latin; }
    .lower-latin-list ol {list-style: lower-latin; }
    .farsi-list ol {list-style:farsi;}

    @media screen {
      .references-small {
      overflow: auto;
      max-height: 300px;
      -webkit-column-count: auto !important;
      }
    }

Retrieved from "https://en.faraghaib.ir/w/index.php?title=MediaWiki:Gadget-refStyle.css&oldid=355"