MediaWiki:Vector.css

From GOT Winter is Coming M
Jump to navigation Jump to 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 / Edge: 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.
/* CSS placed here will affect users of the Vector skin */


/* TOOLTIP stuff adapted from https://www.w3schools.com/css/css_tooltip.asp  */

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 2px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;

  width: 240px;
  bottom: 100%;
  left: 50%;
  margin-left: -120px; /* Use half of the width to center the tooltip */

  background-color: #F8F9FA;
/*  color: #fff;    */
  text-align: center;
  padding: 5px 0;
  border: 1px solid steelblue;



  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px; /* border-width = size of the arrow. Set margin-left to the same value to keep the arrow centered. */
  border-style: solid;
  border-color: black transparent transparent transparent; /* this trick makes it look like an arrow */
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}