bootstrap-editable.less 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305
  1. /*! X-editable - v1.5.1
  2. * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
  3. * http://github.com/vitalets/x-editable
  4. * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
  5. /*
  6. BS3 width:1005 for inputs breaks editable form in popup
  7. See: https://github.com/vitalets/x-editable/issues/393
  8. */
  9. /*for jquery-ui buttons need set height to look more pretty*/
  10. /*add padding for jquery ui*/
  11. /* ---- For specific types ---- */
  12. /* move datepicker icon to center of add-on button. See https://github.com/vitalets/x-editable/issues/183 */
  13. /* checklist vertical alignment */
  14. /* set exact width of textarea to fit buttons toolbar */
  15. /* clear button shown as link in date inputs */
  16. /* IOS-style clear button for text inputs */
  17. /*see https://github.com/vitalets/x-editable/issues/139 */
  18. /*!
  19. * Datepicker for Bootstrap
  20. *
  21. * Copyright 2012 Stefan Petre
  22. * Improvements by Andrew Rowls
  23. * Licensed under the Apache License v2.0
  24. * http://www.apache.org/licenses/LICENSE-2.0
  25. *
  26. */
  27. .editableform {
  28. margin-bottom: 0;
  29. .control-group {
  30. margin-bottom: 0;
  31. white-space: nowrap;
  32. line-height: 20px;
  33. }
  34. .form-control {
  35. width: auto;
  36. }
  37. .editable-date {
  38. padding: 0;
  39. margin: 0;
  40. float: left;
  41. }
  42. }
  43. .editable-buttons {
  44. display: inline-block;
  45. vertical-align: top;
  46. margin-left: 7px;
  47. zoom: 1;
  48. *display: inline;
  49. .editable-cancel {
  50. margin-left: 7px;
  51. }
  52. button.ui-button-icon-only {
  53. height: 24px;
  54. width: 30px;
  55. }
  56. }
  57. .editable-buttons.editable-buttons-bottom {
  58. display: block;
  59. margin-top: 7px;
  60. margin-left: 0;
  61. }
  62. .editable-input {
  63. vertical-align: top;
  64. display: inline-block;
  65. width: auto;
  66. white-space: normal;
  67. zoom: 1;
  68. *display: inline;
  69. }
  70. .editableform-loading {
  71. background: url('../img/loading.gif') center center no-repeat;
  72. height: 25px;
  73. width: auto;
  74. min-width: 25px;
  75. }
  76. .editable-inline {
  77. .editableform-loading {
  78. background-position: left 5px;
  79. }
  80. .add-on {
  81. .icon-th {
  82. margin-top: 3px;
  83. margin-left: 1px;
  84. }
  85. }
  86. }
  87. .editable-error-block {
  88. max-width: 300px;
  89. margin: 5px 0 0 0;
  90. width: auto;
  91. white-space: normal;
  92. }
  93. .editable-error-block.ui-state-error {
  94. padding: 3px;
  95. }
  96. .editable-error {
  97. color: red;
  98. }
  99. .editable-checklist {
  100. label {
  101. input[type="checkbox"] {
  102. vertical-align: middle;
  103. margin: 0;
  104. }
  105. span {
  106. vertical-align: middle;
  107. margin: 0;
  108. }
  109. white-space: nowrap;
  110. }
  111. }
  112. .editable-wysihtml5 {
  113. width: 566px;
  114. height: 250px;
  115. }
  116. .editable-clear {
  117. clear: both;
  118. font-size: 0.9em;
  119. text-decoration: none;
  120. text-align: right;
  121. }
  122. .editable-clear-x {
  123. background: url('../img/clear.png') center center no-repeat;
  124. display: block;
  125. width: 13px;
  126. height: 13px;
  127. position: absolute;
  128. opacity: 0.6;
  129. z-index: 100;
  130. top: 50%;
  131. right: 6px;
  132. margin-top: -6px;
  133. &:hover {
  134. opacity: 1;
  135. }
  136. }
  137. .editable-pre-wrapped {
  138. white-space: pre-wrap;
  139. }
  140. .editable-container.editable-popup {
  141. max-width: none !important;
  142. }
  143. .editable-container.popover {
  144. width: auto;
  145. }
  146. .editable-container.editable-inline {
  147. display: inline-block;
  148. vertical-align: middle;
  149. width: auto;
  150. zoom: 1;
  151. *display: inline;
  152. }
  153. .editable-container.ui-widget {
  154. font-size: inherit;
  155. z-index: 9990;
  156. }
  157. .editable-click {
  158. text-decoration: none;
  159. border-bottom: dashed 1px #0088cc;
  160. }
  161. a.editable-click {
  162. text-decoration: none;
  163. border-bottom: dashed 1px #0088cc;
  164. &:hover {
  165. text-decoration: none;
  166. border-bottom: dashed 1px #0088cc;
  167. }
  168. }
  169. .editable-click.editable-disabled {
  170. color: #585858;
  171. cursor: default;
  172. border-bottom: none;
  173. }
  174. a.editable-click.editable-disabled {
  175. color: #585858;
  176. cursor: default;
  177. border-bottom: none;
  178. &:hover {
  179. color: #585858;
  180. cursor: default;
  181. border-bottom: none;
  182. }
  183. }
  184. .editable-empty {
  185. font-style: italic;
  186. color: #DD1144;
  187. text-decoration: none;
  188. &:hover {
  189. font-style: italic;
  190. color: #DD1144;
  191. text-decoration: none;
  192. }
  193. &:focus {
  194. font-style: italic;
  195. color: #DD1144;
  196. text-decoration: none;
  197. }
  198. }
  199. .editable-unsaved {
  200. font-weight: bold;
  201. }
  202. .editable-bg-transition {
  203. -webkit-transition: background-color 1400ms ease-out;
  204. -moz-transition: background-color 1400ms ease-out;
  205. -o-transition: background-color 1400ms ease-out;
  206. -ms-transition: background-color 1400ms ease-out;
  207. transition: background-color 1400ms ease-out;
  208. }
  209. .form-horizontal {
  210. .editable {
  211. padding-top: 5px;
  212. display: inline-block;
  213. }
  214. }
  215. .editableform {
  216. .datepicker {
  217. padding: 4px;
  218. -webkit-border-radius: 4px;
  219. -moz-border-radius: 4px;
  220. border-radius: 4px;
  221. direction: ltr;
  222. > div {
  223. display: none;
  224. }
  225. table {
  226. margin: 0;
  227. tr {
  228. td.day {
  229. &:hover {
  230. background: #eeeeee;
  231. cursor: pointer;
  232. }
  233. }
  234. td.old {
  235. color: #999999;
  236. }
  237. td.new {
  238. color: #999999;
  239. }
  240. td.disabled {
  241. background: none;
  242. color: #999999;
  243. cursor: default;
  244. &:hover {
  245. background: none;
  246. color: #999999;
  247. cursor: default;
  248. }
  249. }
  250. td.today {
  251. background-color: #fde19a;
  252. background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
  253. background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
  254. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
  255. background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
  256. background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
  257. background-image: linear-gradient(top, #fdd49a, #fdf59a);
  258. background-repeat: repeat-x;
  259. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
  260. border-color: #fdf59a #fdf59a #fbed50;
  261. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  262. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  263. color: #000;
  264. &:hover {
  265. background-color: #fde19a;
  266. background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
  267. background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
  268. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
  269. background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
  270. background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
  271. background-image: linear-gradient(top, #fdd49a, #fdf59a);
  272. background-repeat: repeat-x;
  273. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
  274. border-color: #fdf59a #fdf59a #fbed50;
  275. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  276. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  277. color: #000;
  278. background-color: #fdf59a;
  279. &:hover {
  280. background-color: #fdf59a;
  281. color: #000;
  282. }
  283. &:active {
  284. background-color: #fdf59a;
  285. background-color: #fbf069 \9;
  286. }
  287. }
  288. &:active {
  289. background-color: #fdf59a;
  290. background-color: #fbf069 \9;
  291. }
  292. &:hover.active {
  293. background-color: #fdf59a;
  294. background-color: #fbf069 \9;
  295. }
  296. &:hover.disabled {
  297. background-color: #fdf59a;
  298. }
  299. &:hover[disabled] {
  300. background-color: #fdf59a;
  301. }
  302. }
  303. td.today.disabled {
  304. background-color: #fde19a;
  305. background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
  306. background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
  307. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
  308. background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
  309. background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
  310. background-image: linear-gradient(top, #fdd49a, #fdf59a);
  311. background-repeat: repeat-x;
  312. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
  313. border-color: #fdf59a #fdf59a #fbed50;
  314. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  315. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  316. color: #000;
  317. background-color: #fdf59a;
  318. &:hover {
  319. background-color: #fde19a;
  320. background-image: -moz-linear-gradient(top, #fdd49a, #fdf59a);
  321. background-image: -ms-linear-gradient(top, #fdd49a, #fdf59a);
  322. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fdd49a), to(#fdf59a));
  323. background-image: -webkit-linear-gradient(top, #fdd49a, #fdf59a);
  324. background-image: -o-linear-gradient(top, #fdd49a, #fdf59a);
  325. background-image: linear-gradient(top, #fdd49a, #fdf59a);
  326. background-repeat: repeat-x;
  327. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
  328. border-color: #fdf59a #fdf59a #fbed50;
  329. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  330. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  331. color: #000;
  332. background-color: #fdf59a;
  333. &:hover {
  334. background-color: #fdf59a;
  335. }
  336. &:active {
  337. background-color: #fdf59a;
  338. background-color: #fbf069 \9;
  339. }
  340. }
  341. &:active {
  342. background-color: #fdf59a;
  343. background-color: #fbf069 \9;
  344. }
  345. &:hover.active {
  346. background-color: #fdf59a;
  347. background-color: #fbf069 \9;
  348. }
  349. &:hover.disabled {
  350. background-color: #fdf59a;
  351. }
  352. &:hover[disabled] {
  353. background-color: #fdf59a;
  354. }
  355. }
  356. td.today.active {
  357. background-color: #fdf59a;
  358. background-color: #fbf069 \9;
  359. &:hover {
  360. color: #fff;
  361. }
  362. }
  363. td.today.disabled.active {
  364. background-color: #fdf59a;
  365. background-color: #fbf069 \9;
  366. }
  367. td.today.disabled.disabled {
  368. background-color: #fdf59a;
  369. }
  370. td.today[disabled] {
  371. background-color: #fdf59a;
  372. }
  373. td.today.disabled[disabled] {
  374. background-color: #fdf59a;
  375. }
  376. td.range {
  377. background: #eeeeee;
  378. -webkit-border-radius: 0;
  379. -moz-border-radius: 0;
  380. border-radius: 0;
  381. &:hover {
  382. background: #eeeeee;
  383. -webkit-border-radius: 0;
  384. -moz-border-radius: 0;
  385. border-radius: 0;
  386. }
  387. }
  388. td.range.disabled {
  389. background: #eeeeee;
  390. -webkit-border-radius: 0;
  391. -moz-border-radius: 0;
  392. border-radius: 0;
  393. &:hover {
  394. background: #eeeeee;
  395. -webkit-border-radius: 0;
  396. -moz-border-radius: 0;
  397. border-radius: 0;
  398. }
  399. }
  400. td.range.today {
  401. background-color: #f3d17a;
  402. background-image: -moz-linear-gradient(top, #f3c17a, #f3e97a);
  403. background-image: -ms-linear-gradient(top, #f3c17a, #f3e97a);
  404. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));
  405. background-image: -webkit-linear-gradient(top, #f3c17a, #f3e97a);
  406. background-image: -o-linear-gradient(top, #f3c17a, #f3e97a);
  407. background-image: linear-gradient(top, #f3c17a, #f3e97a);
  408. background-repeat: repeat-x;
  409. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);
  410. border-color: #f3e97a #f3e97a #edde34;
  411. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  412. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  413. -webkit-border-radius: 0;
  414. -moz-border-radius: 0;
  415. border-radius: 0;
  416. &:hover {
  417. background-color: #f3d17a;
  418. background-image: -moz-linear-gradient(top, #f3c17a, #f3e97a);
  419. background-image: -ms-linear-gradient(top, #f3c17a, #f3e97a);
  420. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));
  421. background-image: -webkit-linear-gradient(top, #f3c17a, #f3e97a);
  422. background-image: -o-linear-gradient(top, #f3c17a, #f3e97a);
  423. background-image: linear-gradient(top, #f3c17a, #f3e97a);
  424. background-repeat: repeat-x;
  425. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);
  426. border-color: #f3e97a #f3e97a #edde34;
  427. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  428. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  429. -webkit-border-radius: 0;
  430. -moz-border-radius: 0;
  431. border-radius: 0;
  432. background-color: #f3e97a;
  433. &:hover {
  434. background-color: #f3e97a;
  435. }
  436. &:active {
  437. background-color: #f3e97a;
  438. background-color: #efe24b \9;
  439. }
  440. }
  441. &:active {
  442. background-color: #f3e97a;
  443. background-color: #efe24b \9;
  444. }
  445. &:hover.active {
  446. background-color: #f3e97a;
  447. background-color: #efe24b \9;
  448. }
  449. &:hover.disabled {
  450. background-color: #f3e97a;
  451. }
  452. &:hover[disabled] {
  453. background-color: #f3e97a;
  454. }
  455. }
  456. td.range.today.disabled {
  457. background-color: #f3d17a;
  458. background-image: -moz-linear-gradient(top, #f3c17a, #f3e97a);
  459. background-image: -ms-linear-gradient(top, #f3c17a, #f3e97a);
  460. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));
  461. background-image: -webkit-linear-gradient(top, #f3c17a, #f3e97a);
  462. background-image: -o-linear-gradient(top, #f3c17a, #f3e97a);
  463. background-image: linear-gradient(top, #f3c17a, #f3e97a);
  464. background-repeat: repeat-x;
  465. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);
  466. border-color: #f3e97a #f3e97a #edde34;
  467. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  468. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  469. -webkit-border-radius: 0;
  470. -moz-border-radius: 0;
  471. border-radius: 0;
  472. background-color: #f3e97a;
  473. &:hover {
  474. background-color: #f3d17a;
  475. background-image: -moz-linear-gradient(top, #f3c17a, #f3e97a);
  476. background-image: -ms-linear-gradient(top, #f3c17a, #f3e97a);
  477. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f3c17a), to(#f3e97a));
  478. background-image: -webkit-linear-gradient(top, #f3c17a, #f3e97a);
  479. background-image: -o-linear-gradient(top, #f3c17a, #f3e97a);
  480. background-image: linear-gradient(top, #f3c17a, #f3e97a);
  481. background-repeat: repeat-x;
  482. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f3c17a', endColorstr='#f3e97a', GradientType=0);
  483. border-color: #f3e97a #f3e97a #edde34;
  484. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  485. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  486. -webkit-border-radius: 0;
  487. -moz-border-radius: 0;
  488. border-radius: 0;
  489. background-color: #f3e97a;
  490. &:hover {
  491. background-color: #f3e97a;
  492. }
  493. &:active {
  494. background-color: #f3e97a;
  495. background-color: #efe24b \9;
  496. }
  497. }
  498. &:active {
  499. background-color: #f3e97a;
  500. background-color: #efe24b \9;
  501. }
  502. &:hover.active {
  503. background-color: #f3e97a;
  504. background-color: #efe24b \9;
  505. }
  506. &:hover.disabled {
  507. background-color: #f3e97a;
  508. }
  509. &:hover[disabled] {
  510. background-color: #f3e97a;
  511. }
  512. }
  513. td.range.today.active {
  514. background-color: #f3e97a;
  515. background-color: #efe24b \9;
  516. }
  517. td.range.today.disabled.active {
  518. background-color: #f3e97a;
  519. background-color: #efe24b \9;
  520. }
  521. td.range.today.disabled.disabled {
  522. background-color: #f3e97a;
  523. }
  524. td.range.today[disabled] {
  525. background-color: #f3e97a;
  526. }
  527. td.range.today.disabled[disabled] {
  528. background-color: #f3e97a;
  529. }
  530. td.selected {
  531. background-color: #9e9e9e;
  532. background-image: -moz-linear-gradient(top, #b3b3b3, #808080);
  533. background-image: -ms-linear-gradient(top, #b3b3b3, #808080);
  534. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));
  535. background-image: -webkit-linear-gradient(top, #b3b3b3, #808080);
  536. background-image: -o-linear-gradient(top, #b3b3b3, #808080);
  537. background-image: linear-gradient(top, #b3b3b3, #808080);
  538. background-repeat: repeat-x;
  539. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);
  540. border-color: #808080 #808080 #595959;
  541. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  542. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  543. color: #fff;
  544. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  545. &:hover {
  546. background-color: #9e9e9e;
  547. background-image: -moz-linear-gradient(top, #b3b3b3, #808080);
  548. background-image: -ms-linear-gradient(top, #b3b3b3, #808080);
  549. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));
  550. background-image: -webkit-linear-gradient(top, #b3b3b3, #808080);
  551. background-image: -o-linear-gradient(top, #b3b3b3, #808080);
  552. background-image: linear-gradient(top, #b3b3b3, #808080);
  553. background-repeat: repeat-x;
  554. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);
  555. border-color: #808080 #808080 #595959;
  556. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  557. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  558. color: #fff;
  559. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  560. background-color: #808080;
  561. &:hover {
  562. background-color: #808080;
  563. }
  564. &:active {
  565. background-color: #808080;
  566. background-color: #666666 \9;
  567. }
  568. }
  569. &:active {
  570. background-color: #808080;
  571. background-color: #666666 \9;
  572. }
  573. &:hover.active {
  574. background-color: #808080;
  575. background-color: #666666 \9;
  576. }
  577. &:hover.disabled {
  578. background-color: #808080;
  579. }
  580. &:hover[disabled] {
  581. background-color: #808080;
  582. }
  583. }
  584. td.selected.disabled {
  585. background-color: #9e9e9e;
  586. background-image: -moz-linear-gradient(top, #b3b3b3, #808080);
  587. background-image: -ms-linear-gradient(top, #b3b3b3, #808080);
  588. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));
  589. background-image: -webkit-linear-gradient(top, #b3b3b3, #808080);
  590. background-image: -o-linear-gradient(top, #b3b3b3, #808080);
  591. background-image: linear-gradient(top, #b3b3b3, #808080);
  592. background-repeat: repeat-x;
  593. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);
  594. border-color: #808080 #808080 #595959;
  595. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  596. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  597. color: #fff;
  598. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  599. background-color: #808080;
  600. &:hover {
  601. background-color: #9e9e9e;
  602. background-image: -moz-linear-gradient(top, #b3b3b3, #808080);
  603. background-image: -ms-linear-gradient(top, #b3b3b3, #808080);
  604. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#b3b3b3), to(#808080));
  605. background-image: -webkit-linear-gradient(top, #b3b3b3, #808080);
  606. background-image: -o-linear-gradient(top, #b3b3b3, #808080);
  607. background-image: linear-gradient(top, #b3b3b3, #808080);
  608. background-repeat: repeat-x;
  609. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3b3b3', endColorstr='#808080', GradientType=0);
  610. border-color: #808080 #808080 #595959;
  611. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  612. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  613. color: #fff;
  614. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  615. background-color: #808080;
  616. &:hover {
  617. background-color: #808080;
  618. }
  619. &:active {
  620. background-color: #808080;
  621. background-color: #666666 \9;
  622. }
  623. }
  624. &:active {
  625. background-color: #808080;
  626. background-color: #666666 \9;
  627. }
  628. &:hover.active {
  629. background-color: #808080;
  630. background-color: #666666 \9;
  631. }
  632. &:hover.disabled {
  633. background-color: #808080;
  634. }
  635. &:hover[disabled] {
  636. background-color: #808080;
  637. }
  638. }
  639. td.selected.active {
  640. background-color: #808080;
  641. background-color: #666666 \9;
  642. }
  643. td.selected.disabled.active {
  644. background-color: #808080;
  645. background-color: #666666 \9;
  646. }
  647. td.selected.disabled.disabled {
  648. background-color: #808080;
  649. }
  650. td.selected[disabled] {
  651. background-color: #808080;
  652. }
  653. td.selected.disabled[disabled] {
  654. background-color: #808080;
  655. }
  656. td.active {
  657. background-color: #006dcc;
  658. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  659. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  660. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  661. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  662. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  663. background-image: linear-gradient(top, #0088cc, #0044cc);
  664. background-repeat: repeat-x;
  665. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  666. border-color: #0044cc #0044cc #002a80;
  667. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  668. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  669. color: #fff;
  670. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  671. &:hover {
  672. background-color: #006dcc;
  673. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  674. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  675. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  676. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  677. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  678. background-image: linear-gradient(top, #0088cc, #0044cc);
  679. background-repeat: repeat-x;
  680. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  681. border-color: #0044cc #0044cc #002a80;
  682. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  683. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  684. color: #fff;
  685. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  686. background-color: #0044cc;
  687. &:hover {
  688. background-color: #0044cc;
  689. }
  690. &:active {
  691. background-color: #0044cc;
  692. background-color: #003399 \9;
  693. }
  694. }
  695. &:active {
  696. background-color: #0044cc;
  697. background-color: #003399 \9;
  698. }
  699. &:hover.active {
  700. background-color: #0044cc;
  701. background-color: #003399 \9;
  702. }
  703. &:hover.disabled {
  704. background-color: #0044cc;
  705. }
  706. &:hover[disabled] {
  707. background-color: #0044cc;
  708. }
  709. }
  710. td.active.disabled {
  711. background-color: #006dcc;
  712. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  713. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  714. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  715. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  716. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  717. background-image: linear-gradient(top, #0088cc, #0044cc);
  718. background-repeat: repeat-x;
  719. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  720. border-color: #0044cc #0044cc #002a80;
  721. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  722. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  723. color: #fff;
  724. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  725. background-color: #0044cc;
  726. &:hover {
  727. background-color: #006dcc;
  728. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  729. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  730. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  731. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  732. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  733. background-image: linear-gradient(top, #0088cc, #0044cc);
  734. background-repeat: repeat-x;
  735. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  736. border-color: #0044cc #0044cc #002a80;
  737. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  738. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  739. color: #fff;
  740. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  741. background-color: #0044cc;
  742. &:hover {
  743. background-color: #0044cc;
  744. }
  745. &:active {
  746. background-color: #0044cc;
  747. background-color: #003399 \9;
  748. }
  749. }
  750. &:active {
  751. background-color: #0044cc;
  752. background-color: #003399 \9;
  753. }
  754. &:hover.active {
  755. background-color: #0044cc;
  756. background-color: #003399 \9;
  757. }
  758. &:hover.disabled {
  759. background-color: #0044cc;
  760. }
  761. &:hover[disabled] {
  762. background-color: #0044cc;
  763. }
  764. }
  765. td.active.active {
  766. background-color: #0044cc;
  767. background-color: #003399 \9;
  768. }
  769. td.active.disabled.active {
  770. background-color: #0044cc;
  771. background-color: #003399 \9;
  772. }
  773. td.active.disabled.disabled {
  774. background-color: #0044cc;
  775. }
  776. td.active[disabled] {
  777. background-color: #0044cc;
  778. }
  779. td.active.disabled[disabled] {
  780. background-color: #0044cc;
  781. }
  782. td {
  783. span {
  784. display: block;
  785. width: 23%;
  786. height: 54px;
  787. line-height: 54px;
  788. float: left;
  789. margin: 1%;
  790. cursor: pointer;
  791. -webkit-border-radius: 4px;
  792. -moz-border-radius: 4px;
  793. border-radius: 4px;
  794. &:hover {
  795. background: #eeeeee;
  796. }
  797. }
  798. span.disabled {
  799. background: none;
  800. color: #999999;
  801. cursor: default;
  802. &:hover {
  803. background: none;
  804. color: #999999;
  805. cursor: default;
  806. }
  807. }
  808. span.active {
  809. background-color: #006dcc;
  810. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  811. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  812. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  813. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  814. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  815. background-image: linear-gradient(top, #0088cc, #0044cc);
  816. background-repeat: repeat-x;
  817. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  818. border-color: #0044cc #0044cc #002a80;
  819. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  820. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  821. color: #fff;
  822. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  823. &:hover {
  824. background-color: #006dcc;
  825. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  826. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  827. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  828. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  829. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  830. background-image: linear-gradient(top, #0088cc, #0044cc);
  831. background-repeat: repeat-x;
  832. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  833. border-color: #0044cc #0044cc #002a80;
  834. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  835. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  836. color: #fff;
  837. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  838. background-color: #0044cc;
  839. &:hover {
  840. background-color: #0044cc;
  841. }
  842. &:active {
  843. background-color: #0044cc;
  844. background-color: #003399 \9;
  845. }
  846. }
  847. &:active {
  848. background-color: #0044cc;
  849. background-color: #003399 \9;
  850. }
  851. &:hover.active {
  852. background-color: #0044cc;
  853. background-color: #003399 \9;
  854. }
  855. &:hover.disabled {
  856. background-color: #0044cc;
  857. }
  858. &:hover[disabled] {
  859. background-color: #0044cc;
  860. }
  861. }
  862. span.active.disabled {
  863. background-color: #006dcc;
  864. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  865. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  866. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  867. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  868. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  869. background-image: linear-gradient(top, #0088cc, #0044cc);
  870. background-repeat: repeat-x;
  871. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  872. border-color: #0044cc #0044cc #002a80;
  873. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  874. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  875. color: #fff;
  876. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  877. background-color: #0044cc;
  878. &:hover {
  879. background-color: #006dcc;
  880. background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
  881. background-image: -ms-linear-gradient(top, #0088cc, #0044cc);
  882. background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
  883. background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
  884. background-image: -o-linear-gradient(top, #0088cc, #0044cc);
  885. background-image: linear-gradient(top, #0088cc, #0044cc);
  886. background-repeat: repeat-x;
  887. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0);
  888. border-color: #0044cc #0044cc #002a80;
  889. border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  890. filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  891. color: #fff;
  892. text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  893. background-color: #0044cc;
  894. &:hover {
  895. background-color: #0044cc;
  896. }
  897. &:active {
  898. background-color: #0044cc;
  899. background-color: #003399 \9;
  900. }
  901. }
  902. &:active {
  903. background-color: #0044cc;
  904. background-color: #003399 \9;
  905. }
  906. &:hover.active {
  907. background-color: #0044cc;
  908. background-color: #003399 \9;
  909. }
  910. &:hover.disabled {
  911. background-color: #0044cc;
  912. }
  913. &:hover[disabled] {
  914. background-color: #0044cc;
  915. }
  916. }
  917. span.active.active {
  918. background-color: #0044cc;
  919. background-color: #003399 \9;
  920. }
  921. span.active.disabled.active {
  922. background-color: #0044cc;
  923. background-color: #003399 \9;
  924. }
  925. span.active.disabled.disabled {
  926. background-color: #0044cc;
  927. }
  928. span.active[disabled] {
  929. background-color: #0044cc;
  930. }
  931. span.active.disabled[disabled] {
  932. background-color: #0044cc;
  933. }
  934. span.old {
  935. color: #999999;
  936. }
  937. span.new {
  938. color: #999999;
  939. }
  940. }
  941. }
  942. }
  943. td {
  944. text-align: center;
  945. width: 20px;
  946. height: 20px;
  947. -webkit-border-radius: 4px;
  948. -moz-border-radius: 4px;
  949. border-radius: 4px;
  950. border: none;
  951. }
  952. th {
  953. text-align: center;
  954. width: 20px;
  955. height: 20px;
  956. -webkit-border-radius: 4px;
  957. -moz-border-radius: 4px;
  958. border-radius: 4px;
  959. border: none;
  960. }
  961. th.datepicker-switch {
  962. width: 145px;
  963. }
  964. thead {
  965. tr {
  966. &:first-child {
  967. th {
  968. cursor: pointer;
  969. &:hover {
  970. background: #eeeeee;
  971. }
  972. }
  973. th.cw {
  974. cursor: default;
  975. background-color: transparent;
  976. }
  977. }
  978. }
  979. }
  980. tfoot {
  981. tr {
  982. th {
  983. cursor: pointer;
  984. &:hover {
  985. background: #eeeeee;
  986. }
  987. }
  988. }
  989. }
  990. .cw {
  991. font-size: 10px;
  992. width: 12px;
  993. padding: 0 2px 0 5px;
  994. vertical-align: middle;
  995. }
  996. }
  997. .datepicker-inline {
  998. width: 220px;
  999. }
  1000. .datepicker.datepicker-rtl {
  1001. direction: rtl;
  1002. table {
  1003. tr {
  1004. td {
  1005. span {
  1006. float: right;
  1007. }
  1008. }
  1009. }
  1010. }
  1011. }
  1012. .datepicker-dropdown {
  1013. top: 0;
  1014. left: 0;
  1015. &:before {
  1016. content: '';
  1017. display: inline-block;
  1018. border-left: 7px solid transparent;
  1019. border-right: 7px solid transparent;
  1020. border-bottom: 7px solid #ccc;
  1021. border-bottom-color: rgba(0, 0, 0, 0.2);
  1022. position: absolute;
  1023. top: -7px;
  1024. left: 6px;
  1025. }
  1026. &:after {
  1027. content: '';
  1028. display: inline-block;
  1029. border-left: 6px solid transparent;
  1030. border-right: 6px solid transparent;
  1031. border-bottom: 6px solid #ffffff;
  1032. position: absolute;
  1033. top: -6px;
  1034. left: 7px;
  1035. }
  1036. }
  1037. .datepicker.days {
  1038. div.datepicker-days {
  1039. display: block;
  1040. }
  1041. }
  1042. .datepicker.months {
  1043. div.datepicker-months {
  1044. display: block;
  1045. }
  1046. }
  1047. .datepicker.years {
  1048. div.datepicker-years {
  1049. display: block;
  1050. }
  1051. }
  1052. }
  1053. .table-striped {
  1054. .datepicker {
  1055. table {
  1056. tr {
  1057. td {
  1058. background-color: transparent;
  1059. }
  1060. th {
  1061. background-color: transparent;
  1062. }
  1063. }
  1064. }
  1065. }
  1066. }
  1067. .input-append.date {
  1068. .add-on {
  1069. i {
  1070. display: block;
  1071. cursor: pointer;
  1072. width: 16px;
  1073. height: 16px;
  1074. }
  1075. }
  1076. }
  1077. .input-prepend.date {
  1078. .add-on {
  1079. i {
  1080. display: block;
  1081. cursor: pointer;
  1082. width: 16px;
  1083. height: 16px;
  1084. }
  1085. }
  1086. }
  1087. .input-daterange {
  1088. input {
  1089. text-align: center;
  1090. &:first-child {
  1091. -webkit-border-radius: 3px 0 0 3px;
  1092. -moz-border-radius: 3px 0 0 3px;
  1093. border-radius: 3px 0 0 3px;
  1094. }
  1095. &:last-child {
  1096. -webkit-border-radius: 0 3px 3px 0;
  1097. -moz-border-radius: 0 3px 3px 0;
  1098. border-radius: 0 3px 3px 0;
  1099. }
  1100. }
  1101. .add-on {
  1102. display: inline-block;
  1103. width: auto;
  1104. min-width: 16px;
  1105. height: 18px;
  1106. padding: 4px 5px;
  1107. font-weight: normal;
  1108. line-height: 18px;
  1109. text-align: center;
  1110. text-shadow: 0 1px 0 #ffffff;
  1111. vertical-align: middle;
  1112. background-color: #eeeeee;
  1113. border: 1px solid #ccc;
  1114. margin-left: -5px;
  1115. margin-right: -5px;
  1116. }
  1117. }