Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

datetime.scss 4.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. $editor-datetime-selected: #4E6CA3 !default;
  2. div.editor-datetime {
  3. position: absolute;
  4. background-color: white;
  5. z-index: 2050;
  6. border: 1px solid #ccc;
  7. box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);
  8. padding: 0 20px 6px 20px;
  9. width: 275px;
  10. div.editor-datetime-title {
  11. text-align: center;
  12. padding: 5px 0px 3px;
  13. }
  14. table {
  15. border-spacing: 0;
  16. margin: 12px 0;
  17. width: 100%;
  18. &.editor-datetime-table-nospace {
  19. margin-top: -12px;
  20. }
  21. th {
  22. font-size: 0.8em;
  23. color: #777;
  24. font-weight: normal;
  25. width: 14.285714286%;
  26. padding: 0 0 4px 0;
  27. text-align: center;
  28. }
  29. td {
  30. font-size: 0.9em;
  31. color: #444;
  32. padding: 0;
  33. }
  34. td.selectable {
  35. text-align: center;
  36. background: #f5f5f5;
  37. &.disabled {
  38. color: #aaa;
  39. background: white;
  40. button:hover {
  41. color: #aaa;
  42. background: white;
  43. }
  44. }
  45. &.now {
  46. background-color: #ddd;
  47. button {
  48. font-weight: bold;
  49. }
  50. }
  51. &.selected button {
  52. background: $editor-datetime-selected;
  53. color: white;
  54. border-radius: 2px;
  55. }
  56. button:hover {
  57. background: #ff8000;
  58. color: white;
  59. border-radius: 2px;
  60. }
  61. }
  62. td.editor-datetime-week {
  63. font-size: 0.7em;
  64. }
  65. button {
  66. width: 100%;
  67. box-sizing: border-box;
  68. border: none;
  69. background: transparent;
  70. font-size: inherit;
  71. color: inherit;
  72. text-align: center;
  73. padding: 4px 0;
  74. cursor: pointer;
  75. margin: 0;
  76. span {
  77. display: inline-block;
  78. min-width: 14px;
  79. text-align: right;
  80. }
  81. }
  82. &.weekNumber th {
  83. width: 12.5%;
  84. }
  85. }
  86. div.editor-datetime-calendar {
  87. table {
  88. margin-top: 0;
  89. }
  90. }
  91. div.editor-datetime-label {
  92. position: relative;
  93. display: inline-block;
  94. height: 30px;
  95. padding: 5px 6px;
  96. border: 1px solid transparent;
  97. box-sizing: border-box;
  98. cursor: pointer;
  99. &:hover {
  100. border: 1px solid #ddd;
  101. border-radius: 2px;
  102. background-color: #f5f5f5;
  103. }
  104. span {
  105. }
  106. select {
  107. position: absolute;
  108. top: 6px;
  109. left: 0;
  110. cursor: pointer;
  111. opacity: 0;
  112. -ms-filter: "alpha(opacity=0)";
  113. }
  114. }
  115. // JS will only apply this when both date and time are visible
  116. &.horizontal {
  117. width: 550px;
  118. div.editor-datetime-date,
  119. div.editor-datetime-time {
  120. width: 48%;
  121. }
  122. div.editor-datetime-time {
  123. margin-left: 4%;
  124. }
  125. }
  126. div.editor-datetime-date {
  127. position: relative;
  128. float: left;
  129. width: 100%;
  130. }
  131. div.editor-datetime-time {
  132. position: relative;
  133. float: left;
  134. width: 100%;
  135. text-align: center;
  136. > span {
  137. vertical-align: middle;
  138. }
  139. th {
  140. text-align: left;
  141. }
  142. div.editor-datetime-timeblock {
  143. display: inline-block;
  144. vertical-align: middle;
  145. }
  146. }
  147. div.editor-datetime-iconLeft,
  148. div.editor-datetime-iconRight,
  149. div.editor-datetime-iconUp,
  150. div.editor-datetime-iconDown {
  151. width: 30px;
  152. height: 30px;
  153. background-position: center;
  154. background-repeat: no-repeat;
  155. opacity: 0.3;
  156. overflow: hidden;
  157. box-sizing: border-box;
  158. &:hover {
  159. border: 1px solid #ccc;
  160. border-radius: 2px;
  161. background-color: #f0f0f0;
  162. opacity: 0.6;
  163. }
  164. button {
  165. border: none;
  166. background: transparent;
  167. text-indent: 30px;
  168. height: 100%;
  169. width: 100%;
  170. cursor: pointer;
  171. }
  172. }
  173. div.editor-datetime-iconLeft {
  174. position: absolute;
  175. top: 5px;
  176. left: 5px;
  177. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');
  178. }
  179. div.editor-datetime-iconRight {
  180. position: absolute;
  181. top: 5px;
  182. right: 5px;
  183. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');
  184. }
  185. div.editor-datetime-iconUp {
  186. height: 20px;
  187. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAALCAMAAABf9c24AAAAFVBMVEX///99fX1+fn57e3t6enoAAAAAAAC73bqPAAAABnRSTlMAYmJkZt92bnysAAAAL0lEQVR4AWOgJmBhxCvLyopHnpmVjY2VCadeoCxIHrcsWJ4RlyxCHlMWCTBRJxwAjrIBDMWSiM0AAAAASUVORK5CYII=');
  188. }
  189. div.editor-datetime-iconDown {
  190. height: 20px;
  191. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAALCAMAAABf9c24AAAAFVBMVEX///99fX1+fn57e3t6enoAAAAAAAC73bqPAAAABnRSTlMAYmJkZt92bnysAAAAMElEQVR4AWOgDmBiRQIsmPKMrGxQgJDFlEfIYpoPk8Utz8qM232MYFfhkQfKUg8AANefAQxecJ58AAAAAElFTkSuQmCC');
  192. }
  193. }
  194. div.editor-datetime-error {
  195. clear: both;
  196. padding: 0 1em;
  197. max-width: 240px;
  198. font-size: 11px;
  199. line-height: 1.25em;
  200. text-align: center;
  201. color: #b11f1f;
  202. }