Template:Fitting grid/styles.css
Appearance
/*
* Template:Fitting grid, after the game's ship tooltip grid (ItemTooltip.uss): outlined slot
* cells standing on the page, hardpoints marked with the game's hardpoint icons, which the wiki's
* Docker image serves from the game's own files. Pointing at a cell or a legend line, or
* focusing it with a click, tap or Tab, shows what the slot holds in a panel along the grid's
* top edge, so it stays on the page whichever cell it is for. Where the page has room beside the
* drawing, MediaWiki:Common.js moves the panel into the space above the cargo hold.
*/
.citadel-fit {
position: relative;
display: inline-block;
padding: 10px 0;
color: #d9d9d9;
font-family: 'VCR OSD Neue', monospace;
font-size: 12px;
line-height: 1.35;
text-transform: uppercase;
}
/* The squares row stands on its bottom line and the labels row hangs from its top line; the
fitting grid's column is on the left and the cargo hold's on the right. Vector shows tables
as scrolling blocks on narrow screens, so this one is set back to a table. */
.citadel-fit-layout {
display: table;
margin: 0;
border: 0;
border-collapse: collapse;
background: transparent;
}
.citadel-fit-layout td {
padding: 0;
border: 0;
vertical-align: bottom;
}
.citadel-fit-layout td + td {
padding-left: 20px;
}
.citadel-fit-labels td {
padding-top: 10px;
vertical-align: top;
}
.citadel-fit-row {
display: flex;
}
.citadel-fit-cell {
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
margin: 1px;
box-sizing: border-box;
border: 1px solid rgba(107, 122, 122, 0.72);
background: rgba(83, 96, 96, 0.12);
cursor: help;
outline: none;
}
.citadel-fit-empty {
border-color: transparent;
background: transparent;
cursor: default;
}
.citadel-fit-cell:hover,
.citadel-fit-cell:focus {
border-color: #00a4b9;
background: rgba(0, 164, 185, 0.18);
}
.citadel-fit-icon {
display: block;
width: 14px;
height: 14px;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
opacity: 0.85;
}
.citadel-fit-battery .citadel-fit-icon {
background-image: url('/resources/assets/hardpoints/hardpoint-battery.svg');
}
.citadel-fit-subsystem .citadel-fit-icon {
background-image: url('/resources/assets/hardpoints/hardpoint-subsystem.svg');
}
.citadel-fit-propulsion .citadel-fit-icon {
background-image: url('/resources/assets/hardpoints/hardpoint-propulsion.svg');
}
.citadel-fit-harpoon .citadel-fit-icon {
background-image: url('/resources/assets/hardpoints/hardpoint-harpoon.svg');
}
.citadel-fit-tip {
display: none;
position: absolute;
right: 0;
bottom: 100%;
left: 0;
z-index: 5;
margin-bottom: 4px;
padding: 8px 10px;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgb(10, 12, 14);
color: #d9d9d9;
font-size: 11px;
text-align: left;
white-space: normal;
}
.citadel-fit-cell:hover .citadel-fit-tip,
.citadel-fit-cell:focus .citadel-fit-tip,
.citadel-fit-key:hover .citadel-fit-tip,
.citadel-fit-key:focus .citadel-fit-tip {
display: block;
}
.citadel-fit-tip-name {
display: block;
margin-bottom: 4px;
color: #00a4b9;
font-weight: bold;
}
.citadel-fit-tip-text {
display: block;
}
/* One kind to a line, as the game's slot legend lists them. */
.citadel-fit-legend {
display: flex;
flex-direction: column;
color: rgba(217, 217, 217, 0.6);
}
.citadel-fit-key {
display: flex;
align-items: center;
margin-bottom: 2px;
white-space: nowrap;
cursor: help;
outline: none;
}
.citadel-fit-key:hover,
.citadel-fit-key:focus {
color: #d9d9d9;
}
.citadel-fit-key .citadel-fit-icon {
width: 12px;
height: 12px;
margin-right: 4px;
}
/* The cargo hold, in smaller squares; safety cargo cells in the game's amber. */
.citadel-fit-heading {
margin: 0 0 4px;
color: rgba(217, 217, 217, 0.6);
}
.citadel-fit-cargo .citadel-fit-cell {
width: 14px;
height: 14px;
}
.citadel-fit-cell.citadel-fit-safety {
border-color: rgba(166, 120, 62, 0.9);
background: rgba(56, 39, 17, 0.76);
}
.citadel-fit-cell.citadel-fit-safety:hover,
.citadel-fit-cell.citadel-fit-safety:focus {
border-color: rgb(255, 178, 51);
background: rgba(255, 178, 51, 0.2);
}
.citadel-fit-safety .citadel-fit-tip-name {
color: rgb(255, 178, 51);
}
/* A core slot has no icon in the game; the legend keys it with an outlined cell instead. */
.citadel-fit-key.citadel-fit-core .citadel-fit-icon,
.citadel-fit-key.citadel-fit-cargo .citadel-fit-icon,
.citadel-fit-key.citadel-fit-safety .citadel-fit-icon {
box-sizing: border-box;
border: 1px solid rgba(107, 122, 122, 0.72);
background: rgba(83, 96, 96, 0.12);
opacity: 1;
}
.citadel-fit-key.citadel-fit-safety .citadel-fit-icon {
border-color: rgba(166, 120, 62, 0.9);
background: rgba(56, 39, 17, 0.76);
}