thirdparty-fuelux.less 8.9 KB

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