core.less 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422
  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. overflow: auto;
  97. }
  98. /* Utility */
  99. /* H1 - H6 font */
  100. h1,
  101. h2,
  102. h3,
  103. h4,
  104. h5,
  105. h6,
  106. .h1,
  107. .h2,
  108. .h3,
  109. .h4,
  110. .h5,
  111. .h6 {
  112. font-family: 'Source Sans Pro', sans-serif;
  113. }
  114. /* Page Header */
  115. .page-header {
  116. margin: 10px 0 20px 0;
  117. font-size: 22px;
  118. > small {
  119. color: #666;
  120. display: block;
  121. margin-top: 5px;
  122. }
  123. }
  124. /* All images should be responsive */
  125. img {
  126. max-width: 100%important;
  127. }
  128. .sort-highlight {
  129. background: #f4f4f4;
  130. border: 1px dashed #ddd;
  131. margin-bottom: 10px;
  132. }
  133. /* 10px padding and margins */
  134. .pad {
  135. padding: 10px;
  136. }
  137. .margin {
  138. margin: 10px;
  139. }
  140. /* Display inline */
  141. .inline {
  142. display: inline;
  143. width: auto;
  144. }
  145. /* Background colors */
  146. .bg-red,
  147. .bg-yellow,
  148. .bg-aqua,
  149. .bg-blue,
  150. .bg-light-blue,
  151. .bg-green,
  152. .bg-navy,
  153. .bg-teal,
  154. .bg-olive,
  155. .bg-lime,
  156. .bg-orange ,
  157. .bg-fuchsia,
  158. .bg-purple,
  159. .bg-maroon,
  160. .bg-black {
  161. color: #f9f9f9 !important;
  162. }
  163. .bg-gray {
  164. background-color: @gray!important;
  165. }
  166. .bg-black {
  167. background-color: @black!important;
  168. }
  169. .bg-red {
  170. background-color: @red !important;
  171. }
  172. .bg-yellow {
  173. background-color: @yellow !important;
  174. }
  175. .bg-aqua {
  176. background-color: @aqua !important;
  177. }
  178. .bg-blue {
  179. background-color: @blue !important;
  180. }
  181. .bg-light-blue {
  182. background-color: @light-blue !important;
  183. }
  184. .bg-green {
  185. background-color: @green !important;
  186. }
  187. .bg-navy {
  188. background-color: @navy !important;
  189. }
  190. .bg-teal {
  191. background-color: @teal !important;
  192. }
  193. .bg-olive {
  194. background-color: @olive !important;
  195. }
  196. .bg-lime {
  197. background-color: @lime !important;
  198. }
  199. .bg-orange {
  200. background-color: @orange !important;
  201. }
  202. .bg-fuchsia {
  203. background-color: @fuchsia !important;
  204. }
  205. .bg-purple {
  206. background-color: @purple !important;
  207. }
  208. .bg-maroon {
  209. background-color: @maroon !important;
  210. }
  211. /* Text colors */
  212. .text-red {
  213. color: @red !important;
  214. }
  215. .text-yellow {
  216. color: @yellow !important;
  217. }
  218. .text-aqua {
  219. color: @aqua !important;
  220. }
  221. .text-blue {
  222. color: @blue !important;
  223. }
  224. .text-black {
  225. color: @black!important;
  226. }
  227. .text-light-blue {
  228. color: @light-blue !important;
  229. }
  230. .text-green {
  231. color: @green !important;
  232. }
  233. .text-navy {
  234. color: @navy !important;
  235. }
  236. .text-teal {
  237. color: @teal !important;
  238. }
  239. .text-olive {
  240. color: @olive !important;
  241. }
  242. .text-lime {
  243. color: @lime !important;
  244. }
  245. .text-orange {
  246. color: @orange !important;
  247. }
  248. .text-fuchsia {
  249. color: @fuchsia !important;
  250. }
  251. .text-purple {
  252. color: @purple !important;
  253. }
  254. .text-maroon {
  255. color: @maroon !important;
  256. }
  257. /*Hide elements by display none only*/
  258. .hide {
  259. display: none !important;
  260. }
  261. /* Remove borders */
  262. .no-border {
  263. border: 0px !important;
  264. }
  265. /* Remove padding */
  266. .no-padding {
  267. padding: 0px !important;
  268. }
  269. /* Remove margins */
  270. .no-margin {
  271. margin: 0px !important;
  272. }
  273. /* Remove box shadow */
  274. .no-shadow {
  275. box-shadow: none!important;
  276. }
  277. /* Don't display when printing */
  278. @media print {
  279. //Add to elements that you do not want to show when printing
  280. .no-print {
  281. display: none;
  282. }
  283. //Elements that we want to hide when printing
  284. .left-side, .header, .content-header {
  285. display: none;
  286. }
  287. //This is the only element that should appear, so let's remove the margins
  288. .right-side {
  289. margin: 0;
  290. }
  291. }
  292. /* Remove border radius */
  293. .flat {
  294. .border-radius(0)!important;
  295. }
  296. /* Change the color of the striped tables */
  297. .table-striped > tbody > tr:nth-child(odd) {
  298. > td,
  299. > th {
  300. background-color: @table-striped-color;
  301. }
  302. }
  303. .table.no-border {
  304. &, td, th {
  305. border: 0;
  306. }
  307. }
  308. /* .text-center in tables */
  309. table.text-center {
  310. &, td, th {
  311. text-align: center;
  312. }
  313. }
  314. .table.align {
  315. th {
  316. text-align: left;
  317. }
  318. td {
  319. text-align: right;
  320. }
  321. }
  322. .text-bold {
  323. &, &.table td, &.table th {
  324. font-weight: 700;
  325. }
  326. }
  327. .border-radius-none {
  328. .border-radius(0)!important;
  329. }
  330. /* _fix for sparkline tooltip */
  331. .jqstooltip{
  332. padding: 5px!important;
  333. width:auto!important;
  334. height:auto!important;
  335. }
  336. /*
  337. Gradient Background colors
  338. */
  339. .bg-teal-gradient {
  340. .gradient(@teal; @teal; lighten(@teal, 16%))!important;
  341. color: #fff;
  342. }
  343. .bg-light-blue-gradient {
  344. .gradient(@light-blue; @light-blue; lighten(@light-blue, 12%))!important;
  345. color: #fff;
  346. }
  347. .bg-blue-gradient {
  348. .gradient(@blue; @blue; lighten(@blue, 7%))!important;
  349. color: #fff;
  350. }
  351. .bg-aqua-gradient {
  352. .gradient(@aqua; @aqua; lighten(@aqua, 7%))!important;
  353. color: #fff;
  354. }
  355. .bg-yellow-gradient {
  356. .gradient(@yellow; @yellow; lighten(@yellow, 16%))!important;
  357. color: #fff;
  358. }
  359. .bg-purple-gradient {
  360. .gradient(@purple; @purple; lighten(@purple, 16%))!important;
  361. color: #fff;
  362. }
  363. .bg-green-gradient {
  364. .gradient(@green; @green; lighten(@green, 7%))!important;
  365. color: #fff;
  366. }
  367. .bg-red-gradient {
  368. .gradient(@red; @red; lighten(@red, 10%))!important;
  369. color: #fff;
  370. }
  371. .bg-black-gradient {
  372. .gradient(@black; @black; lighten(@black, 10%))!important;
  373. color: #fff;
  374. }
  375. .bg-maroon-gradient {
  376. .gradient(@maroon; @maroon; lighten(@maroon, 10%))!important;
  377. color: #fff;
  378. }
  379. .connectedSortable {
  380. min-height: 100px;
  381. }