Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

scss mixin

@mixin reset-list {    // Mixin without arguments
  margin: 0;
  padding: 0;
  list-style: none;
}

@mixin horizontal-list {
  @include reset-list;

  li {
    display: inline-block;
    margin: {
      left: -2px;
      right: 2em;
    }
  }
}

nav ul {
  @include horizontal-list;
}
Source by sass-lang.com #
 
PREVIOUS NEXT
Tagged: #scss #mixin
ADD COMMENT
Topic
Name
2+3 =