miscellaneous.less 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  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. .link-muted {
  226. color: darken(@gray, 30%);
  227. &:hover,
  228. &:focus {
  229. color: darken(@gray, 40%);
  230. }
  231. }
  232. // Hide elements by display none only
  233. .hide {
  234. display: none !important;
  235. }
  236. // Remove borders
  237. .no-border {
  238. border: 0 !important;
  239. }
  240. // Remove padding
  241. .no-padding {
  242. padding: 0 !important;
  243. }
  244. // Remove margins
  245. .no-margin {
  246. margin: 0 !important;
  247. }
  248. // Remove box shadow
  249. .no-shadow {
  250. box-shadow: none!important;
  251. }
  252. // Unstyled List
  253. .list-unstyled {
  254. list-style: none;
  255. margin: 0;
  256. padding: 0;
  257. }
  258. // Remove border radius
  259. .flat {
  260. .border-radius(0)!important;
  261. }
  262. .text-bold {
  263. &, &.table td, &.table th {
  264. font-weight: 700;
  265. }
  266. }
  267. // _fix for sparkline tooltip
  268. .jqstooltip{
  269. padding: 5px!important;
  270. width:auto!important;
  271. height:auto!important;
  272. }
  273. // Gradient Background colors
  274. .bg-teal-gradient {
  275. .gradient(@teal; @teal; lighten(@teal, 16%))!important;
  276. color: #fff;
  277. }
  278. .bg-light-blue-gradient {
  279. .gradient(@light-blue; @light-blue; lighten(@light-blue, 12%))!important;
  280. color: #fff;
  281. }
  282. .bg-blue-gradient {
  283. .gradient(@blue; @blue; lighten(@blue, 7%))!important;
  284. color: #fff;
  285. }
  286. .bg-aqua-gradient {
  287. .gradient(@aqua; @aqua; lighten(@aqua, 7%))!important;
  288. color: #fff;
  289. }
  290. .bg-yellow-gradient {
  291. .gradient(@yellow; @yellow; lighten(@yellow, 16%))!important;
  292. color: #fff;
  293. }
  294. .bg-purple-gradient {
  295. .gradient(@purple; @purple; lighten(@purple, 16%))!important;
  296. color: #fff;
  297. }
  298. .bg-green-gradient {
  299. .gradient(@green; @green; lighten(@green, 7%))!important;
  300. color: #fff;
  301. }
  302. .bg-red-gradient {
  303. .gradient(@red; @red; lighten(@red, 10%))!important;
  304. color: #fff;
  305. }
  306. .bg-black-gradient {
  307. .gradient(@black; @black; lighten(@black, 10%))!important;
  308. color: #fff;
  309. }
  310. .bg-maroon-gradient {
  311. .gradient(@maroon; @maroon; lighten(@maroon, 10%))!important;
  312. color: #fff;
  313. }
  314. //Description Block Extension
  315. .description-block {
  316. .description-icon {
  317. font-size: 16px;
  318. }
  319. }
  320. //Remove top padding
  321. .no-pad-top {
  322. padding-top: 0;
  323. }
  324. //Make position static
  325. .position-static {
  326. position: static!important;
  327. }
  328. //List utility classes
  329. .list-header {
  330. font-size: 15px;
  331. padding: 10px 4px;
  332. font-weight: bold;
  333. color: #666;
  334. }
  335. .list-seperator {
  336. height: 1px;
  337. background: @box-border-color;
  338. margin: 15px 0 9px 0;
  339. }
  340. .list-link {
  341. > a {
  342. padding: 4px;
  343. color: #777;
  344. &:hover {
  345. color: #222;
  346. }
  347. }
  348. }
  349. //Light font weight
  350. .font-light {
  351. font-weight: 300;
  352. }
  353. //User block
  354. .user-block {
  355. img {
  356. width: 40px;
  357. height: 40px;
  358. float: left;
  359. }
  360. .username,
  361. .description,
  362. .comment {
  363. display: block;
  364. margin-left: 50px;
  365. }
  366. .username {
  367. font-size: 16px;
  368. font-weight: 600;
  369. }
  370. .description {
  371. color: #999;
  372. font-size: 13px;
  373. }
  374. &.user-block-sm {
  375. img {
  376. &:extend(.img-sm);
  377. }
  378. .username,
  379. .description,
  380. .comment {
  381. margin-left: 40px;
  382. }
  383. .username {
  384. font-size: 14px;
  385. }
  386. }
  387. }
  388. //Image sizes
  389. .img-sm,
  390. .img-md,
  391. .img-lg {
  392. float: left;
  393. }
  394. .img-sm {
  395. width: 30px!important;
  396. height: 30px!important;
  397. + .img-push {
  398. margin-left: 40px;
  399. }
  400. }
  401. .img-md {
  402. width: 60px;
  403. height: 60px;
  404. + .img-push {
  405. margin-left: 70px;
  406. }
  407. }
  408. .img-lg {
  409. width: 100px;
  410. height: 100px;
  411. + .img-push {
  412. margin-left: 110px;
  413. }
  414. }
  415. //General attachemnt block
  416. .attachment-block {
  417. border: 1px solid @box-border-color;
  418. padding: 5px;
  419. margin-bottom: 10px;
  420. background: #f7f7f7;
  421. .attachemnt-img {
  422. max-width: 100px;
  423. max-height: 100px;
  424. height: auto;
  425. float: left;
  426. }
  427. .attachment-pushed {
  428. margin-left: 110px;
  429. }
  430. .attachment-heading {
  431. margin: 0;
  432. }
  433. .attachment-text {
  434. color: #555;
  435. }
  436. }
  437. .connectedSortable {
  438. min-height: 100px;
  439. }
  440. .ui-helper-hidden-accessible {
  441. border: 0;
  442. clip: rect(0 0 0 0);
  443. height: 1px;
  444. margin: -1px;
  445. overflow: hidden;
  446. padding: 0;
  447. position: absolute;
  448. width: 1px;
  449. }
  450. .sort-highlight {
  451. background: #f4f4f4;
  452. border: 1px dashed #ddd;
  453. margin-bottom: 10px;
  454. }
  455. .full-opacity-hover {
  456. .opacity(.65);
  457. &:hover {
  458. .opacity(1);
  459. }
  460. }
  461. // Charts
  462. .chart {
  463. position: relative;
  464. overflow: hidden;
  465. width: 100%;
  466. svg,
  467. canvas {
  468. width: 100%!important;
  469. }
  470. }