Calendar Day

No notes defined.

<!-- Default -->
<div class="sds-calendarDay sds-stackSm">
    <div class="sds-calendarDay__header">
        <div class="sds-calendarDay__title h5">01</div>
    </div>

    <div class="sds-calendarDay__body">

        <span>07:45</span>

        <span class="sds-textHelper"></span>

    </div>

    <button class="stretched-link" data-toggle="modal" data-target="#calendarModal"></button>

</div>

<!-- Overtime Positive -->
<div class="sds-calendarDay sds-stackSm -overTimePositive">
    <div class="sds-calendarDay__header">
        <div class="sds-calendarDay__title h5">01</div>
    </div>

    <div class="sds-calendarDay__body">

        <span>07:45</span>

        <span class="sds-calendarDay__helper sds-textHelperSmall">+45 min</span>

    </div>

    <button class="stretched-link" data-toggle="modal" data-target="#calendarModal"></button>

</div>

<!-- Overtime Negative -->
<div class="sds-calendarDay sds-stackSm -overTimeNegative">
    <div class="sds-calendarDay__header">
        <div class="sds-calendarDay__title h5">01</div>
    </div>

    <div class="sds-calendarDay__body">

        <span>07:45</span>

        <span class="sds-calendarDay__helper sds-textHelperSmall">-45 min</span>

    </div>

    <button class="stretched-link" data-toggle="modal" data-target="#calendarModal"></button>

</div>

<!-- Icon Footer -->
<div class="sds-calendarDay sds-stackSm -alert -overTimeNegative">
    <div class="sds-calendarDay__header">
        <div class="sds-calendarDay__title h5">01</div>
    </div>

    <div class="sds-calendarDay__body">

        <span>07:45</span>

        <span class="sds-textHelper"></span>

    </div>

    <div class="sds-calendarDay__footer">
        <div class="sds-btnGroup -small">

            <span class="sds-iconCircle -warning10 -smaller" aria-hidden="true">

                <span class="sds-icon sds-icon-alert"></span>

            </span>

        </div>
    </div>

    <button class="stretched-link" data-toggle="modal" data-target="#calendarModal"></button>

    <div class="sds-calendarDay__alert sds-stackMd -alert -overTimeNegative">
        <div class="sds-stackSm">
            <h5 class="h5">Erreur d’entrée (16h12)</h5>
            <p class="sds-textHelper">Entrée sans accès info. Bâtiment Rousegaertchen.</p>
        </div>
        <div class="sds-stackSm">
            <h5 class="h5">Pénalité</h5>
            <p class="sds-textHelper">Pause obligatoire de 30 minutes à midi.</p>
        </div>
    </div>

</div>

<!-- Two Icon Footer -->
<div class="sds-calendarDay sds-stackSm -overTimeNegative">
    <div class="sds-calendarDay__header">
        <div class="sds-calendarDay__title h5">01</div>
    </div>

    <div class="sds-calendarDay__body">

        <span>07:45</span>

        <span class="sds-textHelper"></span>

    </div>

    <div class="sds-calendarDay__footer">
        <div class="sds-btnGroup -small">

            <span class="sds-iconCircle -warning10 -smaller" aria-hidden="true">

                <span class="sds-icon sds-icon-alert"></span>

            </span>

            <span class="sds-iconCircle -secondary10 -smaller sds-calendarDay__iconCircle" aria-hidden="true">

                <span class="sds-icon sds-icon-house"></span>

            </span>

        </div>
    </div>

    <button class="stretched-link" data-toggle="modal" data-target="#calendarModal"></button>

</div>

<!-- Day Off -->
<div class="sds-calendarDay sds-stackSm -dayOff">
    <div class="sds-calendarDay__header">
        <div class="sds-calendarDay__title h5">01</div>
    </div>

    <button class="stretched-link" data-toggle="modal" data-target="#calendarModal"></button>

</div>

<!-- Current Day -->
<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>

<!-- Holiday -->
<div class="sds-calendarDay sds-stackSm -holiday">
    <div class="sds-calendarDay__header">
        <div class="sds-calendarDay__title h5">01</div>
    </div>

    <div class="sds-calendarDay__footer">
        <div class="sds-btnGroup -small">

            <span class="sds-iconCircle -secondary10 -smaller sds-calendarDay__iconCircle" aria-hidden="true">

                <span class="sds-icon sds-icon-vacation"></span>

            </span>

        </div>
    </div>

    <button class="stretched-link" data-toggle="modal" data-target="#calendarModal"></button>

</div>

<!-- Half Holiday -->
<div class="sds-calendarDay sds-stackSm -holiday -halfDay">
    <div class="sds-calendarDay__header">
        <div class="sds-calendarDay__title h5">01</div>
    </div>

    <div class="sds-calendarDay__footer">
        <div class="sds-btnGroup -small">

            <span class="sds-iconCircle -secondary10 -smaller sds-calendarDay__iconCircle" aria-hidden="true">

                <span class="sds-icon sds-icon-vacation"></span>

            </span>

        </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>
  • Content:
    .#{$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 {
    	}
    
    }
  • URL: /components/raw/msp-calendar-day/_calendar-day.scss
  • Filesystem Path: components/my-spuerkeess/molecules/calendar-day/_calendar-day.scss
  • Size: 4.3 KB