core.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*
  2. * Core: Genral Layout Style
  3. * -------------------------
  4. */
  5. html,
  6. body {
  7. min-height: 100%;
  8. .layout-boxed & {
  9. height: 100%;
  10. }
  11. }
  12. body {
  13. -webkit-font-smoothing: antialiased;
  14. -moz-osx-font-smoothing: grayscale;
  15. font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  16. font-weight: 400;
  17. overflow-x: hidden;
  18. overflow-y: auto;
  19. }
  20. /* Layout */
  21. .wrapper {
  22. .clearfix();
  23. min-height: 100%;
  24. position: static;
  25. overflow: hidden;
  26. .layout-boxed & {
  27. max-width: 1250px;
  28. margin: 0 auto;
  29. min-height: 100%;
  30. box-shadow: 0 0 8px rgba(0,0,0,0.5);
  31. position: relative;
  32. }
  33. }
  34. .layout-boxed {
  35. background: url('../img/boxed-bg.jpg') repeat fixed;
  36. }
  37. /*
  38. * Content Wrapper - contins main content
  39. * ```.right-side has been deprecated as of v2.0 in favor of .content-wrapper ```
  40. */
  41. .content-wrapper,
  42. .right-side,
  43. .main-footer {
  44. .transition(all @transition-speed @transition-fn);
  45. margin-left: @sidebar-width;
  46. //Top nav layout
  47. .layout-top-nav & {
  48. margin-left: 0!important;
  49. }
  50. @media (max-width: @screen-xs-max) {
  51. margin-left: 0;
  52. }
  53. .sidebar-collapse & {
  54. @media (min-width: @screen-sm) {
  55. margin-left: 0;
  56. }
  57. }
  58. .sidebar-open & {
  59. @media (max-width: @screen-xs-max) {
  60. .translate(@sidebar-width, 0);
  61. }
  62. }
  63. }
  64. .content-wrapper,
  65. .right-side {
  66. min-height: 100%;
  67. background-color: @body-bg;
  68. z-index: 800;
  69. //In case of printing
  70. @media print {
  71. margin: 0!important;
  72. }
  73. }
  74. .main-footer {
  75. background: #fff;
  76. padding: 15px;
  77. color: #444;
  78. border-top: 1px solid #eee;
  79. }
  80. /* Fixed layout */
  81. .fixed {
  82. .main-header, .left-side {
  83. position: fixed;
  84. }
  85. .main-header {
  86. top: 0;
  87. right: 0;
  88. left: 0;
  89. }
  90. .content-wrapper,
  91. .right-side {
  92. padding-top: 50px;
  93. @media (max-width: @screen-header-collapse) {
  94. padding-top: 100px;
  95. }
  96. }
  97. &.layout-boxed {
  98. .wrapper {
  99. max-width: 100%;
  100. }
  101. }
  102. }
  103. /* Content */
  104. .content {
  105. min-height: 250px;
  106. padding: 15px;
  107. .container-fixed(@grid-gutter-width);
  108. }
  109. /* H1 - H6 font */
  110. h1,
  111. h2,
  112. h3,
  113. h4,
  114. h5,
  115. h6,
  116. .h1,
  117. .h2,
  118. .h3,
  119. .h4,
  120. .h5,
  121. .h6 {
  122. font-family: 'Source Sans Pro', sans-serif;
  123. }
  124. /* General Links */
  125. a {
  126. color: @link-color;
  127. }
  128. a:hover, a:active, a:focus {
  129. outline: none;
  130. text-decoration: none;
  131. color: @link-hover-color;
  132. }
  133. /* Page Header */
  134. .page-header {
  135. margin: 10px 0 20px 0;
  136. font-size: 22px;
  137. > small {
  138. color: #666;
  139. display: block;
  140. margin-top: 5px;
  141. }
  142. }
  143. /* Don't display when printing */
  144. @media print {
  145. //Add to elements that you do not want to show when printing
  146. .no-print {
  147. display: none;
  148. }
  149. //Elements that we want to hide when printing
  150. .left-side, .header, .content-header {
  151. display: none;
  152. }
  153. //This is the only element that should appear, so let's remove the margins
  154. .content-wrapper,
  155. .right-side {
  156. margin: 0!important;
  157. }
  158. }