thirdparty-fuelux.less 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. @wizard-step-border:#CED1D6;
  2. @wizard-step-color:#546474;
  3. @wizard-step-active-border:#5293C4;
  4. @wizard-step-complete-color:#87BA21;
  5. @wizard-step-title-color:#949EA7;
  6. @wizard-step-active-title-color:#2B3D53;
  7. //spinner
  8. .enable_plugin_fuelux_spinner() when (@enable-plugin-fuelux-spinner = true) {
  9. .ace-spinner {
  10. display: inline-block;
  11. .spinbox-buttons {
  12. min-width: 18px;
  13. > .btn {
  14. .border-radius(0) !important;
  15. font-size: 10px;
  16. padding: 0;
  17. width: 18px;
  18. height: 14px;
  19. line-height: 8px;
  20. margin-left: 0;
  21. &:first-child {
  22. margin-top:0;
  23. }
  24. > .@{icon} {
  25. //font-size: 10px;
  26. margin: 0;
  27. padding: 0;
  28. }
  29. }
  30. > button.btn.spinbox-up {
  31. &:active { top: -1px; }
  32. }
  33. }
  34. .spinbox-input {
  35. text-align: center;
  36. height: 29px;
  37. line-height: 1.2;
  38. color: #777;
  39. }
  40. }
  41. .ace-spinner:not(.touch-spinner) .spinbox-buttons > .btn > .@{icon} {
  42. margin-top: -1px;
  43. }
  44. //touch spinner buttons
  45. .ace-spinner.touch-spinner .spinbox-buttons {
  46. margin: 0;
  47. font-size: 0;
  48. }
  49. .ace-spinner.touch-spinner .spinbox-buttons > .btn {
  50. height: 29px;
  51. line-height: 16px;
  52. width: 24px;
  53. font-size: @font-size-spinner-button-large;
  54. display: inline-block;
  55. vertical-align: sub;
  56. margin: 0 1px !important;//to override .RTL's
  57. }
  58. .ace-spinner.touch-spinner .spinbox-buttons > .btn > .@{icon}{
  59. vertical-align :middle;
  60. display: inline-block;
  61. }
  62. }
  63. .enable_plugin_fuelux_spinner();
  64. //wizard
  65. .enable_plugin_fuelux_wizard() when (@enable-plugin-fuelux-wizard = true) {
  66. .steps {
  67. list-style:none;
  68. display:table;
  69. width:100%;
  70. padding:0;
  71. margin:0;
  72. position:relative;
  73. li {
  74. display: table-cell;
  75. text-align: center;
  76. width: 1%;
  77. .step {
  78. border: 5px solid @wizard-step-border;
  79. color: @wizard-step-color;
  80. font-size: @font-size-wizard-step;
  81. border-radius: 100%;
  82. background-color: #FFF;
  83. position: relative;
  84. z-index: 2;
  85. display: inline-block;
  86. width: 40px;
  87. height: 40px;
  88. line-height: 30px;
  89. text-align: center;
  90. }
  91. &:before {//the line running through each step
  92. display: block;
  93. content: "";
  94. width: 100%;
  95. height: 1px;
  96. font-size: 0;
  97. overflow: hidden;
  98. border-top: 4px solid #CED1D6;
  99. position: relative;
  100. top: 21px;
  101. z-index: 1;
  102. }
  103. &.last-child:before {
  104. max-width:50%;
  105. width:50%;
  106. }
  107. &:last-child:before {
  108. max-width:50%;
  109. width:50%;
  110. }
  111. &:first-child:before {
  112. max-width:51%;
  113. left:50%;
  114. }
  115. &.active, &.complete {
  116. &:before, .step {
  117. border-color:@wizard-step-active-border;
  118. }
  119. }
  120. &.complete {
  121. .step {
  122. cursor:default;
  123. color:#FFF;
  124. &:before {
  125. display:block;
  126. position:absolute;
  127. top:0; left:0; bottom:0; right:0;
  128. line-height:30px; text-align:center;
  129. border-radius: 100%;
  130. content:"\f00c";
  131. background-color: #FFF;
  132. z-index: 3;
  133. font-family: FontAwesome;
  134. font-size: 17px;
  135. color:@wizard-step-complete-color;
  136. }
  137. .transition(~"transform ease 0.1s");
  138. }
  139. &:hover {
  140. .step {
  141. .transform(~"scale(1.1)");
  142. border-color:lighten(@wizard-step-active-border , 12%);
  143. }
  144. &:before {
  145. border-color:lighten(@wizard-step-active-border , 12%);
  146. }
  147. }
  148. }
  149. .title{
  150. display:block;
  151. margin-top:4px;
  152. max-width:100%;
  153. color:@wizard-step-title-color;
  154. font-size: @font-size-wizard-title;
  155. z-index:104;
  156. text-align:center;
  157. table-layout:fixed;
  158. word-wrap:break-word;
  159. }
  160. &.complete .title , &.active .title{
  161. color:@wizard-step-active-title-color;
  162. }
  163. }
  164. }
  165. .step-content {
  166. position: relative;
  167. }
  168. .step-content .step-pane {
  169. display: none;
  170. min-height: 200px;
  171. padding: 4px 8px 12px;
  172. }
  173. .step-content .step-pane.active {
  174. display: block;
  175. }
  176. .wizard-actions {
  177. text-align:right;
  178. }
  179. @media only screen and (max-width: @screen-xs-max) {
  180. .steps li .step {
  181. width: 30px;
  182. height: 30px;
  183. line-height:24px;
  184. border-width: 3px;
  185. }
  186. .steps li:before , .steps li:after {
  187. border-width: 3px;
  188. }
  189. .steps li.complete .step:before{
  190. line-height: 24px;
  191. font-size: 13px;
  192. }
  193. .steps li:before {
  194. top:16px;
  195. }
  196. .step-content .step-pane {
  197. padding: 4px 4px 6px;
  198. min-height: 150px;
  199. }
  200. }
  201. }
  202. .enable_plugin_fuelux_wizard();
  203. //tree control
  204. .enable_plugin_fuelux_treeview() when (@enable-plugin-fuelux-treeview = true) {
  205. @tree-border-color:#67B2DD;
  206. .tree {
  207. margin: auto;
  208. padding: 0 0 0 9px;
  209. overflow-x: hidden;
  210. overflow-y: auto;
  211. position: relative;
  212. &:before {
  213. display:inline-block;
  214. content: "";
  215. position: absolute;
  216. top: -20px;
  217. bottom: 16px;
  218. left: 0;
  219. z-index: 1;
  220. border:1px dotted @tree-border-color;
  221. border-width: 0 0 0 1px;
  222. }
  223. .tree-branch-name, .tree-item-name {
  224. cursor: pointer;
  225. }
  226. .tree-branch {
  227. width: auto;
  228. min-height: 20px;
  229. cursor: pointer;
  230. .tree-branch-header {
  231. position: relative;
  232. height: 20px;
  233. line-height: 20px;
  234. &:hover {
  235. background-color: #F0F7FC;
  236. }
  237. }
  238. }
  239. .tree-branch .tree-branch-header .tree-branch-name , .tree-item .tree-item-name {
  240. display: inline;
  241. z-index: 2;
  242. }
  243. .tree-branch .tree-branch-header > .tree-branch-name > .@{icon}:first-child ,
  244. .tree-item > .tree-item-name > .@{icon}:first-child {
  245. display: inline-block;
  246. position: relative;
  247. z-index: 2;
  248. top: -1px;
  249. }
  250. .tree-branch {
  251. > .tree-branch-header {
  252. > .tree-branch-name {
  253. > .tree-label {
  254. margin-left: 2px;
  255. }
  256. > .@{icon}:first-child {
  257. margin: -2px 0 0 -2px;
  258. }
  259. }
  260. }
  261. &:last-child:after {
  262. display: inline-block;
  263. content: "";
  264. position: absolute;
  265. z-index: 1;
  266. top: 15px;
  267. bottom: 0;
  268. left: -15px;
  269. border-left: 1px solid #FFF;
  270. }
  271. .tree-branch-children {
  272. margin: 0 0 0 23px;
  273. padding: 0;
  274. position: relative;
  275. &:before {
  276. display: inline-block;
  277. content: "";
  278. position: absolute;
  279. z-index: 1;
  280. top: -14px;
  281. bottom: 16px;
  282. left: -14px;
  283. border: 1px dotted @tree-border-color;
  284. border-width: 0 0 0 1px;
  285. }
  286. }
  287. }
  288. .tree-item {
  289. position: relative;
  290. height: 20px;
  291. line-height: 20px;
  292. cursor: pointer;
  293. &:hover {
  294. background-color: #F0F7FC;
  295. }
  296. > .tree-item-name {
  297. > .@{icon}:first-child {
  298. margin-right: 3px;
  299. }
  300. > .tree-label > .@{icon}:first-child {
  301. margin-left: 3px;
  302. margin-right: 3px;
  303. }
  304. }
  305. > .@{icon}:first-child {
  306. margin-top: -1px;
  307. }
  308. }
  309. .tree-branch , .tree-item {
  310. position: relative;
  311. list-style: none;
  312. &:before {
  313. display: inline-block;
  314. content: "";
  315. position: absolute;
  316. top: 14px;
  317. left: -13px;
  318. width: 18px;
  319. height: 0;
  320. border-top: 1px dotted @tree-border-color;
  321. z-index:1;
  322. }
  323. }
  324. .tree-selected {
  325. background-color: rgba(98, 168, 209 , 0.1);
  326. color: #6398B0;
  327. &:hover {
  328. background-color: rgba(98, 168, 209 , 0.1);
  329. }
  330. }
  331. .tree-item , .tree-branch {
  332. border: 1px solid #FFF;
  333. }
  334. .tree-branch .tree-branch-header {
  335. border-radius: 0;
  336. }
  337. .tree-item , .tree-branch .tree-branch-header {
  338. margin: 0;
  339. padding: 5px;
  340. color: #4D6878;
  341. .box-sizing(content-box);
  342. }
  343. .tree-item > .tree-item-name > .@{icon}:first-child {
  344. color: #F9E8CE;
  345. border: 1px solid #CCC;
  346. width: 13px;
  347. height: 13px;
  348. line-height: 13px;
  349. font-size: 11px;
  350. text-align: center;
  351. border-radius: 3px;
  352. .box-sizing(content-box);
  353. background-color: #FAFAFA;
  354. border: 1px solid #CCC;
  355. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  356. }
  357. .tree-selected > .tree-item-name > .@{icon}:first-child {
  358. background-color: #F9A021;
  359. border-color: #F9A021;
  360. color: #FFF;
  361. }
  362. .tree-plus.@{icon}:first-child , .tree-minus.@{icon}:first-child {
  363. display: inline-block;
  364. font-style: normal;
  365. border: 1px solid #DDD;
  366. vertical-align: middle;
  367. height: 11px;
  368. width: 11px;
  369. .box-sizing(content-box);
  370. text-align:center;
  371. border: 1px solid #8BAEBF;
  372. line-height: 10px;
  373. background-color: #FFF;
  374. position: relative;
  375. z-index: 2;
  376. &:before {
  377. content: "";
  378. display: block;
  379. width: 7px;
  380. height: 0;
  381. border-top: 1px solid #4D6878;
  382. position: absolute;
  383. top: 5px;
  384. left: 2px;
  385. }
  386. }
  387. .tree-plus.@{icon}:first-child:after {
  388. content: "";
  389. display: block;
  390. height: 7px;
  391. width: 0;
  392. border-left: 1px solid #4D6878;
  393. position: absolute;
  394. top: 2px;
  395. left: 5px;
  396. }
  397. .tree-unselectable .tree-item > .tree-item-name > .tree-label > .@{icon}:first-child {
  398. color: #5084A0;
  399. border: none;
  400. width: 13px;
  401. height: 13px;
  402. line-height: 13px;
  403. font-size: 10px;
  404. text-align: center;
  405. border-radius: 0;
  406. background-color: transparent;
  407. border: none;
  408. box-shadow: none;
  409. }
  410. .@{icon}[class*="-down"] {
  411. transform: rotate(-45deg);
  412. }
  413. .@{icon}[class*="-download"] {
  414. transform: none;
  415. }
  416. .fa-spin {
  417. height: auto;
  418. }
  419. .tree-loading {
  420. margin-left: 36px;
  421. }
  422. img {
  423. display: inline;
  424. veritcal-align: middle;
  425. }
  426. }
  427. }
  428. .enable_plugin_fuelux_treeview();