UNPKG

@c8y/style

Version:

Styles for Cumulocity IoT applications

62 lines (54 loc) 1.18 kB
/** * statusContainer - Component styles * * Note: Uses @size-* tokens for spacing where applicable. * * Intentionally hardcoded values: * - Component-specific dimensions: Fixed sizes for component layout * - Off-grid spacing: Component-specific positioning * - Border widths (1px, 2px, 3px): Standard borders * - Font-sizes: Typography * - Percentages: Layout */ .statusContainer { position: relative; display: inline-block; vertical-align: middle; text-align: center; font-size: 14px; overflow: hidden; height: @size-20; width: @size-20; border-radius: 50%; border: 0; background-image: none; background-color: var(--c8y-palette-high); padding: 0; box-shadow: inset 0 0 0 1px @component-border-color; .sendStatus, .pushStatus { line-height: 0; display: block; } .sendStatus { transform: translate(0,-2px); } .pushStatus { transform: translate(0,3px); } .statusUnknown { color: @gray-40; } .maintenanceStatus { display: block; margin: 0 auto; line-height: 1; } } .status-toggle { .c8y-switch+a { display: inline-block; vertical-align: top; line-height: 34px; } }