core.less 5.4 KB

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