No notes defined.
<div class="sds-calendarDay sds-stackSm -currentDay">
<div class="sds-calendarDay__header">
<div class="sds-calendarDay__title h5">01</div>
</div>
<div class="sds-calendarDay__body">
<span>07:45</span>
<div class="sds-progress progress -small sds-calendarDay__progress">
<div class="progress-bar sds-progress__bar -black" role="progressbar" style="width: 70%" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<button class="stretched-link" data-toggle="modal" data-target="#calendarModal"></button>
</div>
<div class="{{ namespace }}calendarDay {{ namespace }}stackSm{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
<div class="{{ namespace }}calendarDay__header">
<div class="{{ namespace }}calendarDay__title h5">{{ numberDate }}</div>
</div>
{% if timer %}
<div class="{{ namespace }}calendarDay__body">
{% if time %}
<span>{{ time }}</span>
{% endif %}
{% if currentDay %}
{% render "@snet-progress--small-black",{classes: [namespace+"calendarDay__progress"]},true %}
{% elseif timeHelper %}
<span class="{{ namespace }}calendarDay__helper {{ namespace}}textHelperSmall">{{ timeHelper }}</span>
{% else %}
<span class="{{ namespace }}textHelper">{{ text }}</span>
{% endif %}
</div>
{% endif %}
{% if footer %}
<div class="{{ namespace }}calendarDay__footer">
<div class="{{ namespace }}btnGroup -small">
{% if iconWarning %}
{% render '@icon-circle-regular--warning-10-small',{
icon: "icon-alert"
}, true %}
{% endif %}
{% if iconSecondary %}
{% render '@icon-circle-regular--secondary-10-small',{
icon: icon,
classes: [namespace + "calendarDay__iconCircle"]
}, true %}
{% endif %}
</div>
</div>
{% endif %}
<button class="stretched-link" data-toggle="modal" data-target="#calendarModal"></button>
{% if alert %}
<div class="{{ namespace }}calendarDay__alert {{ namespace }}stackMd{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
<div class="{{ namespace }}stackSm">
<h5 class="h5">Erreur d’entrée (16h12)</h5>
<p class="{{ namespace }}textHelper">Entrée sans accès info. Bâtiment Rousegaertchen.</p>
</div>
<div class="{{ namespace }}stackSm">
<h5 class="h5">Pénalité</h5>
<p class="{{ namespace }}textHelper">Pause obligatoire de 30 minutes à midi.</p>
</div>
</div>
{% endif %}
</div>
.#{$namespace}calendarDay {
/* 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 */
position: relative;
display: flex;
flex-direction: column;
min-height: 128px;
border-radius: map-deep-get($token-radius-map, "8");
@include custom-prop-fallback("background-color", "comp-box-background-color");
padding: map-deep-get($token-spacer-unit-map, "8");
/* 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 */
// calendarDay__header
&__header {
text-align: right;
+ #{$self}__footer {
margin-top: auto;
}
}
&__body {
margin-left: map-deep-get($token-spacer-unit-map, "8");
flex-grow: 1;
}
&__helper {
@include custom-prop-fallback("color", "sys-color-text-primary-vivid");
display: block;
}
&__footer {
display: flex;
justify-content: flex-end;
}
&__progress {
margin-top: map-deep-get($token-spacer-unit-map, "8");
}
&__alert {
display: none;
position: absolute;
left: calc(100% + map-deep-get($token-spacer-unit-map, "16"));
top: 50%;
transform: translateY(-50%);
width: 280px;
padding: map-deep-get($token-spacer-unit-map, "16");
background-color: map-deep-get($token-color-grayscale-map, "0");
border-radius: map-deep-get($token-radius-map, "8");
box-shadow: $dropdown-box-shadow;
z-index: map-deep-get($token-z-index-map, "popover");
}
/* modifiers */
// calendarDay -altStyle
&.-dayOff {
cursor: default;
@include custom-prop-fallback("background-color", "sys-color-background-neutral-6");
#{$self}__title {
@include custom-prop-fallback("color", "sys-color-text-neutral-vivid");
}
}
&.-currentDay {
#{$self}__title {
width: map-deep-get($token-sizes-unit-map, "24");
height: map-deep-get($token-sizes-unit-map, "24");
border-radius: map-deep-get($token-radius-map, "circle");
@include custom-prop-fallback("background-color", "sys-color-background-secondary-100");
@include custom-prop-fallback("color", "sys-color-text-neutral-inverse");
display: inline-flex;
align-items: center;
justify-content: center;
}
}
&.-holiday {
$gradient-width: 2px;
$gradient-spacing: 16px;
background-image:
repeating-linear-gradient(
135deg,
#{map-deep-get($token-color-brand-map, "secondary", "06")},
#{map-deep-get($token-color-brand-map, "secondary", "06")}, $gradient-width,
map-deep-get($token-color-grayscale-map, "0") $gradient-width,
map-deep-get($token-color-grayscale-map, "0") $gradient-spacing /* determines size */
);
cursor: default;
&.-halfDay {
background-size: 100% 50%;
background-repeat: no-repeat;
}
}
&.-alert {
&:hover {
@media (hover: hover) {
#{$self}__alert {
display: block;
}
}
}
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
@include custom-prop-fallback("background-color", "comp-box-sunken-background-color");
&.-overTimeNegative {
#{$self}__helper {
@include custom-prop-fallback("color", "sys-color-text-status-danger-vivid");
}
}
&.-overTimePositive {
#{$self}__helper {
@include custom-prop-fallback("color", "sys-color-text-status-success-vivid");
}
}
#{$self}__iconCircle {
&.-secondary10 {
@include custom-prop-fallback("background-color", "sys-color-elevation-surface-flat");
}
}
&.-dayOff {
@include custom-prop-fallback("background-color", "sys-color-background-neutral-6");
}
&.-holiday {
@include custom-prop-fallback("background-color", "comp-box-background-color");
#{$self}__iconCircle {
&.-secondary10 {
@include custom-prop-fallback("background-color", "sys-color-background-primary-10");
}
}
}
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}