Files
zulip/static/styles/reuseable_components.scss
Priyank Patel c9de28b185 css: Use mixins in zulip.scss.
This uses scss mixins, this are functions you can pass parameter in it and
return css/scss. It made repeating vendored transistion, and user-select property
more easier to use with less repetation. This also includes a scss file called reuseable_components.scss
which can be used anywhere else.
2018-05-08 10:35:40 -07:00

16 lines
551 B
SCSS

@mixin prefixed-transition($property, $timing, $timing-functions...) {
-webkit-transition: $property $timing $timing-functions;
-moz-transition: $property $timing $timing-functions;
-o-transition: $property $timing $timing-functions;
-ms-transition: $property $timing $timing-functions;
transition: $property $timing $timing-functions;
}
@mixin prefixed-user-select($value) {
-webkit-touch-callout: $value;
-webkit-user-select: $value;
-moz-user-select: $value;
-ms-user-select: $value;
user-select: $value;
}