Search
 
SCRIPT & CODE EXAMPLE
 

CSS

sass mixin

@mixin transform($property) {
  -webkit-transform: $property;
  -ms-transform: $property;
  transform: $property;
}
.box { @include transform(rotate(30deg)); }
Comment

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;
}
Comment

scss mixin

@mixin rtl($property, $ltr-value, $rtl-value) { // with argumens
  #{$property}: $ltr-value;

  [dir=rtl] & {
    #{$property}: $rtl-value;
  }
}

.sidebar {
  @include rtl(float, left, right);
}
Comment

Sass @mixin and @include

@mixin important-text {
  color: red;
  font-size: 25px;
  font-weight: bold;
  border: 1px solid blue;
}
Comment

PREVIOUS NEXT
Code Example
Css :: Giving body maximum width in css 
Css :: for...of...loop 
Css :: how to change font color in css 
Css :: css width percentage 
Css :: css align image bottom 
Css :: simple website templates free download html with css without bootstrap 
Css :: z-index on position absolute 
Css :: background image syntax in css if it in folder 
Css :: css button 
Css :: liste commandes disponibles linux 
Css :: amp pages lcp 
Css :: css mask cut diagonal 
Css :: how to display a header in the center of the column in css 
Css :: css play button on image 
Css :: javafx change image on hover 
Css :: change the background of an element in a loop using css 
Css :: webpack validationerror: invalid options object. mini css extract plugin loader has been initialized using an options object that does not match the api schema. 
Css :: resctrict css to apply on div 
Css :: css body overflow hidden sidebar scrollbar 
Css :: css assign multiple classes to one element 
Css :: datepicker not select future date odoo 13 
Css :: using css custom properties root 
Css :: nth-child in css 
Css :: download css from website 
Css :: how to add bold in css 
Css :: github lottie 
Css :: gradient generator 
Css :: css pixel art 
Css :: how long ago was 1993 years 
Css :: css button remove border 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =