core.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /*
  2. * Core: General 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('@{boxed-layout-bg-image-path}') repeat fixed;
  36. }
  37. /*
  38. * Content Wrapper - contains the main content
  39. * ```.right-side has been deprecated as of v2.0.0 in favor of .content-wrapper ```
  40. */
  41. .content-wrapper,
  42. .right-side,
  43. .main-footer {
  44. //Using disposable variable to join statements with a comma
  45. @transition-rule: @transition-speed @transition-fn,
  46. margin @transition-speed @transition-fn;
  47. .transition-transform(@transition-rule);
  48. margin-left: @sidebar-width;
  49. z-index: 820;
  50. //Top nav layout
  51. .layout-top-nav & {
  52. margin-left: 0;
  53. }
  54. @media (max-width: @screen-xs-max) {
  55. margin-left: 0;
  56. }
  57. //When opening the sidebar on large screens
  58. .sidebar-collapse & {
  59. @media (min-width: @screen-sm) {
  60. margin-left: 0;
  61. }
  62. }
  63. //When opening the sidebar on small screens
  64. .sidebar-open & {
  65. @media (max-width: @screen-xs-max) {
  66. .translate(@sidebar-width, 0);
  67. }
  68. }
  69. }
  70. .content-wrapper,
  71. .right-side {
  72. min-height: 100%;
  73. background-color: @body-bg;
  74. z-index: 800;
  75. }
  76. .main-footer {
  77. background: #fff;
  78. padding: 15px;
  79. color: #444;
  80. border-top: 1px solid @gray;
  81. }
  82. /* Fixed layout */
  83. .fixed {
  84. .main-header,
  85. .main-sidebar,
  86. .left-side {
  87. position: fixed;
  88. }
  89. .main-header {
  90. top: 0;
  91. right: 0;
  92. left: 0;
  93. }
  94. .content-wrapper,
  95. .right-side {
  96. padding-top: 50px;
  97. @media (max-width: @screen-header-collapse) {
  98. padding-top: 100px;
  99. }
  100. }
  101. &.layout-boxed {
  102. .wrapper {
  103. max-width: 100%;
  104. }
  105. }
  106. }
  107. body.hold-transition { /* Fix for IE */
  108. .content-wrapper,
  109. .right-side,
  110. .main-footer,
  111. .main-sidebar,
  112. .left-side,
  113. .main-header > .navbar,
  114. .main-header .logo {
  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. }