miscellaneous.less 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. /*
  2. * General: Miscellaneous
  3. * ----------------------
  4. */
  5. // 10px padding and margins
  6. .pad {
  7. padding: 10px;
  8. }
  9. .margin {
  10. margin: 10px;
  11. }
  12. .margin-bottom {
  13. margin-bottom: 20px;
  14. }
  15. // Display inline
  16. .inline {
  17. display: inline;
  18. }
  19. // Description Blocks
  20. .description-block {
  21. display: block;
  22. margin: 10px 0;
  23. text-align: center;
  24. &.margin-bottom {
  25. margin-bottom: 25px;
  26. }
  27. > .description-header {
  28. margin: 0;
  29. padding: 0;
  30. font-weight: 600;
  31. font-size: 16px;
  32. }
  33. > .description-text {
  34. text-transform: uppercase;
  35. }
  36. }
  37. // Background colors
  38. .bg-red,
  39. .bg-yellow,
  40. .bg-aqua,
  41. .bg-blue,
  42. .bg-light-blue,
  43. .bg-green,
  44. .bg-navy,
  45. .bg-teal,
  46. .bg-olive,
  47. .bg-lime,
  48. .bg-orange ,
  49. .bg-fuchsia,
  50. .bg-purple,
  51. .bg-maroon,
  52. .bg-black,
  53. .bg-red-active,
  54. .bg-yellow-active,
  55. .bg-aqua-active,
  56. .bg-blue-active,
  57. .bg-light-blue-active,
  58. .bg-green-active,
  59. .bg-navy-active,
  60. .bg-teal-active,
  61. .bg-olive-active,
  62. .bg-lime-active,
  63. .bg-orange-active,
  64. .bg-fuchsia-active,
  65. .bg-purple-active,
  66. .bg-maroon-active,
  67. .bg-black-active {
  68. color: #fff !important;
  69. }
  70. .bg-gray {
  71. color: #000;
  72. background-color: @gray!important;
  73. }
  74. .bg-gray-light {
  75. background-color: #f7f7f7;
  76. }
  77. .bg-black {
  78. background-color: @black!important;
  79. }
  80. .bg-red {
  81. background-color: @red !important;
  82. }
  83. .bg-yellow {
  84. background-color: @yellow !important;
  85. }
  86. .bg-aqua {
  87. background-color: @aqua !important;
  88. }
  89. .bg-blue {
  90. background-color: @blue !important;
  91. }
  92. .bg-light-blue {
  93. background-color: @light-blue !important;
  94. }
  95. .bg-green {
  96. background-color: @green !important;
  97. }
  98. .bg-navy {
  99. background-color: @navy !important;
  100. }
  101. .bg-teal {
  102. background-color: @teal !important;
  103. }
  104. .bg-olive {
  105. background-color: @olive !important;
  106. }
  107. .bg-lime {
  108. background-color: @lime !important;
  109. }
  110. .bg-orange {
  111. background-color: @orange !important;
  112. }
  113. .bg-fuchsia {
  114. background-color: @fuchsia !important;
  115. }
  116. .bg-purple {
  117. background-color: @purple !important;
  118. }
  119. .bg-maroon {
  120. background-color: @maroon !important;
  121. }
  122. //Set of Active Background Colors
  123. .bg-gray-active {
  124. color: #000;
  125. background-color: darken(@gray,10%)!important;
  126. }
  127. .bg-black-active {
  128. background-color: darken(@black, 10%)!important;
  129. }
  130. .bg-red-active {
  131. background-color: darken(@red , 6%)!important;
  132. }
  133. .bg-yellow-active {
  134. background-color: darken(@yellow , 6%)!important;
  135. }
  136. .bg-aqua-active {
  137. background-color: darken(@aqua , 6%)!important;
  138. }
  139. .bg-blue-active {
  140. background-color: darken(@blue , 10%)!important;
  141. }
  142. .bg-light-blue-active {
  143. background-color: darken(@light-blue , 6%)!important;
  144. }
  145. .bg-green-active {
  146. background-color: darken(@green , 5%)!important;
  147. }
  148. .bg-navy-active {
  149. background-color: darken(@navy , 2%)!important;
  150. }
  151. .bg-teal-active {
  152. background-color: darken(@teal , 5%)!important;
  153. }
  154. .bg-olive-active {
  155. background-color: darken(@olive , 5%)!important;
  156. }
  157. .bg-lime-active {
  158. background-color: darken(@lime , 5%)!important;
  159. }
  160. .bg-orange-active {
  161. background-color: darken(@orange , 5%)!important;
  162. }
  163. .bg-fuchsia-active {
  164. background-color: darken(@fuchsia , 5%)!important;
  165. }
  166. .bg-purple-active {
  167. background-color: darken(@purple , 5%)!important;
  168. }
  169. .bg-maroon-active {
  170. background-color: darken(@maroon , 3%)!important;
  171. }
  172. //Disabled!
  173. [class^="bg-"].disabled {
  174. .opacity(.65);
  175. }
  176. // Text colors
  177. .text-red {
  178. color: @red !important;
  179. }
  180. .text-yellow {
  181. color: @yellow !important;
  182. }
  183. .text-aqua {
  184. color: @aqua !important;
  185. }
  186. .text-blue {
  187. color: @blue !important;
  188. }
  189. .text-black {
  190. color: @black!important;
  191. }
  192. .text-light-blue {
  193. color: @light-blue !important;
  194. }
  195. .text-green {
  196. color: @green !important;
  197. }
  198. .text-gray {
  199. color: @gray !important;
  200. }
  201. .text-navy {
  202. color: @navy !important;
  203. }
  204. .text-teal {
  205. color: @teal !important;
  206. }
  207. .text-olive {
  208. color: @olive !important;
  209. }
  210. .text-lime {
  211. color: @lime !important;
  212. }
  213. .text-orange {
  214. color: @orange !important;
  215. }
  216. .text-fuchsia {
  217. color: @fuchsia !important;
  218. }
  219. .text-purple {
  220. color: @purple !important;
  221. }
  222. .text-maroon {
  223. color: @maroon !important;
  224. }
  225. // Hide elements by display none only
  226. .hide {
  227. display: none !important;
  228. }
  229. // Remove borders
  230. .no-border {
  231. border: 0 !important;
  232. }
  233. // Remove padding
  234. .no-padding {
  235. padding: 0 !important;
  236. }
  237. // Remove margins
  238. .no-margin {
  239. margin: 0 !important;
  240. }
  241. // Remove box shadow
  242. .no-shadow {
  243. box-shadow: none!important;
  244. }
  245. // Unstyled List
  246. .list-unstyled {
  247. list-style: none;
  248. margin: 0;
  249. padding: 0;
  250. }
  251. // Remove border radius
  252. .flat {
  253. .border-radius(0)!important;
  254. }
  255. .text-bold {
  256. &, &.table td, &.table th {
  257. font-weight: 700;
  258. }
  259. }
  260. // _fix for sparkline tooltip
  261. .jqstooltip{
  262. padding: 5px!important;
  263. width:auto!important;
  264. height:auto!important;
  265. }
  266. // Gradient Background colors
  267. .bg-teal-gradient {
  268. .gradient(@teal; @teal; lighten(@teal, 16%))!important;
  269. color: #fff;
  270. }
  271. .bg-light-blue-gradient {
  272. .gradient(@light-blue; @light-blue; lighten(@light-blue, 12%))!important;
  273. color: #fff;
  274. }
  275. .bg-blue-gradient {
  276. .gradient(@blue; @blue; lighten(@blue, 7%))!important;
  277. color: #fff;
  278. }
  279. .bg-aqua-gradient {
  280. .gradient(@aqua; @aqua; lighten(@aqua, 7%))!important;
  281. color: #fff;
  282. }
  283. .bg-yellow-gradient {
  284. .gradient(@yellow; @yellow; lighten(@yellow, 16%))!important;
  285. color: #fff;
  286. }
  287. .bg-purple-gradient {
  288. .gradient(@purple; @purple; lighten(@purple, 16%))!important;
  289. color: #fff;
  290. }
  291. .bg-green-gradient {
  292. .gradient(@green; @green; lighten(@green, 7%))!important;
  293. color: #fff;
  294. }
  295. .bg-red-gradient {
  296. .gradient(@red; @red; lighten(@red, 10%))!important;
  297. color: #fff;
  298. }
  299. .bg-black-gradient {
  300. .gradient(@black; @black; lighten(@black, 10%))!important;
  301. color: #fff;
  302. }
  303. .bg-maroon-gradient {
  304. .gradient(@maroon; @maroon; lighten(@maroon, 10%))!important;
  305. color: #fff;
  306. }
  307. //Description Block Extension
  308. .description-block {
  309. .description-icon {
  310. font-size: 16px;
  311. }
  312. }
  313. //Remove top padding
  314. .no-pad-top {
  315. padding-top: 0;
  316. }
  317. //Make position static
  318. .position-static {
  319. position: static!important;
  320. }
  321. //List utility classes
  322. .list-header {
  323. font-size: 15px;
  324. padding: 10px 4px;
  325. font-weight: bold;
  326. color: #666;
  327. }
  328. .list-seperator {
  329. height: 1px;
  330. background: @box-border-color;
  331. margin: 15px 0 9px 0;
  332. }
  333. .list-link {
  334. > a {
  335. padding: 4px;
  336. color: #777;
  337. &:hover {
  338. color: #222;
  339. }
  340. }
  341. }
  342. //Light font weight
  343. .font-light {
  344. font-weight: 300;
  345. }
  346. //User block
  347. .user-block {
  348. img {
  349. width: 40px;
  350. height: 40px;
  351. float: left;
  352. }
  353. .username,
  354. .description,
  355. .comment {
  356. display: block;
  357. margin-left: 50px;
  358. }
  359. .username {
  360. font-size: 16px;
  361. font-weight: 600;
  362. }
  363. .description {
  364. color: #999;
  365. font-size: 13px;
  366. }
  367. &.user-block-sm {
  368. img {
  369. &:extend(.img-sm);
  370. }
  371. .username,
  372. .description,
  373. .comment {
  374. margin-left: 40px;
  375. }
  376. .username {
  377. font-size: 14px;
  378. }
  379. }
  380. }
  381. //Image sizes
  382. .img-sm,
  383. .img-md,
  384. .img-lg {
  385. float: left;
  386. }
  387. .img-sm {
  388. width: 30px!important;
  389. height: 30px!important;
  390. + .img-push {
  391. margin-left: 40px;
  392. }
  393. }
  394. .img-md {
  395. width: 60px;
  396. height: 60px;
  397. + .img-push {
  398. margin-left: 70px;
  399. }
  400. }
  401. .img-lg {
  402. width: 100px;
  403. height: 100px;
  404. + .img-push {
  405. margin-left: 110px;
  406. }
  407. }
  408. //General attachemnt block
  409. .attachment-block {
  410. border: 1px solid @box-border-color;
  411. padding: 5px;
  412. margin-bottom: 10px;
  413. background: #f7f7f7;
  414. .attachemnt-img {
  415. max-width: 100px;
  416. max-height: 100px;
  417. height: auto;
  418. float: left;
  419. }
  420. .attachment-pushed {
  421. margin-left: 110px;
  422. }
  423. .attachment-heading {
  424. margin: 0;
  425. }
  426. .attachment-text {
  427. color: #555;
  428. }
  429. }
  430. .connectedSortable {
  431. min-height: 100px;
  432. }
  433. .ui-helper-hidden-accessible {
  434. border: 0;
  435. clip: rect(0 0 0 0);
  436. height: 1px;
  437. margin: -1px;
  438. overflow: hidden;
  439. padding: 0;
  440. position: absolute;
  441. width: 1px;
  442. }
  443. .sort-highlight {
  444. background: #f4f4f4;
  445. border: 1px dashed #ddd;
  446. margin-bottom: 10px;
  447. }
  448. .full-opacity-hover {
  449. .opacity(.65);
  450. &:hover {
  451. .opacity(1);
  452. }
  453. }
  454. // Charts
  455. .chart {
  456. position: relative;
  457. overflow: hidden;
  458. width: 100%;
  459. svg,
  460. canvas {
  461. width: 100%!important;
  462. }
  463. }