User:Wookipan/Sandbox/Page.css

From Team Fortress Wiki
Jump to: navigation, 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.
/*
.wiki-tooltip {
    position: relative;
}

.wiki-tooltip .wiki-tooltip-content {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    color: #222222;
    background-color: #FFFCF7;
    margin-top: 20px;
    padding: 5px;
    font-weight: 400;
    -webkit-pointer-events: none;
    pointer-events: none;
    -webkit-transition: opacity .2s ease-in-out;
    transition: opacity .2s ease-in-out;
    white-space: nowrap;
    box-shadow: 0 30px 90px -20px rgb(0 0 0 / 30%), 0 0 1px 1px rgb(0 0 0 / 5%);
    opacity: 0;
    z-index: 9;
}

.wiki-tooltip .wiki-tooltip-content a {
    background: url('/w/images/a/a6/Tooltip_internal_link_icon.png') no-repeat left / 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    margin-left: 5px;
}

.wiki-tooltip:hover .wiki-tooltip-content {
    opacity: 1;
    -webkit-pointer-events: auto;
    pointer-events: auto;
}

.infobox-label .wiki-tooltip {
    position: relative;
    margin-left: 20px;
}

.infobox-label .wiki-tooltip:before {
    content: 'i';
    position: absolute;
    top: 0;
    left: -20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 12px;
    height: 12px;
    font-family: 'serif';
    border: 1px solid;
    border-radius: 100%;
    padding: 1px;
}
*/