Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. @mixin media-xs {
  2. @media screen and (min-width: $screen-xs-min) and (max-width: $screen-xs-max) {
  3. @content;
  4. }
  5. }
  6.  
  7. @mixin media-sm {
  8. @media screen and (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
  9. @content;
  10. }
  11. }
  12.  
  13. @mixin media-md {
  14. @media screen and (min-width: $screen-md-min) and (max-width: $screen-md-max) {
  15. @content;
  16. }
  17. }
  18.  
  19. @mixin media-lg {
  20. @media screen and (min-width: $screen-lg-min) {
  21. @content;
  22. }
  23. }
  24.  
  25. @mixin media-sm-min {
  26. @media screen and (min-width: $screen-sm-min) {
  27. @content;
  28. }
  29. }
  30.  
  31. @mixin media-md-min {
  32. @media screen and (min-width: $screen-md-min) {
  33. @content;
  34. }
  35. }
  36.  
  37. @mixin media-lg-min {
  38. @media screen and (min-width: $screen-lg-min) {
  39. @content;
  40. }
  41. }
  42.  
  43. @mixin media-xs-max {
  44. @media screen and (max-width: $screen-xs-max) {
  45. @content;
  46. }
  47. }
  48.  
  49. @mixin media-sm-max {
  50. @media screen and (max-width: $screen-sm-max) {
  51. @content;
  52. }
  53. }
  54.  
  55. @mixin media-md-max {
  56. @media screen and (max-width: $screen-md-max) {
  57. @content;
  58. }
  59. }
  60.  
  61.  
  62.  
  63.  
  64.  
  65. @mixin xsml($rule, $x, $s, $m, $l) {
  66. #{$rule}: $x;
  67.  
  68. @include media-sm-min {
  69. #{$rule}: $s;
  70. }
  71.  
  72. @include media-md-min {
  73. #{$rule}: $m;
  74. }
  75.  
  76. @include media-lg-min {
  77. #{$rule}: $l;
  78. }
  79. }
  80.  
  81. @mixin xsm($rule, $x, $s, $m) {
  82. @include xsml($rule, $x, $s, $m, $m);
  83. }
  84.  
  85. @mixin sml($rule, $s, $m, $l) {
  86. @include xsml($rule, $s, $s, $m, $l);
  87. }
  88.  
  89. @mixin sm($rule, $s, $m) {
  90. @include xsml($rule, $s, $s, $m, $m);
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement