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; }
/* 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 !important;
left: 50% !important;
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: 30px;
height: 30px;
background-size: 30px 30px;
}
div.ffxiv-action-icon.mid > div img {
top: -1px;
left: 74%;
}
div.ffxiv-action-icon.mid > div:after {
width: 36px;
height: 34px;
background-size: 36px 34px;
}
div.ffxiv-action-icon.mid > a {
width: 30px;
height: 30px;
}