mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
634b58bd6a
* Various UX improvments for note section
74 lines
2.2 KiB
SCSS
74 lines
2.2 KiB
SCSS
@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);
|
|
}
|
|
|
|
|
|
// Material design mixins
|
|
|
|
@mixin md-card-style {
|
|
background-color: $color-white;
|
|
border: 1px solid $color-concrete;
|
|
border-radius: 5px;
|
|
transition: $md-transaction;
|
|
}
|