mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
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.
16 lines
551 B
SCSS
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;
|
|
}
|