core.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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;
  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. }
  106. body.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. /* Fix for IE */
  115. .transition(none);
  116. }
  117. }
  118. /* Content */
  119. .content {
  120. min-height: 250px;
  121. padding: 15px;
  122. .container-fixed(@grid-gutter-width);
  123. }
  124. /* H1 - H6 font */
  125. h1,
  126. h2,
  127. h3,
  128. h4,
  129. h5,
  130. h6,
  131. .h1,
  132. .h2,
  133. .h3,
  134. .h4,
  135. .h5,
  136. .h6 {
  137. font-family: 'Source Sans Pro', sans-serif;
  138. }
  139. /* General Links */
  140. a {
  141. color: @link-color;
  142. }
  143. a:hover,
  144. a:active,
  145. a:focus {
  146. outline: none;
  147. text-decoration: none;
  148. color: @link-hover-color;
  149. }
  150. /* Page Header */
  151. .page-header {
  152. margin: 10px 0 20px 0;
  153. font-size: 22px;
  154. > small {
  155. color: #666;
  156. display: block;
  157. margin-top: 5px;
  158. }
  159. }