No notes defined.
<div class="sds-dayOverview sds-stackLg -anomaly">
<div class="sds-dayOverview__contentProgress">
<div class="sds-dayOverview__progress" style="height: 73%;"></div>
</div>
<div class="sds-dayOverview__text sds-textBold">
<div>Mar</div>
<div>01.04</div>
</div>
</div>
<div class="{{ namespace }}dayOverview {{ namespace }}stackLg{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
<div class="{{ namespace }}dayOverview__contentProgress">
<div class="{{ namespace }}dayOverview__progress" style="height: {{ height }};"{% for attrKey, attr in attrs %} {{ attrKey }}="{{ attr }}"{% endfor %}></div>
</div>
<div class="{{ namespace }}dayOverview__text {{ namespace }}textBold">
<div>{{ textWeekDay }}</div>
<div>{{ textMonthDay }}</div>
</div>
</div>
.#{$namespace}dayOverview {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* variables specific to current element */
$element-specific-variables: "";
/* properties of current element + media queries */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
/* Pseudo Elements */
&::before {
}
&::after {
}
/*
Include elements that are linked to the current element but have to reside at the root level of the stylesheet
(e.g: keyframes)
*/
@at-root {
}
/* children - write selector in full in comments in order to facilitate search */
// dayOverview__contentProgress
&__contentProgress {
display: flex;
flex-direction: column;
justify-content: flex-end;
height: 100px;
position: relative;
z-index: z("zero");
}
&__progress {
width: map-deep-get($token-sizes-unit-map, "8");
border-radius: map-deep-get($token-radius-map, "8");
@include custom-prop-fallback("background-color", "sys-color-background-status-success-100");
border: $border-width*2 solid;
@include custom-prop-fallback("border-color", "sys-color-elevation-surface-flat");
box-sizing: content-box;
position: relative;
&::before {
content: "";
position: absolute;
z-index: z("negative");
width: map-deep-get($token-sizes-unit-map, "24");
top: -(map-deep-get($token-spacer-unit-map, "8"));
bottom: -(map-deep-get($token-spacer-unit-map, "8"));
left: 50%;
transform: translateX(-50%);
border-radius: map-deep-get($token-radius-map, "16");
opacity: 0;
transition: opacity 0.15s linear;
@include custom-prop-fallback("background-color", "sys-color-background-status-success-30");
}
// expanding the hover zone
&::after {
content: "";
position: absolute;
z-index: z("low");
top: -(map-deep-get($token-spacer-unit-map, "8"));
right: -(map-deep-get($token-spacer-unit-map, "12"));
bottom: -(map-deep-get($token-spacer-unit-map, "8"));
left: -(map-deep-get($token-spacer-unit-map, "12"));
}
}
&__text {
text-align: center;
font-size: map-deep-get($token-font-size-map, "body", "3xs");
line-height: 11px;
text-transform: uppercase;
@include custom-prop-fallback("color", "sys-color-text-primary-muted");
}
/* modifiers */
// dayOverview -altStyle
&.-dayOff {
#{$self}__text {
@include custom-prop-fallback("color", "sys-color-background-primary-30");
}
#{$self}__progress {
@include custom-prop-fallback("background-color", "sys-color-background-primary-6");
&::before {
content: none;
}
}
}
&.-anomaly {
#{$self}__progress {
@include custom-prop-fallback("background-color", "sys-color-background-status-warning-100");
&::before {
@include custom-prop-fallback("background-color", "sys-color-background-status-warning-30");
}
}
}
&.-overtime {
#{$self}__progress {
@include custom-prop-fallback("background-color", "sys-color-background-status-success-120");
}
}
&.-danger {
#{$self}__progress {
@include custom-prop-fallback("background-color", "sys-color-background-status-danger-100");
&::before {
@include custom-prop-fallback("background-color", "sys-color-background-status-danger-30");
}
}
}
&.-shorttime,
&.shorttime {
#{$self}__progress {
@include custom-prop-fallback("background-color", "sys-color-background-status-success-60");
}
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
#{$self}__progress {
&::before {
opacity: 1;
}
}
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}