Layout von Websiten mit Bootstrap und Foundation
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.

_grid.scss 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Container widths
  2. //
  3. // Set the container width, and override it for fixed navbars in media queries.
  4. @if $enable-grid-classes {
  5. // Single container class with breakpoint max-widths
  6. .container {
  7. @include make-container();
  8. @include make-container-max-widths();
  9. }
  10. // 100% wide container at all breakpoints
  11. .container-fluid {
  12. @include make-container();
  13. }
  14. // Responsive containers that are 100% wide until a breakpoint
  15. @each $breakpoint, $container-max-width in $container-max-widths {
  16. .container-#{$breakpoint} {
  17. @extend .container-fluid;
  18. }
  19. @include media-breakpoint-up($breakpoint, $grid-breakpoints) {
  20. %responsive-container-#{$breakpoint} {
  21. max-width: $container-max-width;
  22. }
  23. // Extend each breakpoint which is smaller or equal to the current breakpoint
  24. $extend-breakpoint: true;
  25. @each $name, $width in $grid-breakpoints {
  26. @if ($extend-breakpoint) {
  27. .container#{breakpoint-infix($name, $grid-breakpoints)} {
  28. @extend %responsive-container-#{$breakpoint};
  29. }
  30. // Once the current breakpoint is reached, stop extending
  31. @if ($breakpoint == $name) {
  32. $extend-breakpoint: false;
  33. }
  34. }
  35. }
  36. }
  37. }
  38. }
  39. // Row
  40. //
  41. // Rows contain your columns.
  42. @if $enable-grid-classes {
  43. .row {
  44. @include make-row();
  45. }
  46. // Remove the negative margin from default .row, then the horizontal padding
  47. // from all immediate children columns (to prevent runaway style inheritance).
  48. .no-gutters {
  49. margin-right: 0;
  50. margin-left: 0;
  51. > .col,
  52. > [class*="col-"] {
  53. padding-right: 0;
  54. padding-left: 0;
  55. }
  56. }
  57. }
  58. // Columns
  59. //
  60. // Common styles for small and large grid columns
  61. @if $enable-grid-classes {
  62. @include make-grid-columns();
  63. }