MediaWiki:Common.css

From Skyrat
Revision as of 18:52, 8 October 2020 by Yawet330 (Sọ̀rọ̀ | contribs) (Testing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */

.collapsible {
  display: block;
  margin-bottom: 1rem;
}

  .collapser {
    cursor: pointer;
    border: 1px transparent dotted;
  }

  .arrow {
    margin-left: 0.5em;
    display: inline-block;
    transform: rotate(90deg);
    transition: transform .25s ease-out;
  }

  input:checked ~ .arrow,
  input:checked ~ .collapser .arrow {
    transform: rotate(270deg);
  }

  .collapsed {
    font-size: 0;
    margin: 0;
    opacity: 0;
    padding: 0;

    /* fade out, then shrink */
    transition:   
      opacity .25s,
      margin .5s 0.25s,
      font-size .5s 0.25s,
      padding .5s .25s;
  }

  input:checked ~ .collapsed {
    font-size: 16px;
    opacity: 1;
    height: auto;
    padding: 5px 0;
    
    /* grow, then fade in */
    transition:   
      margin .25s,
      padding .25s,
      font-size .25s,
      opacity .5s .25s;
  }