core.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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-color: @sidebar-light-bg;
  35. }
  36. /*
  37. * Content Wrapper - contains the main content
  38. */
  39. .content-wrapper,
  40. .main-footer {
  41. // Using disposable variable to join statements with a comma
  42. @transition-rule: @transition-speed @transition-fn,
  43. margin @transition-speed @transition-fn;
  44. .transition-transform(@transition-rule);
  45. margin-left: @sidebar-width;
  46. z-index: 820;
  47. // Top nav layout
  48. .layout-top-nav & {
  49. margin-left: 0;
  50. }
  51. @media (max-width: @screen-xs-max) {
  52. margin-left: 0;
  53. }
  54. // When opening the sidebar on large screens
  55. .sidebar-collapse & {
  56. @media (min-width: @screen-sm) {
  57. margin-left: 0;
  58. }
  59. }
  60. // When opening the sidebar on small screens
  61. .sidebar-open & {
  62. @media (max-width: @screen-xs-max) {
  63. .translate(@sidebar-width, 0);
  64. }
  65. }
  66. }
  67. .content-wrapper {
  68. min-height: ~"calc(100vh - 101px)";
  69. background-color: @content-bg;
  70. z-index: 800;
  71. }
  72. @media (max-width: @screen-header-collapse) {
  73. .content-wrapper {
  74. min-height: ~"calc(100vh - 151px)";
  75. }
  76. }
  77. .main-footer {
  78. background: #fff;
  79. padding: 15px;
  80. color: #444;
  81. border-top: 1px solid @gray-lte;
  82. }
  83. /* Fixed layout */
  84. .fixed {
  85. .main-header,
  86. .main-sidebar,
  87. .left-side {
  88. position: fixed;
  89. }
  90. .main-header {
  91. top: 0;
  92. right: 0;
  93. left: 0;
  94. }
  95. .content-wrapper,
  96. .right-side {
  97. padding-top: 50px;
  98. @media (max-width: @screen-header-collapse) {
  99. padding-top: 100px;
  100. }
  101. }
  102. &.layout-boxed {
  103. .wrapper {
  104. max-width: 100%;
  105. }
  106. }
  107. .wrapper {
  108. overflow: hidden;
  109. }
  110. }
  111. .hold-transition {
  112. .content-wrapper,
  113. .right-side,
  114. .main-footer,
  115. .main-sidebar,
  116. .left-side,
  117. .main-header .navbar,
  118. .main-header .logo,
  119. .menu-open .fa-angle-left {
  120. /* Fix for IE */
  121. .transition(none);
  122. }
  123. }
  124. /* Content */
  125. .content {
  126. min-height: 250px;
  127. padding: 15px;
  128. .container-fixed(@grid-gutter-width);
  129. }
  130. /* H1 - H6 font */
  131. h1,
  132. h2,
  133. h3,
  134. h4,
  135. h5,
  136. h6,
  137. .h1,
  138. .h2,
  139. .h3,
  140. .h4,
  141. .h5,
  142. .h6 {
  143. font-family: 'Source Sans Pro', sans-serif;
  144. }
  145. /* General Links */
  146. a {
  147. color: @link-color;
  148. }
  149. a:hover,
  150. a:active,
  151. a:focus {
  152. outline: none;
  153. text-decoration: none;
  154. color: @link-hover-color;
  155. }
  156. /* Page Header */
  157. .page-header {
  158. margin: 10px 0 20px 0;
  159. font-size: 22px;
  160. > small {
  161. color: #666;
  162. display: block;
  163. margin-top: 5px;
  164. }
  165. }