sass mixin
@mixin rtl($property, $ltr-value, $rtl-value) {
#{$property}: $ltr-value;
[dir=rtl] & {
#{$property}: $rtl-value;
}
}
.sidebar {
@include rtl(float, left, right);
}
@mixin transform($property) {
-webkit-transform: $property;
-ms-transform: $property;
transform: $property;
}
.box { @include transform(rotate(30deg)); }
Also in CSS:
- css class list
- How many properties in flex-wrap
- customize highlight color website
- default font family css
- css select all elements except last css
- css browser prefixes
- simple font-face mixin scss
- css selected color
- how to link to a css file in html
- react import css
- how to change highlight color on website
- rem in css
- css onclick change color
- css tricks media queries
- media query change button text
- css how to style a div
- css important
- css ripple effect
- css vertical center
- comment css
- how do you center buttons in css
- how To target a particular td in css
- bootstrap badge color
- button width based on text csss