core.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /*
  2. * Core: General Layout Style
  3. * -------------------------
  4. */
  5. html,
  6. body {
  7. height: 100%;
  8. .layout-boxed & {
  9. height: 100%;
  10. }
  11. }
  12. body {
  13. font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  14. font-weight: 400;
  15. overflow-x: hidden;
  16. overflow-y: auto;
  17. }
  18. /* Layout */
  19. .wrapper {
  20. .clearfix();
  21. height: 100%;
  22. position: relative;
  23. overflow-x: hidden;
  24. overflow-y: auto;
  25. .layout-boxed & {
  26. max-width: 1250px;
  27. margin: 0 auto;
  28. min-height: 100%;
  29. box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  30. position: relative;
  31. }
  32. }
  33. .layout-boxed {
  34. background: url('@{boxed-layout-bg-image-path}') repeat fixed;
  35. }
  36. /*
  37. * Content Wrapper - contains the main content
  38. * ```.right-side has been deprecated as of v2.0.0 in favor of .content-wrapper ```
  39. */
  40. .content-wrapper,
  41. .right-side,
  42. .main-footer {
  43. // Using disposable variable to join statements with a comma
  44. @transition-rule: @transition-speed @transition-fn,
  45. margin @transition-speed @transition-fn;
  46. .transition-transform(@transition-rule);
  47. margin-left: @sidebar-width;
  48. z-index: 820;
  49. // Top nav layout
  50. .layout-top-nav & {
  51. margin-left: 0;
  52. }
  53. @media (max-width: @screen-xs-max) {
  54. margin-left: 0;
  55. }
  56. // When opening the sidebar on large screens
  57. .sidebar-collapse & {
  58. @media (min-width: @screen-sm) {
  59. margin-left: 0;
  60. }
  61. }
  62. // When opening the sidebar on small screens
  63. .sidebar-open & {
  64. @media (max-width: @screen-xs-max) {
  65. .translate(@sidebar-width, 0);
  66. }
  67. }
  68. }
  69. .content-wrapper,
  70. .right-side {
  71. min-height: 100%;
  72. background-color: @body-bg;
  73. z-index: 800;
  74. }
  75. .main-footer {
  76. background: #fff;
  77. padding: 15px;
  78. color: #444;
  79. border-top: 1px solid @gray-lte;
  80. }
  81. /* Fixed layout */
  82. .fixed {
  83. .main-header,
  84. .main-sidebar,
  85. .left-side {
  86. position: fixed;
  87. }
  88. .main-header {
  89. top: 0;
  90. right: 0;
  91. left: 0;
  92. }
  93. .content-wrapper,
  94. .right-side {
  95. padding-top: 50px;
  96. @media (max-width: @screen-header-collapse) {
  97. padding-top: 100px;
  98. }
  99. }
  100. &.layout-boxed {
  101. .wrapper {
  102. max-width: 100%;
  103. }
  104. }
  105. .wrapper {
  106. overflow: hidden;
  107. }
  108. }
  109. .hold-transition {
  110. .content-wrapper,
  111. .right-side,
  112. .main-footer,
  113. .main-sidebar,
  114. .left-side,
  115. .main-header .navbar,
  116. .main-header .logo,
  117. .menu-open .fa-angle-left {
  118. /* Fix for IE */
  119. .transition(none);
  120. }
  121. }
  122. /* Content */
  123. .content {
  124. min-height: 250px;
  125. padding: 15px;
  126. .container-fixed(@grid-gutter-width);
  127. }
  128. /* H1 - H6 font */
  129. h1,
  130. h2,
  131. h3,
  132. h4,
  133. h5,
  134. h6,
  135. .h1,
  136. .h2,
  137. .h3,
  138. .h4,
  139. .h5,
  140. .h6 {
  141. font-family: 'Source Sans Pro', sans-serif;
  142. }
  143. /* General Links */
  144. a {
  145. color: @link-color;
  146. }
  147. a:hover,
  148. a:active,
  149. a:focus {
  150. outline: none;
  151. text-decoration: none;
  152. color: @link-hover-color;
  153. }
  154. /* Page Header */
  155. .page-header {
  156. margin: 10px 0 20px 0;
  157. font-size: 22px;
  158. > small {
  159. color: #666;
  160. display: block;
  161. margin-top: 5px;
  162. }
  163. }