.ws-range .ws-range-thumb, .ws-inline-picker, div.ws-inline-picker { -moz-box-sizing: content-box; box-sizing: content-box; } .ws-range .ws-range-thumb *, .ws-inline-picker *, div.ws-inline-picker *, .ws-range .ws-range-thumb:before, .ws-inline-picker:before, .ws-range .ws-range-thumb:after, .ws-inline-picker:after, .ws-range .ws-range-thumb :after, .ws-inline-picker :after, .ws-range .ws-range-thumb :before, .ws-inline-picker :before { -moz-box-sizing: content-box; box-sizing: content-box; } /* style picker api */ /* how to use: * Markup (good to style one input different than other): CSS: //replace the placeholder with .input-picker or (.input-date-picker) .input-picker .ws-week { display: table-cell; } SASS: //use the placeholder(s) and go crazy .input-picker { @extend %show-week; //@extend show-selectnav; } * */ /* btn api */ .hide-spinbtns + .input-buttons > .step-controls, .hide-spinbtns .input-buttons > .step-controls { display: none; } .hide-spinbtns::-webkit-inner-spin-button, .hide-spinbtns ::-webkit-inner-spin-button { display: none; } .hide-dropdownbtn + .input-buttons > .ws-popover-opener, .hide-dropdownbtn .input-buttons > .ws-popover-opener { display: none; } .hide-inputbtns + .input-buttons, .hide-inputbtns .input-buttons { display: none; } .hide-inputbtns::-webkit-inner-spin-button, .hide-inputbtns ::-webkit-inner-spin-button { display: none; } .a11yhide-inputbtns + .input-buttons, .a11yhide-inputbtns .input-buttons { width: 0; margin: 0; overflow: visible; } .a11yhide-inputbtns + .input-buttons > .step-controls, .a11yhide-inputbtns .input-buttons > .step-controls { display: none; } .a11yhide-inputbtns + .input-buttons > .ws-popover-opener, .a11yhide-inputbtns .input-buttons > .ws-popover-opener { height: 0; width: 0; overflow: hidden; } .a11yhide-inputbtns + .input-buttons > .ws-popover-opener:focus, .a11yhide-inputbtns + .input-buttons > .ws-popover-opener:active, .a11yhide-inputbtns .input-buttons > .ws-popover-opener:focus, .a11yhide-inputbtns .input-buttons > .ws-popover-opener:active { height: 19px; width: 19px; } .inputbtns-outside + span.input-buttons, .inputbtns-outside span.input.input-buttons { margin-left: 2px; } .inputbtns-outside + span.input-buttons.ws-is-rtl, .inputbtns-outside span.input.input-buttons.ws-is-rtl { margin-left: 0; margin-right: 2px; } .show-ticklabels .ws-range-ticks[data-label]:after { display: inline-block; } .show-tickvalues .ws-range-ticks:before { display: inline-block; } .hide-ticks .ws-range-ticks { display: none; } .show-valuetooltip span.ws-range-thumb > span, .show-valuetooltip span.ws-range-thumb > span span:after { display: inline-block; } .show-valuetooltip span.ws-range-thumb > span span:after { content: attr(data-value) !important; visibility: visible !important; } .ws-active.show-activevaluetooltip span.ws-range-thumb > span, .ws-active.show-activevaluetooltip span.ws-range-thumb > span span:after, .show-activevaluetooltip .ws-range.ws-active span.ws-range-thumb > span, .show-activevaluetooltip .ws-range.ws-active span.ws-range-thumb > span span:after { display: inline-block; } .ws-active.show-activevaluetooltip span.ws-range-thumb > span span:after, .show-activevaluetooltip .ws-range.ws-active span.ws-range-thumb > span span:after { content: attr(data-value) !important; visibility: visible !important; } .show-labeltooltip span.ws-range-thumb > span, .show-labeltooltip span.ws-range-thumb > span span:before { display: inline-block; } .show-labeltooltip span.ws-range-thumb > span span:before { content: attr(data-valuetext) !important; visibility: visible !important; } .ws-active.show-activelabeltooltip span.ws-range-thumb > span, .ws-active.show-activelabeltooltip span.ws-range-thumb > span span:before, .show-activelabeltooltip .ws-range.ws-active span.ws-range-thumb > span, .show-activelabeltooltip .ws-range.ws-active span.ws-range-thumb > span span:before { display: inline-block; } .ws-active.show-activelabeltooltip span.ws-range-thumb > span span:before, .show-activelabeltooltip .ws-range.ws-active span.ws-range-thumb > span span:before { content: attr(data-valuetext) !important; visibility: visible !important; } /* spinner control for time, number (usable for date, datetime-local) */ .has-input-buttons, html > body input.ws-inputreplace.has-input-buttons, span.has-input-buttons { display: inline-block; vertical-align: middle; } .ws-inputreplace[readonly][aria-readonly="false"] { cursor: pointer; } .ws-inputreplace[readonly][aria-readonly="false"][disabled] { cursor: default; cursor: not-allowed; } .input-buttons, .step-controls, .ws-popover-opener { zoom: 1; overflow: hidden; display: inline-block; vertical-align: middle; margin-left: -20px; } .step-controls, .ws-popover-opener { position: relative; float: left; margin: 0; height: 19px; width: 15px; } .ws-is-rtl .step-controls, .ws-is-rtl .ws-popover-opener { float: right; } .ws-popover-opener { position: relative; zoom: 1; overflow: visible; margin: 0 0 0 2px; width: 19px; border-radius: 3px; cursor: pointer; background: #ccc; } .ws-is-rtl .ws-popover-opener { margin: 0 2px 0 0; } .ws-popover-opener span { display: block; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: url(forms.png) no-repeat -321px -1px; } .color-input-buttons .ws-popover-opener span { background-position: -348px 0; } .time-input-buttons .ws-popover-opener span { background-position: -377px 1px; } .ws-popover-opener span.ws-color-indicator-bg { background: url(../jpicker/images/preview-opacity.png) no-repeat 0; } .ws-popover-opener span.ws-color-indicator { background: none; } input[type="color"] { width: 7.5em; } .input-buttons { text-align: left; } .input-buttons.color-input-buttons { margin-left: 2px; } .input-buttons.ws-disabled { opacity: 0.95; } .input-buttons.ws-disabled *, .input-buttons.ws-readonly * { cursor: default; } .input-button-size-1.month-input-buttons, .input-button-size-1.date-input-buttons, .input-button-size-1.datetime-local-input-buttons { margin-left: -24px; } .input-button-size-1.month-input-buttons.ws-is-rtl, .input-button-size-1.date-input-buttons.ws-is-rtl, .input-button-size-1.datetime-local-input-buttons.ws-is-rtl { margin-left: 0; margin-right: -24px; } .input-button-size-2 { margin-left: -39px; } .input-button-size-2.ws-is-rtl { margin-left: 0; margin-right: -39px; } .step-controls span { position: absolute; left: 0; display: inline-block; overflow: hidden; margin: 0 !important; padding: 0 !important; width: 15px; height: 9px; cursor: pointer; font-size: 0; line-height: 0; background: url(forms.png) no-repeat 0 0; } .step-controls span.step-up { top: 0; background-position: -80px 0; } .step-controls span.step-up:hover { background-position: -105px 0; } .step-controls span.step-up.mousepress-ui { background-position: -105px -20px; } .ws-disabled .step-controls span.step-up { background-position: -130px 0; } .step-controls span.step-down { bottom: 0; background-position: -155px 0; } .step-controls span.step-down:hover { background-position: -180px 0; } .step-controls span.step-down.mousepress-ui { background-position: -180px -20px; } .ws-disabled .step-controls span.step-down { background-position: -205px 0; } /* helper classes to hide show/hide specific btn features features */ .ws-input { letter-spacing: -0.31em; word-spacing: -0.43em; } .ws-input > * { text-align: center; letter-spacing: normal; word-spacing: normal; } .ws-input > * > option { text-align: left; } .ws-input .ws-input-seperator { vertical-align: middle; width: 2%; overflow: hidden; } .ws-input + .input-buttons { margin-left: 2px; } .ws-input input, .ws-input .ws-input-seperator { -moz-box-sizing: border-box; box-sizing: border-box; text-align: center; display: inline-block; } span.ws-input { display: inline-block; } .ws-date .mm, .ws-date .dd { width: 23.5%; min-width: 10%; } .ws-date .yy { width: 48%; min-width: 20%; } .ws-date.ws-month-select .dd { width: 22%; min-width: 10%; } .ws-date.ws-month-select .mm { width: 38%; min-width: 17%; } .ws-date.ws-month-select .yy { width: 36%; min-width: 16%; } .ws-month .mm, .ws-month .yy { width: 47.9%; min-width: 20%; } /* range */ .ws-range { position: relative; display: inline-block; vertical-align: middle; margin: 0.57692em 0; zoom: 1; border: none; height: 0.61538em; width: 155px; border-radius: 0.38462em; background: #ddd; cursor: pointer; font-size: 13px; outline: none; transition: background-color 400ms, border-color 400ms; background-color: #ddd; box-shadow: 0 -0.07692em 0.11538em rgba(0, 0, 0, 0.2) inset; } [list] + .ws-range { margin: 0.19231em 0 0.96154em; } .ws-range .ws-range-thumb { top: 0; position: absolute; display: block; z-index: 4; margin: -0.46154em 0 0 -0.76923em; height: 1.53846em; width: 1.53846em; border-radius: 50%; background: #ccc; border: 0.07692em solid #aaaaaa; cursor: pointer; transition: background-color 400ms, border-color 400ms; } .ws-range .ws-range-thumb > span { position: absolute; margin: 0 0 3px -90px; padding: 0; border: 0; left: 50%; bottom: 1.61538em; visibility: hidden; width: 180px; text-align: center; background: none; } .ws-range .ws-range-thumb > span span { visibility: visible; } .ws-range .ws-range-thumb > span span:after, .ws-range .ws-range-thumb > span span:before { content: ""; padding: 0.07692em 0.26923em; text-align: center; background: #fff; border: 0.07692em solid #cccccc; border-radius: 0.30769em; visibility: visible; } .ws-range.ws-focus .ws-range-thumb { background: #eee; border-color: #999; } .ws-range.ws-active .ws-range-thumb { box-shadow: 0 0 0.69231em rgba(0, 75, 100, 0.2); } .ws-range[aria-disabled="true"], .ws-range[aria-readonly="true"] { cursor: default; opacity: 0.95; } .ws-range[aria-disabled="true"] .ws-range-thumb, .ws-range[aria-readonly="true"] .ws-range-thumb { cursor: default; } .ws-range[aria-disabled="true"] .ws-range-thumb { background: #ddd; border-color: #ddd; } .ws-range .ws-range-rail { position: absolute; display: block; top: 0; left: 0; right: 0; bottom: 0; margin: 0; zoom: 1; } .ws-range .ws-range-progress { position: absolute !important; display: block; margin: 0; padding: 0; top: 0; border-radius: 0.38462em; height: 100%; left: 0; z-index: 1; overflow: hidden; background: #09c; box-shadow: 0 0.11538em 0.26923em rgba(255, 255, 255, 0.2) inset; -moz-box-sizing: content-box; box-sizing: content-box; } .ws-range .ws-range-ticks { position: absolute; bottom: -0.76923em; left: 0; height: 0.61538em; width: 0.07692em; margin: 0 0 0 -0.07692em; background: #ccc; transition: background-color 400ms, color 400ms; } .ws-range .ws-range-ticks.ws-selected-option { background: #09c; color: #09c; } .ws-range.ws-is-rtl .ws-range-progress { left: auto; right: 0; } .ws-range.ws-is-rtl .ws-range-ticks { left: auto; right: 0; } .ws-range.vertical-range { width: 0.61538em; margin: 0 10px 0 5px; } .ws-range.vertical-range .ws-range-ticks { bottom: auto; left: auto; margin: -0.05769em 0 0 0; right: -0.57692em; height: 0.11538em; width: 0.52308em; } .ws-range.vertical-range .ws-range-progress { top: auto; bottom: 1px; left: 0; width: 100%; height: 0; } .ws-range-ticks[data-label]:after, .ws-range-ticks:before { display: none; content: attr(data-label); font-size: 0.76923em; min-width: 2em; text-align: center; margin: 0.69231em 0 0 -0.95em; } .ws-is-rtl .ws-range-ticks[data-label]:after, .ws-is-rtl .ws-range-ticks:before { margin: 0.69231em -0.95em 0 0; } .vertical-range .ws-range-ticks[data-label]:after, .vertical-range .ws-range-ticks:before { margin: 0 0 0 5px; position: relative; top: -0.7em; left: 0.53846em; min-width: 0; } .ws-range-ticks:before { content: attr(data-value); } .ws-range-thumb > span, .ws-range-thumb > span span:after, .ws-range-thumb > span span:before { display: none; } /* helper classes to hide show/hide specific range features features */ .ws-inline-picker, div.ws-inline-picker { position: relative; max-width: 100%; z-index: 99; }