User:Bullenwächter/common.css

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.
/* @import url("https://www.wikidata.org/w/index.php?title=User:Jon_Harald_Søby/gridify.css&action=raw&ctype=text/css"); */
/* @import url("https://www.wikidata.org/w/index.php?title=User:Jon_Harald_Søby/compact_items.css&action=raw&ctype=text/css"); */

@import url(/w/index.php?title=User:Nikki/NarrowUI.css&action=raw&ctype=text/css);
.wb-item {
  /* use a grid layout for item pages */
  display: grid;
  
  /* .wb-item contains two divs, one with the labels and statements, the other
   * with the sitelinks, so give the grid two columns, set the width of the
   * first column automatically and set the width of the second column to 25%
   * of the window width, with a minimum value of 15em (arbitrary value based
   * on what I think looks ok) and maximum value of 26em (the width on
   * .wikibase-sitelinkgrouplistview when the window at least 1570px wide */
  grid-template-columns: auto clamp(15em, 25vw, 26em);

  /* make sure there is space between the columns */
  grid-gap: 2em;
}

.wb-item .wikibase-entityview-side {
  /* put the div containing the sitelinks in the second column */
  grid-column: 2;
}


/*from argyleink off Twitter*/
@media (prefers-reduced-motion: no-preference) {
  :focus {
    transition: outline-offset .25s ease;
    outline-offset: 5px;
  }
}

/* https://en.wikipedia.org/wiki/Wikipedia:Keyboard_shortcuts */
/* a:hover[accesskey]:before {
    content: " " attr(accesskey) " ";
    text-transform: uppercase;
    white-space: pre;
    font-family: sans-serif;
    margin-right: 0.5ex;
}
*/
/* from [[User:Nikki/common.css]] */

/* .wb-preferred { background-color: lavender } */
/* .wb-deprecated { background-color: mistyrose } */

/* trying to save some space: value <> references */
.ui-toggler.ui-state-default, .wikibase-statementview-references-heading {
  margin-top: 0;
}
/* trying to save some space: spacing between block of statements. For continuous mode set to -1px */
.wikibase-statementgroupview {
  margin-bottom: 0.6em;
}
/* trying to save some space: tricks from @jhosby */