summaryrefslogtreecommitdiff
path: root/assets/sass/_mixins.sass
blob: 66ed04f0ce10283a18869fd174b23df4d7a696fe (plain)
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
@import variables

@mixin custom-device($width)
  @media (max-width: #{$width})
    @content

@mixin xs-device
  @media (max-width: #{$xs-device-width})
    @content

@mixin sm-device
  @media (max-width: #{$sm-device-width})
    @content

@mixin md-device
  @media (min-width: #{$sm-device-width}) and (max-width: #{$md-device-width})
    @content

@mixin grid($columns: 0)
  box-sizing: border-box
  display: flex
  flex-wrap: wrap
  > *
    box-sizing: border-box
  > *
    width: (1/$columns) * 100%

@mixin grid_width($width)
  width: $width * 100%