core.less 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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: relative;
  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 {
  108. .content-wrapper,
  109. .right-side,
  110. .main-footer,
  111. .main-sidebar,
  112. .left-side,
  113. .main-header .navbar,
  114. .main-header .logo {
  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. }