×
          
              
          
      
      Clear all filters including search bar
          
        Valeri Tandilashvili's Personal Professional Blog
      
    $spaceamounts: (1, 2, 3, 4, 5);
@each $space in $spaceamounts {
    .m-#{$space} {
        margin: #{$space}rem;
    }
}$sizes: 40px, 50px, 80px;
@each $size in $sizes {
  .icon-#{$size} {
    font-size: $size;
    height: $size;
    width: $size;
  }
}// set text color based on bg
@function set-text-color($color) {
    @if (lightness($color) > 70) {
        @return #333;
    } @else {
        @return #fff;
    }
}
// set bg color & text color
@mixin set-background($color) {
    background-color: $color;
    color: set-text-color($color);
}h1 {
    @include set-background($primary-color);
}@function set-text-color($color) {
    @if (lightness($color) > 70) {
        @return #333;
    } @else {
        @return #fff;
    }
}h1 {
    background-color: $primary-color;
    color: set-text-color($primary-color);
}$primary-color: blue;
$secondary-color: lightblue;@import 'config';Extensions (left navigation)  
->  search & install 
->  Manage (left bottom)  
->  Settings  
->  search (live sass...)  
->  Edit in settings.jsonformatexpanded / compressednull"css/"compressed.min.cssextensionNamesass --watch example.scss output.css@mixin triangle($size, $color, $direction) {
  height: 0;
  width: 0;
  border-color: transparent;
  border-style: solid;
  border-width: $size / 2;
  @if $direction == up {
    border-bottom-color: $color;
  } @else if $direction == right {
    border-left-color: $color;
  } @else if $direction == down {
    border-top-color: $color;
  } @else if $direction == left {
    border-right-color: $color;
  } @else {
    @error "Unknown direction #{$direction}.";
  }
}
.next {
  @include triangle(5px, black, right);
}