User:Valento/vector.css

From Final Fantasy XIV Online Wiki
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: Press Ctrl-F5.
div.ffxiv-action-icon { position: relative; }

div.ffxiv-action-icon * { border: 1px dashed red; }

div.ffxiv-action-icon > div {
    position: relative;
    width: 48px;
    height: 48px;
    display: inline-block;
    background: url(/mediawiki/images/2/2b/Action_background.png) no-repeat 4px 2px;
    -moz-background-size: 40px 40px;
    -o-background-size: 40px 40px;
    -webkit-background-size: 40px 40px;
    background-size: 40px 40px;
    vertical-align: middle;
}

div.ffxiv-action-icon > div img {
    position: absolute;
    top: 2px !important;
    left: 50% !important;
    margin-left: -20px;
    display: block;
    z-index: 1;
}

div.ffxiv-action-icon > div:after {
    content: "";
    background: url(/mediawiki/images/d/d9/Action_overlay_glassy.png) no-repeat;
    width: 48px;
    height: 48px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

div.ffxiv-action-icon > a {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    z-index: 3;
    left: 2px;
    text-decoration: none;
}