_datepicker.scss.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-picker-Date-css_mixin-extjs-datepicker'>/**
  19. </span> * Creates the base structure of a date picker.
  20. * @member Ext.picker.Date
  21. */
  22. @mixin extjs-datepicker {
  23. .#{$prefix}datepicker {
  24. border: $datepicker-border;
  25. background-color: $datepicker-background-color;
  26. position: relative;
  27. a {
  28. -moz-outline: 0 none;
  29. outline: 0 none;
  30. color: $datepicker-monthpicker-item-color;
  31. text-decoration: none;
  32. border-width: 0;
  33. }
  34. }
  35. .#{$prefix}datepicker-inner,
  36. .#{$prefix}datepicker-inner td,
  37. .#{$prefix}datepicker-inner th {
  38. border-collapse: separate;
  39. }
  40. .#{$prefix}datepicker-header {
  41. position: relative;
  42. height: 26px;
  43. @if $datepicker-header-background-gradient {
  44. @include background-gradient($datepicker-header-background-color, $datepicker-header-background-gradient);
  45. } @else {
  46. background-color: $datepicker-header-background-color;
  47. }
  48. }
  49. .#{$prefix}datepicker-prev,
  50. .#{$prefix}datepicker-next {
  51. position: absolute;
  52. top: 5px;
  53. width: 18px;
  54. a {
  55. display: block;
  56. width: 16px;
  57. height: 16px;
  58. background-position: top;
  59. background-repeat: no-repeat;
  60. cursor: pointer;
  61. text-decoration: none !important;
  62. @include opacity(.7);
  63. &amp;:hover {
  64. @include opacity(1);
  65. }
  66. }
  67. }
  68. .#{$prefix}datepicker-next {
  69. right: 5px;
  70. a {
  71. background-image: theme-background-image($theme-name, $datepicker-next-image);
  72. }
  73. }
  74. .#{$prefix}datepicker-prev {
  75. left: 5px;
  76. a {
  77. background-image: theme-background-image($theme-name, $datepicker-prev-image);
  78. }
  79. }
  80. .#{$prefix}item-disabled .#{$prefix}datepicker-prev a:hover,
  81. .#{$prefix}item-disabled .#{$prefix}datepicker-next a:hover {
  82. @include opacity(.6);
  83. }
  84. .#{$prefix}datepicker-month {
  85. padding-top: 3px;
  86. .#{$prefix}btn,
  87. button,
  88. .#{$prefix}btn-tc,
  89. .#{$prefix}btn-tl,
  90. .#{$prefix}btn-tr,
  91. .#{$prefix}btn-mc,
  92. .#{$prefix}btn-ml,
  93. .#{$prefix}btn-mr,
  94. .#{$prefix}btn-bc,
  95. .#{$prefix}btn-bl,
  96. .#{$prefix}btn-br {
  97. background: transparent !important;
  98. border-width: 0 !important;
  99. }
  100. span {
  101. color: #fff !important;
  102. }
  103. .#{$prefix}btn-split-right {
  104. background-image: theme-background-image($theme-name, $datepicker-month-arrow-image);
  105. padding-right: 12px;
  106. }
  107. }
  108. .#{$prefix}datepicker-next {
  109. text-align: right;
  110. }
  111. .#{$prefix}datepicker-month {
  112. //width: 120px;
  113. text-align: center;
  114. button {
  115. color: $datepicker-monthpicker-color !important;
  116. }
  117. }
  118. table.#{$prefix}datepicker-inner {
  119. width: 100%;
  120. table-layout: fixed;
  121. th {
  122. width: 25px;
  123. height: 19px;
  124. padding: 0;
  125. color: $datepicker-th-color;
  126. font: $datepicker-th-font;
  127. text-align: $datepicker-th-text-align;
  128. border-bottom: 1px solid $datepicker-th-border-bottom-color;
  129. border-collapse: separate;
  130. @if $datepicker-th-background-gradient {
  131. @include background-gradient($datepicker-th-background-color, $datepicker-th-background-gradient);
  132. } @else {
  133. background-color: $datepicker-th-background-color;
  134. }
  135. cursor: default;
  136. span {
  137. display: block;
  138. padding-right: 7px;
  139. }
  140. }
  141. tr {
  142. height: 20px;
  143. }
  144. td {
  145. border: $datepicker-border-width $datepicker-border-style;
  146. height: $datepicker-td-height;
  147. border-color: $datepicker-background-color;
  148. text-align: right;
  149. padding: 0;
  150. }
  151. a {
  152. padding-right: 4px;
  153. display: block;
  154. zoom: 1;
  155. font: normal ceil($font-size * .9) $font-family;
  156. color: $datepicker-item-color;
  157. text-decoration: none;
  158. text-align: right;
  159. }
  160. .#{$prefix}datepicker-active {
  161. cursor: pointer;
  162. color: black;
  163. }
  164. .#{$prefix}datepicker-selected {
  165. a {
  166. background: repeat-x left top;
  167. background-color: $datepicker-selected-item-background-color;
  168. border: 1px solid $datepicker-selected-item-border-color;
  169. }
  170. span {
  171. font-weight: bold;
  172. }
  173. }
  174. .#{$prefix}datepicker-today {
  175. a {
  176. border: $datepicker-border-width $datepicker-border-style;
  177. border-color: $datepicker-today-item-border-color;
  178. }
  179. }
  180. .#{$prefix}datepicker-prevday,
  181. .#{$prefix}datepicker-nextday {
  182. a {
  183. text-decoration: none !important;
  184. color: #aaa;
  185. }
  186. }
  187. a:hover,
  188. .#{$prefix}datepicker-disabled a:hover {
  189. text-decoration: none !important;
  190. color: #000;
  191. background-color: $datepicker-item-hover-background-color;
  192. }
  193. .#{$prefix}datepicker-disabled a {
  194. cursor: default;
  195. background-color: #eee;
  196. color: #bbb;
  197. }
  198. }
  199. .#{$prefix}datepicker-footer,
  200. .#{$prefix}monthpicker-buttons {
  201. position: relative;
  202. border-top: $datepicker-border-width $datepicker-border-style $datepicker-footer-border-top-color;
  203. @if $datepicker-footer-background-gradient {
  204. @include background-gradient($datepicker-footer-background-color, $datepicker-footer-background-gradient);
  205. } @else {
  206. background-color: $datepicker-footer-background-color;
  207. }
  208. text-align: center;
  209. .#{$prefix}btn {
  210. position: relative;
  211. margin: 4px;
  212. }
  213. }
  214. .#{$prefix}item-disabled .#{$prefix}datepicker-inner a:hover {
  215. background: none;
  216. }
  217. // month picker
  218. .#{$prefix}datepicker .#{$prefix}monthpicker {
  219. position: absolute;
  220. left: 0;
  221. top: 0;
  222. }
  223. .#{$prefix}monthpicker {
  224. border: $datepicker-border;
  225. background-color: $datepicker-background-color;
  226. }
  227. .#{$prefix}monthpicker-months,
  228. .#{$prefix}monthpicker-years {
  229. float: left;
  230. height: $datepicker-monthpicker-height;
  231. width: 88px;
  232. }
  233. .#{$prefix}monthpicker-item {
  234. float: left;
  235. margin: 4px 0 5px 0;
  236. font: normal ceil($font-size * .9) $font-family;
  237. text-align: center;
  238. vertical-align: middle;
  239. height: 18px;
  240. width: 43px;
  241. border: 0 none;
  242. a {
  243. display: block;
  244. margin: 0 5px;
  245. text-decoration: none;
  246. color: $datepicker-monthpicker-item-color;
  247. border: $datepicker-monthpicker-item-border;
  248. line-height: 17px;
  249. &amp;:hover {
  250. background-color: $datepicker-monthpicker-item-hover-background-color;
  251. }
  252. &amp;.#{$prefix}monthpicker-selected {
  253. background-color: $datepicker-monthpicker-item-selected-background-color;
  254. border: $datepicker-monthpicker-item-selected-border;
  255. }
  256. }
  257. }
  258. .#{$prefix}monthpicker-months {
  259. border-right: $datepicker-border;
  260. width: 87px;
  261. }
  262. .#{$prefix}monthpicker-years .#{$prefix}monthpicker-item {
  263. width: 44px;
  264. }
  265. .#{$prefix}monthpicker-yearnav {
  266. height: 28px;
  267. button {
  268. background-image: theme-background-image($theme-name, $datepicker-tool-sprite-image);
  269. height: 15px;
  270. width: 15px;
  271. padding: 0;
  272. margin: 6px 12px 5px 15px;
  273. border: 0;
  274. outline: 0 none;
  275. &amp;::-moz-focus-inner {
  276. border: 0;
  277. padding: 0;
  278. }
  279. }
  280. }
  281. .#{$prefix}monthpicker-yearnav-next {
  282. background-position: 0 -120px;
  283. }
  284. .#{$prefix}monthpicker-yearnav-next-over {
  285. cursor: pointer;
  286. cursor: hand;
  287. background-position: -15px -120px;
  288. }
  289. .#{$prefix}monthpicker-yearnav-prev {
  290. background-position: 0 -105px;
  291. }
  292. .#{$prefix}monthpicker-yearnav-prev-over {
  293. cursor: pointer;
  294. cursor: hand;
  295. background-position: -15px -105px;
  296. }
  297. .#{$prefix}monthpicker-small {
  298. .#{$prefix}monthpicker-item {
  299. margin: 2px 0 2px 0;
  300. }
  301. .#{$prefix}monthpicker-yearnav {
  302. height: 23px;
  303. }
  304. .#{$prefix}monthpicker-months, .#{$prefix}monthpicker-years {
  305. height: 136px;
  306. }
  307. }
  308. @if $include-ie {
  309. .#{$prefix}quirks {
  310. .#{$prefix}ie7,
  311. .#{$prefix}ie8 {
  312. .#{$prefix}monthpicker-buttons {
  313. .#{$prefix}btn {
  314. margin-top: 2px;
  315. }
  316. }
  317. }
  318. .#{$prefix}monthpicker-small .#{$prefix}monthpicker-yearnav button {
  319. margin-top: 3px;
  320. margin-bottom: 3px;
  321. }
  322. }
  323. .#{$prefix}ie6 .#{$prefix}monthpicker-small .#{$prefix}monthpicker-yearnav button {
  324. margin-top: 3px;
  325. margin-bottom: 3px;
  326. }
  327. }
  328. //nlg support
  329. @if not $supports-gradients or $compile-all {
  330. .#{$prefix}nlg {
  331. @if $datepicker-header-background-gradient != null {
  332. .#{$prefix}datepicker-header {
  333. background-image: theme-background-image($theme-name, 'datepicker/datepicker-header-bg.gif');
  334. background-repeat: repeat-x;
  335. background-position: top left;
  336. }
  337. }
  338. @if $datepicker-footer-background-gradient != null {
  339. .#{$prefix}datepicker-footer,
  340. .#{$prefix}monthpicker-buttons {
  341. background-image: theme-background-image($theme-name, 'datepicker/datepicker-footer-bg.gif');
  342. background-repeat: repeat-x;
  343. background-position: top left;
  344. }
  345. }
  346. }
  347. }
  348. }</pre>
  349. </body>
  350. </html>