core.less 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. /*
  2. Core: General style
  3. ----------------------------
  4. */
  5. html, body {
  6. overflow-x: hidden!important;
  7. font-family: 'Source Sans Pro', sans-serif;
  8. -webkit-font-smoothing: antialiased;
  9. min-height: 100%;
  10. background: @body-bg;
  11. }
  12. a {
  13. color: @link-color;
  14. }
  15. a:hover, a:active, a:focus {
  16. outline: none;
  17. text-decoration: none;
  18. color: @link-hover-color;
  19. }
  20. /* Layouts */
  21. .wrapper {
  22. min-height: 100%;
  23. .clearfix();
  24. }
  25. /* Header */
  26. body > .header {
  27. position: absolute;
  28. top: 0;
  29. left: 0;
  30. right: 0;
  31. z-index: 1030;
  32. }
  33. /* Define 2 column template */
  34. .right-side, .left-side {
  35. min-height: 100%;
  36. display: block;
  37. }
  38. /*right side - contins main content*/
  39. .right-side {
  40. background-color: @body-bg;
  41. margin-left: @left-side-width;
  42. }
  43. /*left side - contains sidebar*/
  44. .left-side {
  45. position: absolute;
  46. width: @left-side-width;
  47. top: 0;
  48. }
  49. @media screen and (min-width: @screen-md) {
  50. .left-side {
  51. top: 50px;
  52. }
  53. /*Right side strech mode*/
  54. .right-side.strech {
  55. margin-left: 0;
  56. > .content-header {
  57. margin-top: 0px;
  58. }
  59. }
  60. /* Left side collapse */
  61. .left-side.collapse-left {
  62. left: -@left-side-width;
  63. }
  64. }
  65. /*Give content full width on xs screens*/
  66. @media screen and (max-width: @screen-md) {
  67. .right-side {
  68. margin-left: 0;
  69. }
  70. }
  71. /*
  72. By default the layout is not fixed but if you add the class .fixed to the body element
  73. the sidebar and the navbar will automatically become poisitioned fixed
  74. */
  75. body.fixed {
  76. > .header, .left-side, .navbar {
  77. position: fixed;
  78. }
  79. > .header {
  80. top: 0;
  81. right: 0;
  82. left: 0;
  83. }
  84. .navbar {
  85. left: 0;
  86. right: 0;
  87. }
  88. .wrapper {
  89. margin-top: 50px;
  90. }
  91. }
  92. /* Content */
  93. .content {
  94. padding: 20px 15px;
  95. background: @body-bg;
  96. }
  97. /* Utility */
  98. /* H1 - H6 font */
  99. h1,
  100. h2,
  101. h3,
  102. h4,
  103. h5,
  104. h6,
  105. .h1,
  106. .h2,
  107. .h3,
  108. .h4,
  109. .h5,
  110. .h6 {
  111. font-family: 'Source Sans Pro', sans-serif;
  112. }
  113. /* Page Header */
  114. .page-header {
  115. margin: 10px 0 20px 0;
  116. font-size: 22px;
  117. > small {
  118. color: #666;
  119. display: block;
  120. margin-top: 5px;
  121. }
  122. }
  123. /* All images should be responsive */
  124. img {
  125. max-width: 100% !important;
  126. }
  127. .sort-highlight {
  128. background: #f4f4f4;
  129. border: 1px dashed #ddd;
  130. margin-bottom: 10px;
  131. }
  132. /* 10px padding and margins */
  133. .pad {
  134. padding: 10px;
  135. }
  136. .margin {
  137. margin: 10px;
  138. }
  139. /* Display inline */
  140. .inline {
  141. display: inline;
  142. width: auto;
  143. }
  144. /* Background colors */
  145. .bg-red,
  146. .bg-yellow,
  147. .bg-aqua,
  148. .bg-blue,
  149. .bg-light-blue,
  150. .bg-green,
  151. .bg-navy,
  152. .bg-teal,
  153. .bg-olive,
  154. .bg-lime,
  155. .bg-orange ,
  156. .bg-fuchsia,
  157. .bg-purple,
  158. .bg-maroon,
  159. .bg-black {
  160. color: #f9f9f9 !important;
  161. }
  162. .bg-gray {
  163. background-color: @gray!important;
  164. }
  165. .bg-black {
  166. background-color: @black!important;
  167. }
  168. .bg-red {
  169. background-color: @red !important;
  170. }
  171. .bg-yellow {
  172. background-color: @yellow !important;
  173. }
  174. .bg-aqua {
  175. background-color: @aqua !important;
  176. }
  177. .bg-blue {
  178. background-color: @blue !important;
  179. }
  180. .bg-light-blue {
  181. background-color: @light-blue !important;
  182. }
  183. .bg-green {
  184. background-color: @green !important;
  185. }
  186. .bg-navy {
  187. background-color: @navy !important;
  188. }
  189. .bg-teal {
  190. background-color: @teal !important;
  191. }
  192. .bg-olive {
  193. background-color: @olive !important;
  194. }
  195. .bg-lime {
  196. background-color: @lime !important;
  197. }
  198. .bg-orange {
  199. background-color: @orange !important;
  200. }
  201. .bg-fuchsia {
  202. background-color: @fuchsia !important;
  203. }
  204. .bg-purple {
  205. background-color: @purple !important;
  206. }
  207. .bg-maroon {
  208. background-color: @maroon !important;
  209. }
  210. /* Text colors */
  211. .text-red {
  212. color: @red !important;
  213. }
  214. .text-yellow {
  215. color: @yellow !important;
  216. }
  217. .text-aqua {
  218. color: @aqua !important;
  219. }
  220. .text-blue {
  221. color: @blue !important;
  222. }
  223. .text-black {
  224. color: @black!important;
  225. }
  226. .text-light-blue {
  227. color: @light-blue !important;
  228. }
  229. .text-green {
  230. color: @green !important;
  231. }
  232. .text-navy {
  233. color: @navy !important;
  234. }
  235. .text-teal {
  236. color: @teal !important;
  237. }
  238. .text-olive {
  239. color: @olive !important;
  240. }
  241. .text-lime {
  242. color: @lime !important;
  243. }
  244. .text-orange {
  245. color: @orange !important;
  246. }
  247. .text-fuchsia {
  248. color: @fuchsia !important;
  249. }
  250. .text-purple {
  251. color: @purple !important;
  252. }
  253. .text-maroon {
  254. color: @maroon !important;
  255. }
  256. /*Hide elements by display none only*/
  257. .hide {
  258. display: none !important;
  259. }
  260. /* Remove borders */
  261. .no-border {
  262. border: 0px !important;
  263. }
  264. /* Remove padding */
  265. .no-padding {
  266. padding: 0px !important;
  267. }
  268. /* Remove margins */
  269. .no-margin {
  270. margin: 0px !important;
  271. }
  272. /* Remove box shadow */
  273. .no-shadow {
  274. box-shadow: none!important;
  275. }
  276. /* Don't display when printing */
  277. @media print {
  278. //Add to elements that you do not want to show when printing
  279. .no-print {
  280. display: none;
  281. }
  282. //Elements that we want to hide when printing
  283. .left-side, .header, .content-header {
  284. display: none;
  285. }
  286. //This is the only element that should appear, so let's remove the margins
  287. .right-side {
  288. margin: 0;
  289. }
  290. }
  291. /* Remove border radius */
  292. .flat {
  293. .border-radius(0)!important;
  294. }
  295. /* Change the color of the striped tables */
  296. .table-striped > tbody > tr:nth-child(odd) {
  297. > td,
  298. > th {
  299. background-color: @table-striped-color;
  300. }
  301. }
  302. .table.no-border {
  303. &, td, th {
  304. border: 0;
  305. }
  306. }
  307. /* .text-center in tables */
  308. table.text-center {
  309. &, td, th {
  310. text-align: center;
  311. }
  312. }
  313. .table.align {
  314. th {
  315. text-align: left;
  316. }
  317. td {
  318. text-align: right;
  319. }
  320. }
  321. .text-bold {
  322. &, &.table td, &.table th {
  323. font-weight: 700;
  324. }
  325. }
  326. .border-radius-none {
  327. .border-radius(0)!important;
  328. }
  329. /* _fix for sparkline tooltip */
  330. .jqstooltip{
  331. padding: 5px!important;
  332. width:auto!important;
  333. height:auto!important;
  334. }
  335. /*
  336. Gradient Background colors
  337. */
  338. .bg-teal-gradient {
  339. .gradient(@teal; @teal; lighten(@teal, 16%))!important;
  340. color: #fff;
  341. }
  342. .bg-light-blue-gradient {
  343. .gradient(@light-blue; @light-blue; lighten(@light-blue, 12%))!important;
  344. color: #fff;
  345. }
  346. .bg-blue-gradient {
  347. .gradient(@blue; @blue; lighten(@blue, 7%))!important;
  348. color: #fff;
  349. }
  350. .bg-aqua-gradient {
  351. .gradient(@aqua; @aqua; lighten(@aqua, 7%))!important;
  352. color: #fff;
  353. }
  354. .bg-yellow-gradient {
  355. .gradient(@yellow; @yellow; lighten(@yellow, 16%))!important;
  356. color: #fff;
  357. }
  358. .bg-purple-gradient {
  359. .gradient(@purple; @purple; lighten(@purple, 16%))!important;
  360. color: #fff;
  361. }
  362. .bg-green-gradient {
  363. .gradient(@green; @green; lighten(@green, 7%))!important;
  364. color: #fff;
  365. }
  366. .bg-red-gradient {
  367. .gradient(@red; @red; lighten(@red, 10%))!important;
  368. color: #fff;
  369. }
  370. .bg-black-gradient {
  371. .gradient(@black; @black; lighten(@black, 10%))!important;
  372. color: #fff;
  373. }
  374. .bg-maroon-gradient {
  375. .gradient(@maroon; @maroon; lighten(@maroon, 10%))!important;
  376. color: #fff;
  377. }
  378. .connectedSortable {
  379. min-height: 100px;
  380. }