app.utilities.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. .pos-rlt{position: relative;}
  2. .pos-stc{position: static !important;}
  3. .pos-abt{position: absolute;}
  4. .pos-fix{position: fixed;}
  5. .show{visibility: visible;}
  6. .line {width: 100%;height: 2px;margin: 10px 0;font-size:0;overflow: hidden;}
  7. .line-xs{margin: 0}
  8. .line-lg{margin-top:15px;margin-bottom: 15px}
  9. .line-dashed{border-style: dashed !important;background-color: transparent;border-width:0;}
  10. .no-line{border-width: 0}
  11. .no-border, .no-borders{border-color:transparent;border-width:0}
  12. .no-radius{border-radius: 0}
  13. .block{display:block;}
  14. .block.hide{display: none;}
  15. .inline{display:inline-block !important;}
  16. .none{display: none;}
  17. .pull-none{float: none;}
  18. .rounded{border-radius: 500px;}
  19. .clear{display:block;overflow: hidden;}
  20. .no-bg{background-color: transparent; color: inherit;}
  21. .no-select{
  22. -webkit-touch-callout: none;
  23. -webkit-user-select: none;
  24. -khtml-user-select: none;
  25. -moz-user-select: none;
  26. -ms-user-select: none;
  27. user-select: none;
  28. }
  29. .l-h{line-height: @line-height-base;}
  30. .l-h-0x{line-height: 0;}
  31. .l-h-1x{line-height: 1.2;}
  32. .l-h-2x{line-height: 2em;}
  33. .l-s-1x{letter-spacing: 1}
  34. .l-s-2x{letter-spacing: 2}
  35. .l-s-3x{letter-spacing: 3}
  36. .font-normal{font-weight: normal;}
  37. .font-thin{font-weight: 300;}
  38. .font-bold{font-weight: 700;}
  39. .text-3x{font-size: 3em;}
  40. .text-2x{font-size: 2em;}
  41. .text-lg{font-size: @font-size-lg;}
  42. .text-md{font-size: @font-size-md;}
  43. .text-base{font-size: @font-size-base;}
  44. .text-sm{font-size: @font-size-sm;}
  45. .text-xs{font-size: @font-size-xs;}
  46. .text-xxs{text-indent: -9999px}
  47. .text-ellipsis{
  48. display: block;
  49. white-space: nowrap;
  50. overflow: hidden;
  51. text-overflow:ellipsis;
  52. }
  53. .text-u-c{text-transform: uppercase;}
  54. .text-l-t{text-decoration: line-through;}
  55. .text-u-l{text-decoration: underline;}
  56. .text-active, .active > .text, .active > .auto .text{display: none !important;}
  57. .active > .text-active, .active > .auto .text-active{display: inline-block !important;}
  58. .box-shadow{
  59. box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05);
  60. }
  61. .box-shadow-lg{
  62. box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
  63. }
  64. .text-shadow{
  65. font-size: 170px;
  66. text-shadow: 0 1px 0 @border-color,0 2px 0 lighten(@border-color, 10%),0 5px 10px rgba(0,0,0,.125),0 10px 20px rgba(0,0,0,.2);
  67. }
  68. .no-shadow{
  69. -webkit-box-shadow: none !important;
  70. box-shadow: none !important;
  71. }
  72. .wrapper-xs{padding: 5px;}
  73. .wrapper-sm{padding: 10px;}
  74. .wrapper{padding: 15px;}
  75. .wrapper-md{padding: 20px;}
  76. .wrapper-lg{padding: 30px;}
  77. .wrapper-xl{padding: 50px;}
  78. .padder-lg{padding-left:30px;padding-right: 30px}
  79. .padder-md{padding-left:20px;padding-right: 20px}
  80. .padder{padding-left:15px;padding-right: 15px}
  81. .padder-v{padding-top:15px;padding-bottom: 15px}
  82. .no-padder{padding: 0 !important;}
  83. .pull-in{margin-left: -15px;margin-right: -15px;}
  84. .pull-out{margin:-10px -15px;}
  85. .b{border: 1px solid rgba(0, 0, 0, 0.05)}
  86. .b-a{border: 1px solid @border-color}
  87. .b-t{border-top: 1px solid @border-color}
  88. .b-r{border-right: 1px solid @border-color}
  89. .b-b{border-bottom: 1px solid @border-color}
  90. .b-l{border-left: 1px solid @border-color}
  91. .b-light{border-color: @brand-light}
  92. .b-dark{border-color: @brand-dark}
  93. .b-black{border-color: @brand-dark}
  94. .b-primary{border-color: @brand-primary}
  95. .b-success{border-color: @brand-success}
  96. .b-info{border-color: @brand-info}
  97. .b-warning{border-color: @brand-warning}
  98. .b-danger{border-color: @brand-danger}
  99. .b-white{border-color: #fff}
  100. .b-dashed{border-style: dashed !important;}
  101. .b-l-light{border-left-color: @brand-light}
  102. .b-l-dark{border-left-color: @brand-dark}
  103. .b-l-black{border-left-color: @brand-dark}
  104. .b-l-primary{border-left-color: @brand-primary}
  105. .b-l-success{border-left-color: @brand-success}
  106. .b-l-info{border-left-color: @brand-info}
  107. .b-l-warning{border-left-color: @brand-warning}
  108. .b-l-danger{border-left-color: @brand-danger}
  109. .b-l-white{border-left-color: #fff}
  110. .b-l-2x{border-left-width: 2px}
  111. .b-l-3x{border-left-width: 3px}
  112. .b-l-4x{border-left-width: 4px}
  113. .b-l-5x{border-left-width: 5px}
  114. .b-2x{border-width: 2px}
  115. .b-3x{border-width: 3px}
  116. .b-4x{border-width: 4px}
  117. .b-5x{border-width: 5px}
  118. .r{
  119. border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
  120. }
  121. .r-2x{
  122. border-radius: @border-radius-base * 2;
  123. }
  124. .r-3x{
  125. border-radius: @border-radius-base * 3;
  126. }
  127. .r-l{
  128. border-radius: @border-radius-base 0 0 @border-radius-base;
  129. }
  130. .r-r{
  131. border-radius: 0 @border-radius-base @border-radius-base 0;
  132. }
  133. .r-t{
  134. border-radius: @border-radius-base @border-radius-base 0 0;
  135. }
  136. .r-b{
  137. border-radius: 0 0 @border-radius-base @border-radius-base;
  138. }
  139. .m-xxs{margin: 2px 4px}
  140. .m-xs{margin: 5px;}
  141. .m-sm{margin: 10px;}
  142. .m{margin: 15px;}
  143. .m-md{margin: 20px;}
  144. .m-lg{margin: 30px;}
  145. .m-xl{margin: 50px;}
  146. .m-n{margin: 0 !important}
  147. .m-l-none{margin-left: 0 !important}
  148. .m-l-xs{margin-left: 5px;}
  149. .m-l-sm{margin-left: 10px;}
  150. .m-l{margin-left: 15px}
  151. .m-l-md{margin-left: 20px;}
  152. .m-l-lg{margin-left: 30px;}
  153. .m-l-xl{margin-left: 40px;}
  154. .m-l-xxl{margin-left: 50px;}
  155. .m-l-n-xxs{margin-left: -1px}
  156. .m-l-n-xs{margin-left: -5px}
  157. .m-l-n-sm{margin-left: -10px}
  158. .m-l-n{margin-left: -15px}
  159. .m-l-n-md{margin-left: -20px}
  160. .m-l-n-lg{margin-left: -30px}
  161. .m-l-n-xl{margin-left: -40px}
  162. .m-l-n-xxl{margin-left: -50px}
  163. .m-t-none{margin-top:0 !important}
  164. .m-t-xxs{margin-top: 1px;}
  165. .m-t-xs{margin-top: 5px;}
  166. .m-t-sm{margin-top: 10px;}
  167. .m-t{margin-top: 15px}
  168. .m-t-md{margin-top: 20px;}
  169. .m-t-lg{margin-top: 30px;}
  170. .m-t-xl{margin-top: 40px;}
  171. .m-t-xxl{margin-top: 50px;}
  172. .m-t-n-xxs{margin-top: -1px}
  173. .m-t-n-xs{margin-top: -5px}
  174. .m-t-n-sm{margin-top: -10px}
  175. .m-t-n{margin-top: -15px}
  176. .m-t-n-md{margin-top: -20px}
  177. .m-t-n-lg{margin-top: -30px}
  178. .m-t-n-xl{margin-top: -40px}
  179. .m-t-n-xxl{margin-top: -50px}
  180. .m-r-none{margin-right: 0 !important}
  181. .m-r-xxs{margin-right: 1px}
  182. .m-r-xs{margin-right: 5px}
  183. .m-r-sm{margin-right: 10px}
  184. .m-r{margin-right: 15px}
  185. .m-r-md{margin-right: 20px}
  186. .m-r-lg{margin-right: 30px}
  187. .m-r-xl{margin-right: 40px}
  188. .m-r-xxl{margin-right: 50px}
  189. .m-r-n-xxs{margin-right: -1px}
  190. .m-r-n-xs{margin-right: -5px}
  191. .m-r-n-sm{margin-right: -10px}
  192. .m-r-n{margin-right: -15px}
  193. .m-r-n-md{margin-right: -20px}
  194. .m-r-n-lg{margin-right: -30px}
  195. .m-r-n-xl{margin-right: -40px}
  196. .m-r-n-xxl{margin-right: -50px}
  197. .m-b-none{margin-bottom: 0 !important}
  198. .m-b-xxs{margin-bottom: 1px;}
  199. .m-b-xs{margin-bottom: 5px;}
  200. .m-b-sm{margin-bottom: 10px;}
  201. .m-b{margin-bottom: 15px;}
  202. .m-b-md{margin-bottom: 20px;}
  203. .m-b-lg{margin-bottom: 30px;}
  204. .m-b-xl{margin-bottom: 40px;}
  205. .m-b-xxl{margin-bottom: 50px;}
  206. .m-b-n-xxs{margin-bottom: -1px}
  207. .m-b-n-xs{margin-bottom: -5px}
  208. .m-b-n-sm{margin-bottom: -10px}
  209. .m-b-n{margin-bottom: -15px}
  210. .m-b-n-md{margin-bottom: -20px}
  211. .m-b-n-lg{margin-bottom: -30px}
  212. .m-b-n-xl{margin-bottom: -40px}
  213. .m-b-n-xxl{margin-bottom: -50px}
  214. .avatar{
  215. position: relative;
  216. display: block;
  217. border-radius: 500px;
  218. white-space: nowrap;
  219. img{
  220. border-radius: 500px;
  221. width: 100%;
  222. }
  223. i{
  224. position: absolute;
  225. left: 0;
  226. top: 0;
  227. width: 10px;
  228. height: 10px;
  229. margin: 2px;
  230. border-width: 2px;
  231. border-style: solid;
  232. border-radius: 100%;
  233. &.right{
  234. left: auto;
  235. right: 0;
  236. }
  237. &.bottom{
  238. left: auto;
  239. top: auto;
  240. bottom: 0;
  241. right: 0;
  242. }
  243. &.left{
  244. top: auto;
  245. bottom: 0;
  246. }
  247. &.on{
  248. background-color: @brand-success;
  249. }
  250. &.off{
  251. background-color: @text-muted;
  252. }
  253. &.busy{
  254. background-color: @brand-danger;
  255. }
  256. &.away{
  257. background-color: @brand-warning;
  258. }
  259. }
  260. &.thumb-md i {
  261. width: 12px;
  262. height: 12px;
  263. margin: 3px;
  264. }
  265. &.thumb-sm i {
  266. margin: 1px;
  267. }
  268. &.thumb-xs i {
  269. margin: 0;
  270. }
  271. }
  272. .w-xxs{
  273. width: 60px;
  274. }
  275. .w-xs{
  276. width: 90px;
  277. }
  278. .w-sm{
  279. width: 150px;
  280. }
  281. .w{
  282. width: 200px;
  283. }
  284. .w-md{
  285. width: 240px;
  286. }
  287. .w-lg{
  288. width: 280px;
  289. }
  290. .w-xl{
  291. width: 320px;
  292. }
  293. .w-xxl{
  294. width: 360px;
  295. }
  296. .w-full{
  297. width: 100%;
  298. }
  299. .w-auto{
  300. width: auto;
  301. }
  302. .h-auto{
  303. height: auto;
  304. }
  305. .h-full{
  306. height: 100%;
  307. }
  308. .thumb-xl{width: 128px;display: inline-block}
  309. .thumb-lg{width: 96px;display: inline-block}
  310. .thumb-md{width: 64px;display: inline-block}
  311. .thumb{width: 50px;display: inline-block}
  312. .thumb-sm{width: 40px;display: inline-block}
  313. .thumb-xs{width: 34px;display: inline-block}
  314. .thumb-xxs{width: 30px;display: inline-block}
  315. .thumb-wrapper{padding: 2px; border: 1px solid @border-color}
  316. .thumb,
  317. .thumb-xs,
  318. .thumb-sm,
  319. .thumb-md,
  320. .thumb-lg,
  321. .thumb-btn{
  322. img{
  323. height: auto;
  324. max-width: 100%;
  325. vertical-align: middle;
  326. }
  327. }
  328. .img-full{
  329. width: 100%;
  330. img{
  331. width: 100%;
  332. }
  333. }
  334. .scrollable{
  335. overflow-x: hidden;
  336. overflow-y: auto;
  337. -webkit-overflow-scrolling: touch;
  338. &.hover {
  339. overflow-y: hidden !important;
  340. &:hover
  341. {
  342. overflow: visible !important;
  343. overflow-y: auto !important;
  344. }
  345. }
  346. .smart & {
  347. overflow-y: auto !important;
  348. }
  349. }
  350. .scroll-x, .scroll-y{overflow:hidden;-webkit-overflow-scrolling:touch;}
  351. .scroll-y{overflow-y:auto;}
  352. .scroll-x{overflow-x:auto;}
  353. .hover-action{
  354. display: none;
  355. }
  356. .hover-rotate{
  357. .transition(all .2s ease-in-out .1s)
  358. }
  359. .hover-anchor:hover,
  360. .hover-anchor:focus,
  361. .hover-anchor:active{
  362. > .hover-action{
  363. display: inherit;
  364. }
  365. > .hover-rotate{
  366. .rotate(90deg)
  367. }
  368. }
  369. .backdrop {
  370. position: absolute;
  371. top: 0;
  372. right: 0;
  373. bottom: 0;
  374. left: 0;
  375. z-index: 1050;
  376. &.fade{
  377. opacity: 0;
  378. filter: alpha(opacity=0);
  379. }
  380. &.in{
  381. opacity: 0.8;
  382. filter: alpha(opacity=80);
  383. }
  384. }
  385. /*desktop*/
  386. @media screen and (min-width: 992px) {
  387. .col-lg-2-4{width: 20.000%;float: left;}
  388. }
  389. // sm
  390. @media (min-width: 768px) and (max-width: 991px) {
  391. .hidden-sm.show{display: inherit !important;}
  392. }
  393. /*phone*/
  394. @media (max-width: 767px) {
  395. .w-auto-xs{width: auto;}
  396. .shift{display: none !important;}
  397. .shift.in{display: block !important;}
  398. .row-2 [class*="col"]{width: 50%;float: left}
  399. .row-2 .col-0{clear: none}
  400. .row-2 li:nth-child(odd) { clear: left;margin-left: 0}
  401. .text-center-xs{text-align: center;}
  402. .text-left-xs{text-align: left;}
  403. .text-right-xs{text-align: right;}
  404. .no-border-xs{border-width: 0;}
  405. .pull-none-xs{float: none !important;}
  406. .pull-right-xs{float: right !important;}
  407. .pull-left-xs{float: left !important;}
  408. .dropdown-menu.pull-none-xs{left: 0;}
  409. .hidden-xs.show{display: inherit !important;}
  410. .wrapper-lg, .wrapper-md{padding: 15px;}
  411. .padder-lg, .padder-md{padding-left: 15px;padding-right: 15px;}
  412. }