_core.scss 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // stylelint-disable property-no-vendor-prefix
  2. body {
  3. letter-spacing: $body-letter-spacing;
  4. touch-action: manipulation;
  5. text-rendering: optimizeLegibility;
  6. font-feature-settings: "liga" 0;
  7. position: relative;
  8. min-height: 100%;
  9. height: 100%;
  10. -webkit-font-smoothing: antialiased;
  11. -moz-osx-font-smoothing: grayscale;
  12. @media print {
  13. background: transparent;
  14. }
  15. }
  16. @include scrollbar;
  17. //
  18. // Fluid container
  19. //
  20. .layout-fluid {
  21. .container,
  22. [class^="container-"],
  23. [class*=" container-"] {
  24. max-width: 100%;
  25. }
  26. }
  27. //
  28. // Boxed container
  29. //
  30. .layout-boxed {
  31. --#{$prefix}theme-boxed-border-radius: 0;
  32. --#{$prefix}theme-boxed-width: #{map-get($container-max-widths, xxl)};
  33. @include media-breakpoint-up(md) {
  34. background: $dark linear-gradient(to right, rgba(#fff, .1), transparent) fixed;
  35. padding: 1rem;
  36. --#{$prefix}theme-boxed-border-radius: #{$border-radius};
  37. }
  38. .page {
  39. margin: 0 auto;
  40. max-width: var(--#{$prefix}theme-boxed-width);
  41. border-radius: var(--#{$prefix}theme-boxed-border-radius);
  42. color: var(--#{$prefix}body-color);
  43. @include media-breakpoint-up(md) {
  44. border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color);
  45. background: var(--#{$prefix}body-bg);
  46. }
  47. > .navbar:first-child {
  48. border-top-left-radius: var(--#{$prefix}theme-boxed-border-radius);
  49. border-top-right-radius: var(--#{$prefix}theme-boxed-border-radius);
  50. }
  51. }
  52. }