miscellaneous.less 8.6 KB

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