You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

230 lines
4.6 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //
  2. // Layout Variations
  3. // --------------------------------------------------
  4. #page-container {
  5. // Main content
  6. > #page-header .content-header,
  7. > #page-header .content,
  8. > #main-container .content,
  9. > #page-footer .content {
  10. max-width: $space-main-max-width;
  11. }
  12. @include media-breakpoint-up(xl) {
  13. &.main-content-narrow {
  14. > #page-header .content-header,
  15. > #page-header .content,
  16. > #main-container .content,
  17. > #page-footer .content {
  18. width: $space-narrow;
  19. }
  20. }
  21. }
  22. &.main-content-boxed {
  23. > #page-header .content-header,
  24. > #page-header .content,
  25. > #main-container .content,
  26. > #page-footer .content {
  27. max-width: $space-boxed;
  28. }
  29. }
  30. // Page header
  31. &.page-header-dark #page-header {
  32. color: darken($body-color-light, 8%);
  33. background-color: $header-dark-bg;
  34. }
  35. &.page-header-glass {
  36. #page-header {
  37. position: absolute;
  38. background-color: transparent;
  39. }
  40. &.page-header-fixed {
  41. #page-header {
  42. transition: background-color .2s linear;
  43. will-change: background-color;
  44. box-shadow: none;
  45. }
  46. &.page-header-scroll #page-header {
  47. background-color: rgba($header-bg, .9);
  48. box-shadow: 0 .25rem .625rem rgba(0,0,0,.02);
  49. backdrop-filter: blur(1rem);
  50. }
  51. &.page-header-scroll.page-header-dark #page-header {
  52. background-color: rgba($header-dark-bg, .9);
  53. box-shadow: none;
  54. backdrop-filter: blur(1rem);
  55. }
  56. }
  57. #main-container,
  58. &.page-header-fixed #main-container {
  59. padding-top: 0;
  60. }
  61. }
  62. &.page-header-fixed {
  63. #page-header {
  64. position: fixed;
  65. box-shadow: 0 5px 10px rgba(0,0,0,.02);
  66. }
  67. &.page-header-dark #page-header {
  68. box-shadow: none;
  69. }
  70. #main-container {
  71. padding-top: $header-height;
  72. }
  73. }
  74. &.page-header-fixed,
  75. &.page-header-glass {
  76. #page-header {
  77. top: 0;
  78. right: 0;
  79. left: 0;
  80. z-index: $zindex-fixed;
  81. min-width: 320px;
  82. max-width: 100%;
  83. width: auto;
  84. }
  85. @include media-breakpoint-up(lg) {
  86. &.sidebar-o #page-header {
  87. padding-left: $sidebar-width;
  88. .overlay-header {
  89. left: $sidebar-width;
  90. }
  91. }
  92. &.sidebar-r.sidebar-o #page-header {
  93. padding-right: $sidebar-width;
  94. padding-left: 0;
  95. .overlay-header {
  96. right: $sidebar-width;
  97. left: 0;
  98. }
  99. }
  100. // Mini Sidebar
  101. &.sidebar-mini.sidebar-o #page-header {
  102. padding-left: $sidebar-mini-width;
  103. .overlay-header {
  104. left: $sidebar-mini-width;
  105. }
  106. }
  107. &.sidebar-mini.sidebar-r.sidebar-o #page-header {
  108. padding-right: $sidebar-mini-width;
  109. padding-left: 0;
  110. .overlay-header {
  111. right: $sidebar-mini-width;
  112. left: 0;
  113. }
  114. }
  115. }
  116. }
  117. // Page Footer
  118. &.page-footer-fixed {
  119. #page-footer {
  120. position: fixed;
  121. height: $footer-height;
  122. }
  123. #main-container {
  124. padding-bottom: $footer-height;
  125. }
  126. #page-footer {
  127. bottom: 0;
  128. right: 0;
  129. left: 0;
  130. z-index: $zindex-fixed;
  131. min-width: 320px;
  132. max-width: 100%;
  133. width: auto;
  134. }
  135. @include media-breakpoint-up(lg) {
  136. &.sidebar-o #page-footer {
  137. padding-left: $sidebar-width;
  138. }
  139. &.sidebar-r.sidebar-o #page-footer {
  140. padding-right: $sidebar-width;
  141. padding-left: 0;
  142. }
  143. }
  144. }
  145. // Sidebar and Side Overlay
  146. &.sidebar-dark #sidebar {
  147. color: $body-color-light;
  148. background-color: $sidebar-dark-bg;
  149. box-shadow: none;
  150. }
  151. // Side Scroll
  152. &.side-scroll {
  153. #sidebar .js-sidebar-scroll,
  154. #side-overlay {
  155. overflow-y: visible;
  156. }
  157. @include media-breakpoint-up(lg) {
  158. #sidebar {
  159. .content-header,
  160. .content-side {
  161. width: $sidebar-width !important;
  162. }
  163. }
  164. #sidebar.with-mini-nav {
  165. .content-header,
  166. .content-side {
  167. width: $sidebar-width - $sidebar-mini-nav-width !important;
  168. }
  169. }
  170. #side-overlay {
  171. .content-header,
  172. .content-side {
  173. width: $side-overlay-width !important;
  174. }
  175. }
  176. }
  177. }
  178. @include media-breakpoint-up(lg) {
  179. &.sidebar-o {
  180. padding-left: $sidebar-width;
  181. }
  182. &.sidebar-r.sidebar-o {
  183. padding-right: $sidebar-width;
  184. padding-left: 0;
  185. }
  186. // Mini Sidebar
  187. &.sidebar-mini.sidebar-o {
  188. padding-left: $sidebar-mini-width;
  189. }
  190. &.sidebar-mini.sidebar-o.sidebar-r {
  191. padding-right: $sidebar-mini-width;
  192. padding-left: 0;
  193. }
  194. }
  195. }