core.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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(100% - 102px)";
  69. background-color: @content-bg;
  70. z-index: 800;
  71. }
  72. .main-footer {
  73. background: #fff;
  74. padding: 15px;
  75. color: #444;
  76. border-top: 1px solid @gray-lte;
  77. }
  78. /* Fixed layout */
  79. .fixed {
  80. .main-header,
  81. .main-sidebar,
  82. .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. .wrapper {
  103. overflow: hidden;
  104. }
  105. }
  106. .hold-transition {
  107. .content-wrapper,
  108. .right-side,
  109. .main-footer,
  110. .main-sidebar,
  111. .left-side,
  112. .main-header .navbar,
  113. .main-header .logo,
  114. .menu-open .fa-angle-left {
  115. /* Fix for IE */
  116. .transition(none);
  117. }
  118. }
  119. /* Content */
  120. .content {
  121. min-height: 250px;
  122. padding: 15px;
  123. .container-fixed(@grid-gutter-width);
  124. }
  125. /* H1 - H6 font */
  126. h1,
  127. h2,
  128. h3,
  129. h4,
  130. h5,
  131. h6,
  132. .h1,
  133. .h2,
  134. .h3,
  135. .h4,
  136. .h5,
  137. .h6 {
  138. font-family: 'Source Sans Pro', sans-serif;
  139. }
  140. /* General Links */
  141. a {
  142. color: @link-color;
  143. }
  144. a:hover,
  145. a:active,
  146. a:focus {
  147. outline: none;
  148. text-decoration: none;
  149. color: @link-hover-color;
  150. }
  151. /* Page Header */
  152. .page-header {
  153. margin: 10px 0 20px 0;
  154. font-size: 22px;
  155. > small {
  156. color: #666;
  157. display: block;
  158. margin-top: 5px;
  159. }
  160. }