Time Picker: Default

Time picker gets initialized with flickity data attributes.
<div class="sds-timePicker">

    <table class="table table-borderless">
        <thead class="sds-timePicker__head">
            <tr class="sds-timePicker__headRow">

                <th class="sds-timePicker__headTitle sds-stackXs">
                    <div class="h4">Lun</div>
                    <span class="sds-timePicker__headDate sds-textHelper">28.03.2022</span>
                </th>

                <th class="sds-timePicker__headTitle sds-stackXs">
                    <div class="h4">Mar</div>
                    <span class="sds-timePicker__headDate sds-textHelper">29.03.2022</span>
                </th>

                <th class="sds-timePicker__headTitle sds-stackXs">
                    <div class="h4">Mer</div>
                    <span class="sds-timePicker__headDate sds-textHelper">30.03.2022</span>
                </th>

                <th class="sds-timePicker__headTitle sds-stackXs">
                    <div class="h4">Jeu</div>
                    <span class="sds-timePicker__headDate sds-textHelper">31.03.2022</span>
                </th>

                <th class="sds-timePicker__headTitle sds-stackXs">
                    <div class="h4">Ven</div>
                    <span class="sds-timePicker__headDate sds-textHelper">01.04.2022</span>
                </th>

            </tr>
        </thead>
        <tbody class="sds-timePicker__body">
            <tr>

                <td>
                    <ul class="sds-stackSm list-unstyled">

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary -isDisabled sds-choiceChip" disabled>

                                    <span class="sds-btn__text">10:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnCta -btnCtaPrimary sds-choiceChip">

                                    <span class="sds-btn__text">10:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">12:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">14:30</span>

                                </button>
                            </div>

                        </li>

                    </ul>
                </td>

                <td>
                    <ul class="sds-stackSm list-unstyled">

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary -isDisabled sds-choiceChip" disabled>

                                    <span class="sds-btn__text">10:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnCta -btnCtaPrimary sds-choiceChip">

                                    <span class="sds-btn__text">10:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">12:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">14:30</span>

                                </button>
                            </div>

                        </li>

                    </ul>
                </td>

                <td>
                    <ul class="sds-stackSm list-unstyled">

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary -isDisabled sds-choiceChip" disabled>

                                    <span class="sds-btn__text">10:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnCta -btnCtaPrimary sds-choiceChip">

                                    <span class="sds-btn__text">10:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">12:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">14:30</span>

                                </button>
                            </div>

                        </li>

                    </ul>
                </td>

                <td>
                    <ul class="sds-stackSm list-unstyled">

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary -isDisabled sds-choiceChip" disabled>

                                    <span class="sds-btn__text">10:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnCta -btnCtaPrimary sds-choiceChip">

                                    <span class="sds-btn__text">10:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">12:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">14:30</span>

                                </button>
                            </div>

                        </li>

                    </ul>
                </td>

                <td>
                    <ul class="sds-stackSm list-unstyled">

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">9:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary -isDisabled sds-choiceChip" disabled>

                                    <span class="sds-btn__text">10:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnCta -btnCtaPrimary sds-choiceChip">

                                    <span class="sds-btn__text">10:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">11:30</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">12:00</span>

                                </button>
                            </div>

                        </li>

                        <li>

                            <div class="sds-timePicker__appointmentCell">
                                <button type="button" class="sds-btn -btnBase -btnBaseSecondary sds-choiceChip">

                                    <span class="sds-btn__text">14:30</span>

                                </button>
                            </div>

                        </li>

                    </ul>
                </td>

            </tr>
        </tbody>
        <tfoot class="sds-timePicker__footer">
            <tr class="sds-timePicker__footerRow">

                <th class="sds-timePicker__footerTitle">
                    <div class="h4">Lun</div>
                </th>

                <th class="sds-timePicker__footerTitle">
                    <div class="h4">Mar</div>
                </th>

                <th class="sds-timePicker__footerTitle">
                    <div class="h4">Mer</div>
                </th>

                <th class="sds-timePicker__footerTitle">
                    <div class="h4">Jeu</div>
                </th>

                <th class="sds-timePicker__footerTitle">
                    <div class="h4">Ven</div>
                </th>

            </tr>
        </tfoot>
    </table>

