time_selector.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. /* ----------------------------------
  2. * Time selector
  3. * ---------------------------------- */
  4. /* Main dialog setup */
  5. [role="dialog"][data-type="time-selector"] {
  6. background: url(time_selector/images/ui/pattern.png) repeat left top, url(time_selector/images/ui/gradient.png) no-repeat left top / 100% 100%;
  7. overflow: hidden;
  8. position: absolute;
  9. z-index: 100;
  10. top: 0;
  11. left: 0;
  12. right: 0;
  13. bottom: 0;
  14. padding: 0 0 7rem;
  15. color: #fff;
  16. font-family: sans-serif;
  17. }
  18. [role="dialog"][data-type="time-selector"] h1 {
  19. font-weight: 400;
  20. font-size: 1.9rem;
  21. line-height: 4.8rem;
  22. color: #fff;
  23. border-bottom: 0.1rem solid #616262;
  24. background: rgba(0 ,0, 0, .2);
  25. margin: 0;
  26. padding: 0 3rem 1rem;
  27. height: 4.8rem;
  28. -moz-box-sizing: border-box;
  29. }
  30. /* Time Selector */
  31. [role="dialog"][data-type="time-selector"] .picker-container {
  32. -moz-box-sizing: border-box;
  33. position: relative;
  34. width: calc(100% - 5rem);
  35. height: 22.5rem;
  36. margin: 5.4rem auto 0;
  37. padding-top: 8.8rem;
  38. border-left: 0.1rem solid #111;
  39. border-right: 0.1rem solid #111;
  40. overflow: hidden;
  41. }
  42. [role="dialog"][data-type="time-selector"] .picker-container:before {
  43. content: '';
  44. position: absolute;
  45. top: 0;
  46. right: 0;
  47. left: 0;
  48. border-top: solid 0.7rem;
  49. -moz-border-top-colors:
  50. rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.3)
  51. rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.1)
  52. rgba(0, 0, 0, 0.05);
  53. z-index: 10;
  54. }
  55. [role="dialog"][data-type="time-selector"] .picker-container:after {
  56. content: '';
  57. position: absolute;
  58. right: 0;
  59. bottom: 0;
  60. left: 0;
  61. border-bottom: solid 0.7rem;
  62. -moz-border-bottom-colors:
  63. rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.3)
  64. rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.1)
  65. rgba(0, 0, 0, 0.05);
  66. z-index: 10;
  67. }
  68. [role="dialog"][data-type="time-selector"] .picker-bar-background {
  69. position: absolute;
  70. top: 0;
  71. right: 0;
  72. width: calc(100% / 3);
  73. height: 100%;
  74. background: url(time_selector/images/ui/pattern-time.png);
  75. }
  76. [role="dialog"][data-type="time-selector"] .format12hrev .picker-bar-background {
  77. left: 0;
  78. right: auto;
  79. }
  80. #time-picker.format24h .picker-bar-background {
  81. display: none;
  82. }
  83. [role="dialog"][data-type="time-selector"] .value-picker-hours-wrapper,
  84. [role="dialog"][data-type="time-selector"] .value-picker-minutes-wrapper,
  85. [role="dialog"][data-type="time-selector"] .value-picker-hour24-wrapper {
  86. -moz-box-sizing: border-box;
  87. position: absolute;
  88. top: 0;
  89. left: 0;
  90. width: calc(100% / 3);
  91. height: 100%;
  92. padding-top: 8.3rem;
  93. border-right: solid 0.2rem;
  94. -moz-border-right-colors: #1d1d1d #4a4a4a;
  95. }
  96. [role="dialog"][data-type="time-selector"] .format12h .value-picker-minutes-wrapper {
  97. left: calc(100% / 3);
  98. }
  99. [role="dialog"][data-type="time-selector"] .format12h .value-picker-hour24-wrapper {
  100. left: auto;
  101. right: 0;
  102. border: none;
  103. }
  104. [role="dialog"][data-type="time-selector"] .format12hrev .value-picker-hour24-wrapper {
  105. left: 0;
  106. }
  107. [role="dialog"][data-type="time-selector"] .format12hrev .value-picker-hours-wrapper {
  108. left: calc(100% / 3);
  109. }
  110. [role="dialog"][data-type="time-selector"] .format12hrev .value-picker-minutes-wrapper {
  111. left: calc(100% * 2 / 3);
  112. }
  113. [role="dialog"][data-type="time-selector"] .format24h .value-picker-hours-wrapper,
  114. [role="dialog"][data-type="time-selector"] .format24h .value-picker-minutes-wrapper,
  115. [role="dialog"][data-type="time-selector"] .format24h .picker-bar-background {
  116. width: 50%;
  117. }
  118. [role="dialog"][data-type="time-selector"] .format24h .value-picker-minutes-wrapper {
  119. left: auto;
  120. right: 0;
  121. border: none;
  122. }
  123. [role="dialog"][data-type="time-selector"] .format24h .value-picker-hour24-wrapper {
  124. display: none;
  125. }
  126. [role="dialog"][data-type="time-selector"] .value-picker-hours,
  127. [role="dialog"][data-type="time-selector"] .value-picker-minutes,
  128. [role="dialog"][data-type="time-selector"] .value-picker-hour24-state {
  129. -moz-user-select: none;
  130. position: relative;
  131. width: 100%;
  132. z-index: 1;
  133. }
  134. [role="dialog"][data-type="time-selector"] .value-picker-hours > *[data-disabled="true"],
  135. [role="dialog"][data-type="time-selector"] .value-picker-minutes > *[data-disabled="true"],
  136. [role="dialog"][data-type="time-selector"] .value-picker-hour24-state > *[data-disabled="true"] {
  137. visibility: hidden;
  138. }
  139. [role="dialog"][data-type="time-selector"] .value-indicator {
  140. position: absolute;
  141. width: 100%;
  142. height: 4.6rem;
  143. background-color: #00A5C5;
  144. box-shadow: 0 0 0.7rem rgba(0,0,0, .4);
  145. opacity: .99;
  146. pointer-events: none;
  147. }
  148. [role="dialog"][data-type="time-selector"] .value-indicator > .value-indicator-colon {
  149. position: absolute;
  150. width: calc(100% - (100% / 3));
  151. height: 100%;
  152. font: 2.2rem/4.4rem Sans-serif;
  153. text-align: center;
  154. background-color: #00A5C5;
  155. pointer-events: none;
  156. }
  157. [role="dialog"][data-type="time-selector"] .format12hrev .value-indicator > .value-indicator-colon {
  158. left: calc(100% / 3);
  159. }
  160. [role="dialog"][data-type="time-selector"] .format24h .value-indicator-colon {
  161. display: none;
  162. }
  163. [role="dialog"][data-type="time-selector"] .animation-on {
  164. transition-duration: 0.5s;
  165. transition-property: transform;
  166. }
  167. [role="dialog"][data-type="time-selector"] .picker-unit {
  168. position: relative;
  169. font: 2.2rem/5.6rem Sans-serif;
  170. color: #fff;
  171. text-align: center;
  172. vertical-align: middle;
  173. width: 100%;
  174. height: 5.6rem;
  175. pointer-events: none;
  176. }
  177. /* Menu & buttons setup */
  178. [role="dialog"][data-type="time-selector"] menu {
  179. white-space: nowrap;
  180. margin: 0;
  181. padding: 1.5rem;
  182. background: #2d2d2d url(time_selector/images/ui/pattern.png) repeat left top;
  183. display: block;
  184. overflow: hidden;
  185. position: absolute;
  186. left: 0;
  187. right: 0;
  188. bottom: 0;
  189. }
  190. [role="dialog"][data-type="time-selector"] menu button::-moz-focus-inner {
  191. border: none;
  192. outline: none;
  193. }
  194. [role="dialog"][data-type="time-selector"] menu button {
  195. width: calc((100% - 1rem) / 2);
  196. font-family: sans-serif;
  197. font-style: italic;
  198. height: 4rem;
  199. margin: 0 0 1rem;
  200. padding: 0 1.2rem;
  201. -moz-box-sizing: border-box;
  202. display: inline-block;
  203. vertical-align: middle;
  204. text-overflow: ellipsis;
  205. white-space: nowrap;
  206. overflow: hidden;
  207. background: #d8d8d8;
  208. border: none;
  209. border-radius: 2rem;
  210. font-weight: normal;
  211. font-size: 1.6rem;
  212. line-height: 4rem;
  213. color: #333;
  214. text-align: center;
  215. text-shadow: none;
  216. text-decoration: none;
  217. outline: none;
  218. }
  219. /* Affirmative */
  220. [role="dialog"][data-type="time-selector"] menu button.affirmative,
  221. [role="dialog"][data-type="time-selector"] menu button.recommend {
  222. background-color: #00caf2;
  223. color: #fff;
  224. }
  225. /* Pressed */
  226. [role="dialog"][data-type="time-selector"] menu button:active {
  227. background: #00aacc;
  228. color: #fff;
  229. }
  230. /* Disabled */
  231. [role="dialog"][data-type="time-selector"] > menu > button[disabled] {
  232. background-color: #565656;
  233. color: rgba(255,255,255,0.4);
  234. pointer-events: none;
  235. }
  236. [role="dialog"][data-type="time-selector"] > menu > button[disabled].recommend {
  237. background-color: #006579;
  238. }
  239. button[disabled]::-moz-selection {
  240. -moz-user-select: none;
  241. }
  242. [role="dialog"][data-type="time-selector"] menu button:last-child {
  243. margin-left: 1rem;
  244. }
  245. [role="dialog"][data-type="time-selector"] menu button,
  246. [role="dialog"][data-type="time-selector"] menu button:first-child {
  247. margin: 0;
  248. }
  249. [role="dialog"][data-type="time-selector"] menu button.full {
  250. width: 100%;
  251. }