_core.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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. overflow-x: hidden;
  16. }
  17. /* Layout */
  18. .wrapper {
  19. @include clearfix();
  20. min-height: 100%;
  21. position: relative;
  22. overflow: hidden;
  23. .layout-boxed & {
  24. max-width: 1250px;
  25. margin: 0 auto;
  26. min-height: 100%;
  27. box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  28. position: relative;
  29. }
  30. }
  31. .layout-boxed {
  32. background: url('#{$boxed-layout-bg-image-path}') repeat fixed;
  33. }
  34. /*
  35. * Content Wrapper - contains the main content
  36. */
  37. .content-wrapper {
  38. min-height: 100%;
  39. }
  40. .content-wrapper,
  41. .main-footer {
  42. margin-left: $sidebar-width;
  43. z-index: 820;
  44. //Top nav layout
  45. .layout-top-nav & {
  46. margin-left: 0;
  47. }
  48. @media (max-width: map-get($grid-breakpoints, md) + 1) {
  49. margin-left: 0;
  50. }
  51. //When opening the sidebar on large screens
  52. .sidebar-collapse & {
  53. @media (min-width: map-get($grid-breakpoints, md)) {
  54. margin-left: 0;
  55. }
  56. }
  57. }
  58. .main-header,
  59. .main-footer,
  60. .content-wrapper {
  61. //Using disposable variable to join statements with a comma
  62. $transition-rule: $transition-speed $transition-fn,
  63. margin $transition-speed $transition-fn;
  64. transition: transform $transition-rule;
  65. //When opening the sidebar on small screens
  66. .sidebar-open & {
  67. @media (max-width: map-get($grid-breakpoints, md) + 1) {
  68. @include translate($sidebar-width, 0);
  69. }
  70. }
  71. }
  72. .content-wrapper,
  73. .right-side {
  74. min-height: 100%;
  75. background-color: $main-bg;
  76. z-index: 800;
  77. }
  78. .main-footer {
  79. background: #fff;
  80. padding: 15px;
  81. color: #444;
  82. border-top: 1px solid $gray-lighter;
  83. }
  84. /* Fixed layout */
  85. .fixed {
  86. .main-header,
  87. .main-sidebar,
  88. .left-side {
  89. position: fixed;
  90. }
  91. .main-header {
  92. top: 0;
  93. right: 0;
  94. left: 0;
  95. }
  96. .content-wrapper,
  97. .right-side {
  98. padding-top: 50px;
  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: 0 15px 15px 15px;
  122. // @include 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. }