scinote-web/app/assets/stylesheets/mixins.scss

75 lines
2.2 KiB
SCSS
Raw Normal View History

2016-02-12 23:52:43 +08:00
@mixin box-shadow($shadows...) {
-moz-box-shadow: $shadows;
-webkit-box-shadow: $shadows;
box-shadow: $shadows;
-o-box-shadow: $shadows;
}
@mixin rotate($degrees) {
-webkit-transform: rotate($degrees);
-moz-transform: rotate($degrees);
-ms-transform: rotate($degrees);
-o-transform: rotate($degrees);
transform: rotate($degrees);
}
@mixin rotate-important($degrees) {
-webkit-transform: rotate($degrees) !important;
-moz-transform: rotate($degrees) !important;
-ms-transform: rotate($degrees) !important;
-o-transform: rotate($degrees) !important;
transform: rotate($degrees) !important;
}
@mixin no-animation() {
-webkit-transition: none !important;
-moz-transition: none !important;
-ms-transition: none !important;
-o-transition: none !important;
transition: none !important;
}
@mixin transition($trans) {
-webkit-transition: $trans;
-moz-transition: $trans;
-ms-transition: $trans;
-o-transition: $trans;
transition: $trans;
}
@mixin rotate-animation-important($duration, $degrees) {
-webkit-transition-duration: $duration !important;
-moz-transition-duration: $duration !important;
-ms-transition-duration: $duration !important;
-o-transition-duration: $duration !important;
transition-duration: $duration !important;
-webkit-transition-property: -webkit-transform !important;
-moz-transition-property: -moz-transform !important;
-ms-transition-property: -ms-transform !important;
-o-transition-property: -o-transform !important;
transition-property: transform !important;
@include rotate-important($degrees);
}
@mixin rotate-animation($duration, $degrees) {
-webkit-transition-duration: $duration;
-moz-transition-duration: $duration;
-ms-transition-duration: $duration;
-o-transition-duration: $duration;
transition-duration: $duration;
-webkit-transition-property: -webkit-transform;
-moz-transition-property: -moz-transform;
-ms-transition-property: -ms-transform;
-o-transition-property: -o-transform;
transition-property: transform;
@include rotate($degrees);
}
2019-04-26 21:20:39 +08:00
// Material design mixins
@mixin md-card-style {
background-color: $color-white;
border: 1px solid $color-concrete;
border-radius: 5px;
transition: $md-transaction;
}