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 :: css change class name start with 
Css :: all text in caps using css 
Css :: when change size image not change contrast css 
Css :: animations 
Css :: how to override material ui css 
Css :: select first 5 child css 
Css :: Html css forbidden cursor 
Css :: animate.css not working 
Css :: sass scale color 
Css :: border style 
Css :: justify xd 
Css :: image align text align in center 
Css :: transition for css 
Css :: boostrap breakpoints 
Css :: css transforms 
Css :: aspect ratio css media query 
Css :: remove required effect in css 
Css :: allfont cdn 
Css :: bootstrap-scss github 
Css :: what is flex 1 in css 
Css :: background image causes webpage scrolling slow 
Css :: secltor for parent li css 
Css :: css a tag id selector scrolls too far 
Css :: change disbled button background pyqt5 
Css :: using tinymce with tailwind css 
Css :: why is my css not working 
Css :: webpack compile sass to css file 
Css :: bulma scss add custom colors 
Css :: eliminate render-blocking resources css 
Css :: chrome developer tools css customize 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =