mirror of https://github.com/onweru/compose.git

weru
11.53.2020 02eccac472e8e3f9caef7c899b3c661039ad82d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.wrap
  max-width: 1240px
  &, &
    width: 100%
    padding: 0 25px
    margin: 0 auto
 
@for $i from 1 through 4 
  $size: $i * 1.5rem
  $x-size: $size * 0.5 
  .pt-#{$i} 
    padding-top: $size
  
  .pb-#{$i} 
    padding-bottom: $size
  
  .mt-#{$i} 
    margin-top: $size
  
  .mb-#{$i} 
    margin-bottom: $size
 
%grid
  display: grid
  grid-template-columns: 1fr
 
[class*='grid-']
  grid-gap: 2rem
 
.grid-2, .grid-3, .grid-4, .grid-auto, .grid-reverse
  @extend %grid
 
@media screen and (min-width: 42rem)
  .grid-auto
    grid-template-columns: 2fr 5fr
  
  .grid-reverse
    grid-template-columns: 3fr 1fr
  
  .grid-2
    grid-template-columns: 1fr 1fr
  
  .grid-3 
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr))
  
  .grid-4 
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr))
 
.active
  color: var(--theme)