Advertisement
natdm

SASS

Jul 31st, 2015
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.31 KB | None | 0 0
  1. $primary-color-light:  #0288D2;
  2. $primary-color:        #03A9F4;
  3. $primary-color-light:  #B3E5FC;
  4. $primary-color-text:   #FFFFFF;
  5. $accent-color:         #FF9800;
  6. $primary-text-color:   #212121;
  7. $secondary-text-color: #727272;
  8. $divider-color:        #B6B6B6;
  9. $bg-color:             #F8F8F8;
  10. $card-color:           #FFFFFF;
  11.  
  12. @mixin border-radius($radius: 0px) {
  13.   -webkit-border-radius: $radius;
  14.   -moz-border-radius: $radius;
  15.   border-radius: $radius;
  16. }
  17.  
  18. @mixin box-shadow($shadow:4px, $blur:6px, $color: #888888) {
  19.   -webkit-box-shadow: $shadow $shadow $blur $color;
  20.   -moz-box-shadow: $shadow $shadow $blur $color;
  21.   box-shadow: $shadow $shadow $blur $color;
  22. }
  23.  
  24. @mixin circle($width, $color) {
  25.   width: $width;
  26.   height: $width;
  27.   background: $color;
  28.   -webkit-border-radius: $width/2;
  29.   -moz-border-radius: $width/2;
  30.   border-radius: $width/2;
  31. }
  32.  
  33. @mixin triangle($width, $direction, $color) {
  34.   @if $direction == up {
  35.     width: 0;
  36.     height: 0;
  37.     border-left: $width solid transparent;
  38.     border-right: $width solid transparent;
  39.     border-bottom: $width solid $color;
  40.   } @else if $direction == down {
  41.     width: 0;
  42.     height: 0;
  43.     border-left: $width solid transparent;
  44.     border-right: $width solid transparent;
  45.     border-top: $width solid $color;
  46.   }@else if $direction == left {
  47.     width: 0;
  48.     height: 0;
  49.     border-bottom: $width solid transparent;
  50.     border-top: $width solid transparent;
  51.     border-right: $width solid $color;
  52.   }@else if $direction == right {
  53.     width: 0;
  54.     height: 0;
  55.     border-bottom: $width solid transparent;
  56.     border-top: $width solid transparent;
  57.     border-left: $width solid $color;
  58.   }
  59. }
  60.  
  61. @mixin hover($shadow:2px, $blur:2px, $color: #888888) {
  62.   -webkit-box-shadow: $shadow $shadow $blur $color;
  63.   -moz-box-shadow: $shadow $shadow $blur $color;
  64.   box-shadow: $shadow $shadow $blur $color;
  65.  
  66.   -webkit-transition: all 0.1s ease-in-out;
  67.   -moz-transition: all 0.1s ease-in-out;
  68.   -o-transition: all 0.1s ease-in-out;
  69.   transition: all 0.1s ease-in-out;
  70. }
  71.  
  72. //Lists!!
  73. $icons:(add, check, close, create, delete, download, left, right, settings, write);
  74. @each $icon in $icons {
  75.   .#{$icon} { background:url('../icons/#{$icon}.png');
  76.     background-size: 50px auto;
  77.     background-repeat: no-repeat;
  78.     background-position: center;
  79.   }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement