_grid.scss 1014 Bytes
Newer Older
1
2
3
4
// Container widths
//
// Set the container width, and override it for fixed navbars in media queries.

5
6
7
8
9
@if $enable-grid-classes {
  .container {
    @include make-container();
    @include make-container-max-widths();
  }
Mark Otto's avatar
Mark Otto committed
10
}
11

12
13
14
15
16
// Fluid container
//
// Utilizes the mixin meant for fixed width containers, but without any defined
// width for fluid, full width layouts.

17
18
19
20
@if $enable-grid-classes {
  .container-fluid {
    @include make-container();
  }
21
22
23
24
25
26
}

// Row
//
// Rows contain and clear the floats of your columns.

27
28
29
30
@if $enable-grid-classes {
  .row {
    @include make-row();
  }
31
32
33
34
35
36
37
38
39
40
41
42

  // Remove the negative margin from default .row, then the horizontal padding
  // from all immediate children columns (to prevent runaway style inheritance).
  .no-gutters {
    margin-right: 0;
    margin-left: 0;

    > [class*="col-"] {
      padding-right: 0;
      padding-left: 0;
    }
  }
43
}
44

45
46
// Columns
//
47
// Common styles for small and large grid columns
48

49
50
51
@if $enable-grid-classes {
  @include make-grid-columns();
}