.data-picker{ margin: 0 0 $global-margin; &.picker-single .picker-values div a, .picker-prompt a{ background: white; cursor: pointer; display: block; width: 100%; padding: .4rem .7rem; border: 1px solid #e8e8e8; border-radius: 4px; box-shadow: inset 0 1px 2px rgba(26, 24, 29, .1); -webkit-box-shadow: inset 0 1px 2px rgba(26, 24, 29, .1); color: #1a181d; &:active{ outline: none; border: 1px solid #1a181d; background-color: #fff; box-shadow: 0 0 5px #adadad; -webkit-box-shadow: 0 0 5px #adadad; transition: border-color .25s ease-in-out, -webkit-box-shadow .5s; -webkit-transition: border-color .25s ease-in-out, -webkit-box-shadow .5s; } &::after{ display: block; width: 0; height: 0; border: inset 5px; content: ''; border-right-width: 0; border-color: transparent transparent transparent #1a181d; float: right; margin-top: 7px; } } &.is-invalid-input.picker-single .picker-values div a, &.is-invalid-input .picker-prompt a{ border-color: $alert-color; background-color: #fdeeec; } &.picker-single .picker-values:not(:empty) + .picker-prompt{ display: none; } &.disabled.picker-single .picker-values div a, &.disabled .picker-prompt a{ cursor: not-allowed; background: #eee; &:active{ border: inherit !important; box-shadow: inherit !important; -webkit-box-shadow: inherit !important; transition: none !important; -webkit-transition: none !important; } } &.picker-multiple .picker-values{ div{ display: block; margin: 0 0 2px; font-size: .9rem; input{ margin: 2px 8px 8px 2px; vertical-align: top; } } } } #data_picker-modal{ height: 90%; .data_picker-modal-content{ display: flex; flex-direction: column; max-height: 100%; min-height: 100%; .picker-footer{ .buttons{ display: flex; justify-content: center; padding: 10px 0 50px; // bottom padding is needed to avoid hiding buttons on mobiles because of https://stackoverflow.com/questions/37112218/css3-100vh-not-constant-in-mobile-browser } } .picker-content{ flex-grow: 10; min-height: 100%; max-height: 100%; overflow: auto; .picker-scrollable-content{ max-height: 100%; overflow: auto; } } } } .scope-picker{ ul{ margin-left: 0; li{ list-style: none; } } &.picker-header{ padding: 5px; li:hover{ background: #ddd; } li ~ li a::before{ content: ''; width: 10px; height: 2em; float: left; } li:last-child a{ color: #333; } a{ display: block; padding: 2px; } } &.picker-content{ .picker-scrollable-content{ scroll-snap-type: mandatory; a{ scroll-snap-coordinate: 0 0; display: block; border-top: 1px solid #ddd; line-height: 1.5rem; padding: 5px; &:hover{ background: #ddd; } } } } }