Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. @mixin export-map($map, $name: '', $stringify: false) {
  2. :export {
  3. @each $key, $value in $map {
  4. @if $value != null {
  5. @if ($stringify) {
  6. #{$key}: #{inspect($value)};
  7. } @else if (str-length($name) > 0) {
  8. #{$name}-#{$key}: #{$value};
  9. } @else {
  10. #{$key}: #{$value};
  11. }
  12. }
  13. }
  14. }
  15. }
  16.  
  17. @import '../mixins/export-map';
  18.  
  19. $breakpoints: (
  20. to-small: ( max-width: 766px ),
  21. small: ( min-width: 767px ),
  22. to-medium: ( max-width: 991px ),
  23. medium: ( min-width: 992px ),
  24. to-large: ( min-width: 1199px ),
  25. large: ( min-width: 1200px ),
  26. to-x-large: ( min-width: 1599px ),
  27. x-large: ( min-width: 1600px )
  28. );
  29.  
  30. @include export-map($breakpoints, '', true);
  31.  
  32. import colors from '@/assets/styles/variables/_colors.scss'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement