core.less 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /*
  2. * Core: Genral 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('../img/boxed-bg.jpg') repeat fixed;
  36. }
  37. /*
  38. * Content Wrapper - contins 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. .transition-transform(@transition-speed @transition-fn);
  45. .transition(margin-left @transition-speed @transition-fn);
  46. margin-left: @sidebar-width;
  47. z-index: 820;
  48. //Top nav layout
  49. .layout-top-nav & {
  50. margin-left: 0;
  51. }
  52. @media (max-width: @screen-xs-max) {
  53. margin-left: 0;
  54. }
  55. //When opening the sidebar on large screens
  56. .sidebar-collapse & {
  57. @media (min-width: @screen-sm) {
  58. margin-left: 0;
  59. }
  60. }
  61. //When opening the sidebar on small screens
  62. .sidebar-open & {
  63. @media (max-width: @screen-xs-max) {
  64. .translate(@sidebar-width, 0);
  65. }
  66. }
  67. }
  68. .content-wrapper,
  69. .right-side {
  70. min-height: 100%;
  71. background-color: @body-bg;
  72. z-index: 800;
  73. }
  74. .main-footer {
  75. background: #fff;
  76. padding: 15px;
  77. color: #444;
  78. border-top: 1px solid #eee;
  79. }
  80. /* Fixed layout */
  81. .fixed {
  82. .main-header,
  83. .main-sidebar,
  84. .left-side {
  85. position: fixed;
  86. }
  87. .main-header {
  88. top: 0;
  89. right: 0;
  90. left: 0;
  91. }
  92. .content-wrapper,
  93. .right-side {
  94. padding-top: 50px;
  95. @media (max-width: @screen-header-collapse) {
  96. padding-top: 100px;
  97. }
  98. }
  99. &.layout-boxed {
  100. .wrapper {
  101. max-width: 100%;
  102. }
  103. }
  104. }
  105. /* Content */
  106. .content {
  107. min-height: 250px;
  108. padding: 15px;
  109. .container-fixed(@grid-gutter-width);
  110. }
  111. /* H1 - H6 font */
  112. h1,
  113. h2,
  114. h3,
  115. h4,
  116. h5,
  117. h6,
  118. .h1,
  119. .h2,
  120. .h3,
  121. .h4,
  122. .h5,
  123. .h6 {
  124. font-family: 'Source Sans Pro', sans-serif;
  125. }
  126. /* General Links */
  127. a {
  128. color: @link-color;
  129. }
  130. a:hover,
  131. a:active,
  132. a:focus {
  133. outline: none;
  134. text-decoration: none;
  135. color: @link-hover-color;
  136. }
  137. /* Page Header */
  138. .page-header {
  139. margin: 10px 0 20px 0;
  140. font-size: 22px;
  141. > small {
  142. color: #666;
  143. display: block;
  144. margin-top: 5px;
  145. }
  146. }