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

scss transition mixin

transition
Comment

PREVIOUS NEXT
Code Example
Css :: remove outline on button click 
Css :: add textcontent on hover 
Css :: darken scss 
Css :: how to put an element in front 
Css :: css calc vw minus px 
Css :: css border-bottom only length of text 
Css :: how to make distance betwwen corosel transition 
Css :: css background text clip 
Css :: how to add a border in css 
Css :: change text color when scrolling css 
Css :: show arrow on hover css 
Css :: create circle in css 
Css :: what css vmin 
Css :: iphne media query csss 
Css :: increase the distance between paragraphs css 
Css :: css background collor 
Css :: css for chrome only 
Css :: bounced in css animation 
Css :: textarea resize grabber style 
Css :: hide image title on hover css 
Css :: css class and id selector 
Css :: how to increase the area of a text are 
Css :: icon circle css 
Css :: css disable animation on load 
Css :: import scss 
Css :: asp net css how to change text alignment of gridview column 
Css :: css transparent background behind text 
Css :: nth child 
Css :: allfont cdn 
Css :: how blend two backgrounds css and isolate content 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =