User:Valento/vector.css
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.
/* DEBUG div.ffxiv-action-icon > div { border: 1px dashed green; } div.ffxiv-action-icon > div img { border: 1px dashed red; } div.ffxiv-action-icon > div:after { border: 1px dashed blue; } */ /** ACTION ICONS **/ div.ffxiv-action-icon { position: relative; display: inline-block; } /* Grey background */ 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; } /* Icon */ div.ffxiv-action-icon > div img { position: absolute; top: 2px; left: 50%; margin-left: -20px; display: block; z-index: 1; } /* Glassy overlay */ 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; } /* Icon link */ div.ffxiv-action-icon > a { width: 40px; height: 40px; position: absolute; top: 0; z-index: 3; left: 2px; text-decoration: none; } /* Mid-size */ div.ffxiv-action-icon.mid > div { width: 38px; height: 38px; background-size: 30px 30px; } div.ffxiv-action-icon.mid > div img { top: 1px; left: 60%; } div.ffxiv-action-icon.mid > div:after { width: 36px; height: 36px; background-size: 36px 36px; } div.ffxiv-action-icon.mid > a { width: 30px; height: 30px; } /* Small-size */ div.ffxiv-action-icon.small > div { width: 28px; height: 24px; background-size: 18px 20px; } div.ffxiv-action-icon.small > div img { top: 1px; left: 78%; } div.ffxiv-action-icon.small > div:after { width: 24px; height: 24px; background-size: 24px 24px; } div.ffxiv-action-icon.small > a { width: 20px; height: 20px; }