Modul:Boolean/styles.css
Aus Star Citizen Wiki
Weitere Optionen
.t-boolean {
display: inline-flex;
align-items: center;
vertical-align: middle;
}
/*
* Per-state colour. The glyph is a Module:Icon mask filled with
* `background-color: currentColor`, so setting `color` here tints it. "No" is
* grey (--color-disabled), not red: absence of a trait is neutral, not an error
* -- matching Entity/Availability.
*/
.t-boolean--yes {
color: var(--color-success);
}
.t-boolean--no {
color: var(--color-disabled);
}
.t-boolean--unknown {
color: var(--color-warning);
}
/*
* Visually-hidden accessible text: the icon is a CSS mask with no text of its
* own, so the state word lives here for screen readers, translation tools, and
* reader modes. Standard clip pattern (same as Entity/Availability).
*/
.t-boolean__sr {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}