fix grid
This commit is contained in:
parent
0e151d2b1a
commit
ccda2c463c
@ -6,12 +6,12 @@
|
||||
|
||||
```
|
||||
<div class="Grid">
|
||||
<div class="CDB-Width-1" style="background: green; height: 100px;"> </div>
|
||||
<div class="CDB-Width-2" style="background: orange"> </div>
|
||||
<div class="CDB-Width-3" style="background: red"> </div>
|
||||
<div class="CDB-Width-20" style="background: blue"> </div>
|
||||
<div class="Gap CDB-Width CDB-Width--1" style="background: green; height: 100px;"> </div>
|
||||
<div class="Gap CDB-Width CDB-Width--2" style="background: orange"> </div>
|
||||
<div class="Gap CDB-Width CDB-Width--3" style="background: red"> </div>
|
||||
<div class="Gap CDB-Width CDB-Width--20" style="background: blue"> </div>
|
||||
</div>
|
||||
<div class="CDB-Col12" style="margin: 20px 0; background: blue"> </div>
|
||||
<div class="CDB-Width--120" style="margin: 20px 0; background: blue"> </div>
|
||||
```
|
||||
*/
|
||||
|
||||
@ -21,8 +21,14 @@
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.CDB-Width {
|
||||
width: $baseSize;
|
||||
flex: 0 0 $baseSize;
|
||||
max-width: $baseSize;
|
||||
}
|
||||
|
||||
@for $i from 1 through 180 {
|
||||
.CDB-Col#{$baseSize * $i} {
|
||||
.CDB-Width--#{$i} {
|
||||
width: $baseSize * $i;
|
||||
flex: 0 0 $baseSize * $i;
|
||||
max-width: $baseSize * $i;
|
||||
|
Loading…
Reference in New Issue
Block a user