Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

mixins.scss 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. @mixin vertical-gradient( $top, $bottom ) {
  2. background: $top;
  3. background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
  4. background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
  5. background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
  6. background: -o-linear-gradient( top, $top 0%, $bottom 100% );
  7. background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
  8. background: linear-gradient( top, $top 0%, $bottom 100% );
  9. }
  10. @mixin horizontal-gradient( $top, $bottom ) {
  11. background: $top;
  12. background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
  13. background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
  14. background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
  15. background: -o-linear-gradient( left, $top 0%, $bottom 100% );
  16. background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
  17. background: linear-gradient( left, $top 0%, $bottom 100% );
  18. }
  19. @mixin radial-gradient( $outer, $inner, $type: circle ) {
  20. background: $outer;
  21. background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  22. background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
  23. background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  24. background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  25. background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  26. background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
  27. }
  28. @mixin light-bg-text-color( $color ) {
  29. section.has-light-background {
  30. &, h1, h2, h3, h4, h5, h6 {
  31. color: $color;
  32. }
  33. }
  34. }
  35. @mixin dark-bg-text-color( $color ) {
  36. section.has-dark-background {
  37. &, h1, h2, h3, h4, h5, h6 {
  38. color: $color;
  39. }
  40. }
  41. }