</div>
<div class="{{ namespace }}timePicker{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}"{% if slider %} data-flickity='{ "cellAlign": "left", "contain": true, "freeScroll": true, "draggable": false, "pageDots": false }'{% endif %}>
	{% for i in range(0,weeks) %}
		<table class="table table-borderless">
			<thead class="{{ namespace }}timePicker__head">
				<tr class="{{ namespace }}timePicker__headRow">
					{% for key, item in tableTitles %}
						<th class="{{ namespace }}timePicker__headTitle {{ namespace }}stackXs">
							<div class="h4">{{ item.title }}</div>
							<span class="{{ namespace }}timePicker__headDate {{ namespace }}textHelper">{{ item.date }}</span>
						</th>
					{% endfor %}
				</tr>
			</thead>
			<tbody class="{{ namespace }}timePicker__body">
				<tr>
					{% for i in range(0, daysPerWeek) %}
						<td>
							<ul class="{{ namespace }}stackSm list-unstyled">
								{% for key, item in tableTimes %}
									<li>
										{% if item.checked %}
											<div class="{{ namespace }}timePicker__appointmentCell">
												{% render '@choice-chip--checked',{
													text: item.time
												}, true %}
											</div>
										{% elseif item.disabled %}
											<div class="{{ namespace }}timePicker__appointmentCell">
												{% render '@choice-chip--disabled',{
													text: item.time
												}, true %}
											</div>
										{% else %}
											<div class="{{ namespace }}timePicker__appointmentCell">
												{% render '@choice-chip',{
													text: item.time
												}, true %}
											</div>
										{% endif %}
									</li>
								{% endfor %}
							</ul>
						</td>
					{% endfor %}
				</tr>
			</tbody>
			<tfoot class="{{ namespace }}timePicker__footer">
				<tr class="{{ namespace }}timePicker__footerRow">
					{% for key, item in tableTitles %}
						<th class="{{ namespace }}timePicker__footerTitle">
							<div class="h4">{{ item.title }}</div>
						</th>
					{% endfor %}
				</tr>
			</tfoot>
		</table>
	{% endfor %}
</div>
  • Content:
    .#{$namespace}timePicker {
    
    	/* 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 */
    
    
    	/* 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 */
    
    	// timePicker TH
    	TH {
    		text-align: center;
    		/* @TODO remove old styles overrides important start */
    		padding-left: map-deep-get($token-spacer-inset-map, "sm") !important;
    		padding-right: map-deep-get($token-spacer-inset-map, "sm") !important;
    		/* remove old styles overrides important end */
    	}
    	
    	TD {
    		padding: 0 !important;
    	}
    
    	THEAD TH {
    		
    		/* @TODO remove old styles overrides start */
    		font-family: map-deep-get($token-font-family-map, "text");
    		/* remove old styles overrides end */
    
    		padding-top: 0 !important;
    		padding-bottom: map-deep-get($token-spacer-inset-map, "lg") !important;
    	}
    
    	TFOOT TH {
    		padding: map-deep-get($token-spacer-inset-map, "lg") 0 0 !important;
    	}
    
    	&__appointmentCell {
    
    		display: flex;
    		align-items: center;
    		justify-content: center;
    
    	}
    
    	&__headDate {
    
    		@include custom-prop-fallback("color", "sys-color-text-primary-muted");
    
    	}
    
    
    
    	/* modifiers */
    
    	// timePicker -altStyle
    
    	&[data-flickity] {
    		padding: 0 map-deep-get($token-sizes-unit-map, "40");
    	}
    
    	/* random parent element */
    	/*
    	*
    	*   Syntax : .randomParentElt & {}
    	*
    	*/
    
    	/* Pseudo Classes */
    
    	&:hover {
    		@media (hover: hover) {
    
    		}
    	}
    
    	&:focus {
    	}
    
    	&:active {
    	}
    
    	&:focus,
    	&:active {
    	}
    
    }
  • URL: /components/raw/snet-time-picker/_time-picker.scss
  • Filesystem Path: components/snet/organisms/time-picker/_time-picker.scss
  • Size: 1.8 KB