123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- /* ----------------------------------
- * Time selector
- * ---------------------------------- */
- /* Main dialog setup */
- [role="dialog"][data-type="time-selector"] {
- background: url(time_selector/images/ui/pattern.png) repeat left top, url(time_selector/images/ui/gradient.png) no-repeat left top / 100% 100%;
- overflow: hidden;
- position: absolute;
- z-index: 100;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- padding: 0 0 7rem;
- color: #fff;
- font-family: sans-serif;
- }
- [role="dialog"][data-type="time-selector"] h1 {
- font-weight: 400;
- font-size: 1.9rem;
- line-height: 4.8rem;
- color: #fff;
- border-bottom: 0.1rem solid #616262;
- background: rgba(0 ,0, 0, .2);
- margin: 0;
- padding: 0 3rem 1rem;
- height: 4.8rem;
- -moz-box-sizing: border-box;
- }
- /* Time Selector */
- [role="dialog"][data-type="time-selector"] .picker-container {
- -moz-box-sizing: border-box;
- position: relative;
- width: calc(100% - 5rem);
- height: 22.5rem;
- margin: 5.4rem auto 0;
- padding-top: 8.8rem;
- border-left: 0.1rem solid #111;
- border-right: 0.1rem solid #111;
- overflow: hidden;
- }
- [role="dialog"][data-type="time-selector"] .picker-container:before {
- content: '';
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- border-top: solid 0.7rem;
- -moz-border-top-colors:
- rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.3)
- rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.1)
- rgba(0, 0, 0, 0.05);
- z-index: 10;
- }
- [role="dialog"][data-type="time-selector"] .picker-container:after {
- content: '';
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- border-bottom: solid 0.7rem;
- -moz-border-bottom-colors:
- rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.3)
- rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.1)
- rgba(0, 0, 0, 0.05);
- z-index: 10;
- }
- [role="dialog"][data-type="time-selector"] .picker-bar-background {
- position: absolute;
- top: 0;
- right: 0;
- width: calc(100% / 3);
- height: 100%;
- background: url(time_selector/images/ui/pattern-time.png);
- }
- [role="dialog"][data-type="time-selector"] .format12hrev .picker-bar-background {
- left: 0;
- right: auto;
- }
- #time-picker.format24h .picker-bar-background {
- display: none;
- }
- [role="dialog"][data-type="time-selector"] .value-picker-hours-wrapper,
- [role="dialog"][data-type="time-selector"] .value-picker-minutes-wrapper,
- [role="dialog"][data-type="time-selector"] .value-picker-hour24-wrapper {
- -moz-box-sizing: border-box;
- position: absolute;
- top: 0;
- left: 0;
- width: calc(100% / 3);
- height: 100%;
- padding-top: 8.3rem;
- border-right: solid 0.2rem;
- -moz-border-right-colors: #1d1d1d #4a4a4a;
- }
- [role="dialog"][data-type="time-selector"] .format12h .value-picker-minutes-wrapper {
- left: calc(100% / 3);
- }
- [role="dialog"][data-type="time-selector"] .format12h .value-picker-hour24-wrapper {
- left: auto;
- right: 0;
- border: none;
- }
- [role="dialog"][data-type="time-selector"] .format12hrev .value-picker-hour24-wrapper {
- left: 0;
- }
- [role="dialog"][data-type="time-selector"] .format12hrev .value-picker-hours-wrapper {
- left: calc(100% / 3);
- }
- [role="dialog"][data-type="time-selector"] .format12hrev .value-picker-minutes-wrapper {
- left: calc(100% * 2 / 3);
- }
- [role="dialog"][data-type="time-selector"] .format24h .value-picker-hours-wrapper,
- [role="dialog"][data-type="time-selector"] .format24h .value-picker-minutes-wrapper,
- [role="dialog"][data-type="time-selector"] .format24h .picker-bar-background {
- width: 50%;
- }
- [role="dialog"][data-type="time-selector"] .format24h .value-picker-minutes-wrapper {
- left: auto;
- right: 0;
- border: none;
- }
- [role="dialog"][data-type="time-selector"] .format24h .value-picker-hour24-wrapper {
- display: none;
- }
- [role="dialog"][data-type="time-selector"] .value-picker-hours,
- [role="dialog"][data-type="time-selector"] .value-picker-minutes,
- [role="dialog"][data-type="time-selector"] .value-picker-hour24-state {
- -moz-user-select: none;
- position: relative;
- width: 100%;
- z-index: 1;
- }
- [role="dialog"][data-type="time-selector"] .value-picker-hours > *[data-disabled="true"],
- [role="dialog"][data-type="time-selector"] .value-picker-minutes > *[data-disabled="true"],
- [role="dialog"][data-type="time-selector"] .value-picker-hour24-state > *[data-disabled="true"] {
- visibility: hidden;
- }
- [role="dialog"][data-type="time-selector"] .value-indicator {
- position: absolute;
- width: 100%;
- height: 4.6rem;
- background-color: #00A5C5;
- box-shadow: 0 0 0.7rem rgba(0,0,0, .4);
- opacity: .99;
- pointer-events: none;
- }
- [role="dialog"][data-type="time-selector"] .value-indicator > .value-indicator-colon {
- position: absolute;
- width: calc(100% - (100% / 3));
- height: 100%;
- font: 2.2rem/4.4rem Sans-serif;
- text-align: center;
- background-color: #00A5C5;
- pointer-events: none;
- }
- [role="dialog"][data-type="time-selector"] .format12hrev .value-indicator > .value-indicator-colon {
- left: calc(100% / 3);
- }
- [role="dialog"][data-type="time-selector"] .format24h .value-indicator-colon {
- display: none;
- }
- [role="dialog"][data-type="time-selector"] .animation-on {
- transition-duration: 0.5s;
- transition-property: transform;
- }
- [role="dialog"][data-type="time-selector"] .picker-unit {
- position: relative;
- font: 2.2rem/5.6rem Sans-serif;
- color: #fff;
- text-align: center;
- vertical-align: middle;
- width: 100%;
- height: 5.6rem;
- pointer-events: none;
- }
- /* Menu & buttons setup */
- [role="dialog"][data-type="time-selector"] menu {
- white-space: nowrap;
- margin: 0;
- padding: 1.5rem;
- background: #2d2d2d url(time_selector/images/ui/pattern.png) repeat left top;
- display: block;
- overflow: hidden;
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- }
- [role="dialog"][data-type="time-selector"] menu button::-moz-focus-inner {
- border: none;
- outline: none;
- }
- [role="dialog"][data-type="time-selector"] menu button {
- width: calc((100% - 1rem) / 2);
- font-family: sans-serif;
- font-style: italic;
- height: 4rem;
- margin: 0 0 1rem;
- padding: 0 1.2rem;
- -moz-box-sizing: border-box;
- display: inline-block;
- vertical-align: middle;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- background: #d8d8d8;
- border: none;
- border-radius: 2rem;
- font-weight: normal;
- font-size: 1.6rem;
- line-height: 4rem;
- color: #333;
- text-align: center;
- text-shadow: none;
- text-decoration: none;
- outline: none;
- }
- /* Affirmative */
- [role="dialog"][data-type="time-selector"] menu button.affirmative,
- [role="dialog"][data-type="time-selector"] menu button.recommend {
- background-color: #00caf2;
- color: #fff;
- }
- /* Pressed */
- [role="dialog"][data-type="time-selector"] menu button:active {
- background: #00aacc;
- color: #fff;
- }
- /* Disabled */
- [role="dialog"][data-type="time-selector"] > menu > button[disabled] {
- background-color: #565656;
- color: rgba(255,255,255,0.4);
- pointer-events: none;
- }
- [role="dialog"][data-type="time-selector"] > menu > button[disabled].recommend {
- background-color: #006579;
- }
- button[disabled]::-moz-selection {
- -moz-user-select: none;
- }
- [role="dialog"][data-type="time-selector"] menu button:last-child {
- margin-left: 1rem;
- }
- [role="dialog"][data-type="time-selector"] menu button,
- [role="dialog"][data-type="time-selector"] menu button:first-child {
- margin: 0;
- }
- [role="dialog"][data-type="time-selector"] menu button.full {
- width: 100%;
- }
|