/* ========================================================================== $BASE-PICKER ========================================================================== */ /** * Note: the root picker element should *NOT* be styled more than what's here. */ /** * The picker input element. */ .picker__input { cursor: default; } /** * When the picker is opened, the input element is "activated". */ .picker__input.picker__input--active { border-color: $pickerinput-active-border-color; } /** * Note: the root picker element should *NOT* be styled more than what's here. */ .picker { position: absolute; z-index: 10000; font-size: $picker-font-size; line-height: $picker-font-line-height; color: $black; text-align: center; user-select: none; /** * The holder is the only "scrollable" top-level container element. The holder should overlay the entire screen. */ .picker__holder { position: fixed; width: 100%; overflow-y: auto; // stylelint-disable property-no-unknown overflow-scrolling: touch; @include transition-main($picker-holder-transition-bg, $picker-holder-transition-top); backface-visibility: hidden; } /*! * Default mobile-first, responsive styling for pickadate.js * Demo: http://amsul.github.io/pickadate.js */ /** * Note: the root picker element should *NOT* be styled more than what's here. */ /** * Make the holder and frame fullscreen. */ .picker__holder, .picker__frame { top: 100%; right: 0; bottom: 0; left: 0; } /** * The frame that bounds the box contents of the picker. */ .picker__frame { position: absolute; // picker width width: $picker-frame-width; min-width: $picker-frame-min-width; max-width: $picker-frame-max-width; max-height: $picker-frame-max-height; margin: 0 auto; filter: $picker-frame-filter; opacity: 0; @include transition-main($picker-frame-transition); @media (min-height: $pickerframe-wrap-box-breakpoint) { top: auto; bottom: $picker-frame-media-bottom; max-height: $picker-frame-media-max-height; overflow: visible; } @media (min-height: $pickerframe-mb-breakpoint) { margin-bottom: $picker-frame-media-mb; } /** * The wrapper sets the stage to vertically align the box contents. */ .picker__wrap { display: table; width: 100%; height: 100%; @media (min-height: $pickerframe-wrap-box-breakpoint) { display: block; } } } /** * The box contains all the picker contents. */ .picker__box { display: table-cell; vertical-align: middle; background: $white; @media (min-height: $pickerframe-wrap-box-breakpoint) { display: block; border: $picker-box-border solid $picker-box-border-color; border-top-color: $picker-box-border-top-color; border-bottom-width: 0; border-radius: $picker-box-border-radius; box-shadow: $picker-box-box-shadow; } } } /** * When the picker opens... */ .picker--opened { .picker__holder { top: 0; // background: transparent; zoom: $picker-opened-holder-zoom; background: $picker-opened-holder-bg; @include transition-main($picker-opened-holder-transition); } .picker__frame { top: 0; filter: $picker-opened-frame-filter; opacity: $picker-opened-frame-opacity; @media (min-height: $pickerframe-pos-breakpoint) { top: $picker-opened-frame-media-top; bottom: auto; } } } /** * For `large` screens, transform into an inline picker. */ /* ========================================================================== CUSTOM MATERIALIZE STYLES ========================================================================== */ .datepicker.picker__input.picker__input--active, .timepicker.picker__input.picker__input--active { border-bottom: $picker-custom-materialize-styles; }