Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
13542 anikendra 1
/**
2
 * Grid
3
 * --------------------------------------------------
4
 * Using flexbox for the grid, inspired by Philip Walton:
5
 * http://philipwalton.github.io/solved-by-flexbox/demos/grids/
6
 * By default each .col within a .row will evenly take up
7
 * available width, and the height of each .col with take
8
 * up the height of the tallest .col in the same .row.
9
 */
10
 
11
.row {
12
  @include display-flex();
13
  padding: ($grid-padding-width / 2);
14
  width: 100%;
15
}
16
 
17
.row-wrap {
18
  @include flex-wrap(wrap);
19
}
20
 
21
.row + .row {
22
  margin-top: ($grid-padding-width / 2) * -1;
23
  padding-top: 0;
24
}
25
 
26
.col {
27
  @include flex(1);
28
  display: block;
29
  padding: ($grid-padding-width / 2);
30
  width: 100%;
31
}
32
 
33
 
34
/* Vertically Align Columns */
35
/* .row-* vertically aligns every .col in the .row */
36
.row-top {
37
  @include align-items(flex-start);
38
}
39
.row-bottom {
40
  @include align-items(flex-end);
41
}
42
.row-center {
43
  @include align-items(center);
44
}
45
.row-stretch {
46
  @include align-items(stretch);
47
}
48
.row-baseline {
49
  @include align-items(baseline);
50
}
51
 
52
/* .col-* vertically aligns an individual .col */
53
.col-top {
54
  @include align-self(flex-start);
55
}
56
.col-bottom {
57
  @include align-self(flex-end);
58
}
59
.col-center {
60
  @include align-self(center);
61
}
62
 
63
/* Column Offsets */
64
.col-offset-10 {
65
  margin-left: 10%;
66
}
67
.col-offset-20 {
68
  margin-left: 20%;
69
}
70
.col-offset-25 {
71
  margin-left: 25%;
72
}
73
.col-offset-33, .col-offset-34 {
74
  margin-left: 33.3333%;
75
}
76
.col-offset-50 {
77
  margin-left: 50%;
78
}
79
.col-offset-66, .col-offset-67 {
80
  margin-left: 66.6666%;
81
}
82
.col-offset-75 {
83
  margin-left: 75%;
84
}
85
.col-offset-80 {
86
  margin-left: 80%;
87
}
88
.col-offset-90 {
89
  margin-left: 90%;
90
}
91
 
92
 
93
/* Explicit Column Percent Sizes */
94
/* By default each grid column will evenly distribute */
95
/* across the grid. However, you can specify individual */
96
/* columns to take up a certain size of the available area */
97
.col-10 {
98
  @include flex(0, 0, 10%);
99
  max-width: 10%;
100
}
101
.col-20 {
102
  @include flex(0, 0, 20%);
103
  max-width: 20%;
104
}
105
.col-25 {
106
  @include flex(0, 0, 25%);
107
  max-width: 25%;
108
}
109
.col-33, .col-34 {
110
  @include flex(0, 0, 33.3333%);
111
  max-width: 33.3333%;
112
}
113
.col-50 {
114
  @include flex(0, 0, 50%);
115
  max-width: 50%;
116
}
117
.col-66, .col-67 {
118
  @include flex(0, 0, 66.6666%);
119
  max-width: 66.6666%;
120
}
121
.col-75 {
122
  @include flex(0, 0, 75%);
123
  max-width: 75%;
124
}
125
.col-80 {
126
  @include flex(0, 0, 80%);
127
  max-width: 80%;
128
}
129
.col-90 {
130
  @include flex(0, 0, 90%);
131
  max-width: 90%;
132
}
133
 
134
 
135
/* Responsive Grid Classes */
136
/* Adding a class of responsive-X to a row */
137
/* will trigger the flex-direction to */
138
/* change to column and add some margin */
139
/* to any columns in the row for clearity */
140
 
141
@include responsive-grid-break('.responsive-sm', $grid-responsive-sm-break);
142
@include responsive-grid-break('.responsive-md', $grid-responsive-md-break);
143
@include responsive-grid-break('.responsive-lg', $grid-responsive-lg-break);