2015-11-19 07:05:57 +01:00
|
|
|
// =============================================================================
|
|
|
|
// Indicator light
|
|
|
|
// =============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
// =============================================================================
|
|
|
|
// Indicator light
|
|
|
|
// =============================================================================
|
2017-08-26 00:04:10 +02:00
|
|
|
$c-indicator-size: 0.625em;
|
|
|
|
$c-indicator-margin: 0.25rem;
|
2015-11-19 07:05:57 +01:00
|
|
|
|
|
|
|
.c-indicator {
|
|
|
|
display: inline-block;
|
|
|
|
border-radius: 50rem;
|
|
|
|
width: $c-indicator-size;
|
|
|
|
height: $c-indicator-size;
|
2017-08-26 00:04:10 +02:00
|
|
|
margin-top: -0.125rem;
|
2015-11-19 07:05:57 +01:00
|
|
|
margin-right: $c-indicator-margin;
|
|
|
|
font-size: 1rem;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
// =============================================================================
|
|
|
|
// States
|
|
|
|
// =============================================================================
|
|
|
|
.is-absent .c-indicator {
|
|
|
|
background: $color-state-absent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-live .c-indicator {
|
|
|
|
background: $color-state-live;
|
|
|
|
}
|
|
|
|
|
|
|
|
.is-draft .c-indicator {
|
|
|
|
background: $color-state-draft;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is hipster. But it works.
|
|
|
|
.is-live\+draft .c-indicator {
|
|
|
|
background: $color-state-draft;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
2017-08-11 01:13:57 +02:00
|
|
|
width: $c-indicator-size / 2;
|
2015-11-19 07:05:57 +01:00
|
|
|
height: $c-indicator-size;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
border-bottom-left-radius: 50rem;
|
|
|
|
border-top-left-radius: 50rem;
|
|
|
|
background: $color-state-live;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
transform-origin: 100% 50%;
|
|
|
|
}
|
|
|
|
}
|