diff options
author | JLGC @monolinux <monolinux@junglacode.org> | 2016-08-15 23:13:16 -0500 |
---|---|---|
committer | JLGC @monolinux <monolinux@junglacode.org> | 2016-08-15 23:13:16 -0500 |
commit | 683c0464093f6a7976236c68653c2a2cc5dae280 (patch) | |
tree | bf176ecd82415cc4952eea071b7d264dd5fd68b4 /assets/sass/_mixins.sass | |
parent | b1e795fc5b45369f7b9b565b1e106d2673361977 (diff) | |
parent | 5f82a942c0011bf91947b2c1d627c0907bda0c92 (diff) |
Merge https://github.com/kanboard/kanboard
Diffstat (limited to 'assets/sass/_mixins.sass')
-rw-r--r-- | assets/sass/_mixins.sass | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/assets/sass/_mixins.sass b/assets/sass/_mixins.sass new file mode 100644 index 00000000..23301a82 --- /dev/null +++ b/assets/sass/_mixins.sass @@ -0,0 +1,68 @@ +@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% + +@mixin placeholder + &::-webkit-input-placeholder + @content + &:-moz-placeholder + @content + &::-moz-placeholder + @content + &:-ms-input-placeholder + @content + +@mixin col-x($n) + @for $i from 1 through $n + .column-#{$i} + width: $i * 1% + +=appearance + -webkit-appearance: none + -moz-appearance: none + +=display-flex + display: -webkit-flex + display: flex + +=flex-direction($direction) + -webkit-flex-direction: $direction + flex-direction: $direction + +=flex-wrap + -webkit-flex-wrap: wrap + flex-wrap: wrap + +=align-content($position) + -webkit-align-items: $position + align-items: $position + +=justify-content($position) + -webkit-justify-content: $position + justify-content: $position |