core.less 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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-light-blue {
  225. color: @light-blue !important;
  226. }
  227. .text-green {
  228. color: @green !important;
  229. }
  230. .text-navy {
  231. color: @navy !important;
  232. }
  233. .text-teal {
  234. color: @teal !important;
  235. }
  236. .text-olive {
  237. color: @olive !important;
  238. }
  239. .text-lime {
  240. color: @lime !important;
  241. }
  242. .text-orange {
  243. color: @orange !important;
  244. }
  245. .text-fuchsia {
  246. color: @fuchsia !important;
  247. }
  248. .text-purple {
  249. color: @purple !important;
  250. }
  251. .text-maroon {
  252. color: @maroon !important;
  253. }
  254. /*Hide elements by display none only*/
  255. .hide {
  256. display: none !important;
  257. }
  258. /* Remove borders */
  259. .no-border {
  260. border: 0px !important;
  261. }
  262. /* Remove padding */
  263. .no-padding {
  264. padding: 0px !important;
  265. }
  266. /* Remove margins */
  267. .no-margin {
  268. margin: 0px !important;
  269. }
  270. /* Remove box shadow */
  271. .no-shadow {
  272. box-shadow: none!important;
  273. }
  274. /* Don't display when printing */
  275. @media print {
  276. //Add to elements that you do not want to show when printing
  277. .no-print {
  278. display: none;
  279. }
  280. //Elements that we want to hide when printing
  281. .left-side, .header, .content-header {
  282. display: none;
  283. }
  284. //This is the only element that should appear, so let's remove the margins
  285. .right-side {
  286. margin: 0;
  287. }
  288. }
  289. /* Remove border radius */
  290. .flat {
  291. .border-radius(0)!important;
  292. }
  293. /* Change the color of the striped tables */
  294. .table-striped > tbody > tr:nth-child(odd) {
  295. > td,
  296. > th {
  297. background-color: @table-striped-color;
  298. }
  299. }
  300. /* .text-center in tables */
  301. table.text-center {
  302. td, th {
  303. text-align: center;
  304. }
  305. }
  306. /* _fix for sparkline tooltip */
  307. .jqstooltip{
  308. padding: 5px!important;
  309. width:auto!important;
  310. height:auto!important;
  311. }