UNPKG

@asi-ngtools/lib

Version:

This project is a little components library, simple to use, which will help you to simplify your project.

100 lines (85 loc) 1.95 kB
.asi-calendar-picker { display: flex; flex-direction: column; background-color: @asi-calendar-background-color; box-shadow: 0 0 2px black; max-width: 269px; .calendar-header { display: flex; flex-direction: row; align-items: center; asi-select { flex: 1 1 auto; border: none; .select .select-header { background-color: transparent; border: none; } &.select-month { min-width: 100px; } &.select-year { max-width: 90px; } } } .day-list { display: flex; flex-direction: row; border-top: 1px solid @asi-calendar-border-color; background-color: @asi-calendar-daylist-background-color; } .calendar-panel { display: flex; flex-wrap: wrap; flex-direction: row; justify-content: center; } .day-str { padding: 8px; width: 22px; min-width: 22px; max-width: 22px; display: flex; justify-content: center; align-items: center; color: @asi-calendar-daylist-color; box-sizing: content-box; } .day-item { .clean-button; padding: 7px; width: 22px; min-width: 22px; max-width: 22px; height: 22px; min-height: 22px; max-height: 22px; display: inline-flex; justify-content: center; align-items: center; box-sizing: content-box; border: 1px solid transparent; outline: none; &:focus { border: @asi-calendar-outline-border; border-radius: 25px; } &.enabled { cursor: pointer; } &.extra { color: @asi-calendar-extra-day-color; } &.disabled { color: @asi-calendar-disabled-day-color; background-color: transparent; } &.selected { background-color: @asi-calendar-selected-day-background-color; border-radius: 30px; color: @asi-calendar-selected-day-color; box-shadow: @asi-calendar-selected-day-boxshadow; } } }