Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit75b53b96bf026376e14357d5a1ff1b3c0a53df82 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-11-14 16:14:39 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2018-11-14 16:14:39 +0800
Files057ddf4fbb9ba2739fef78dc74248eed0df7c0fe /src
Spectre-Dark-Gruvbox-75b53b96bf026376e14357d5a1ff1b3c0a53df82.tar
Spectre-Dark-Gruvbox-75b53b96bf026376e14357d5a1ff1b3c0a53df82.tar.gz
Spectre-Dark-Gruvbox-75b53b96bf026376e14357d5a1ff1b3c0a53df82.zip
Parentb777a03857cba6322929e3f11a4bb14d0338d160 (diff)
Replace transition: all;
9 files changed, 17 insertions, 11 deletions
-rw-r--r--src/_accordions.scss4
-rw-r--r--src/_carousels.scss2
-rw-r--r--src/_off-canvas.scss2
-rw-r--r--src/_parallax.scss2
-rw-r--r--src/_popovers.scss2
-rw-r--r--src/_sliders.scss6
-rw-r--r--src/_toasts.scss6
-rw-r--r--src/_tooltips.scss2
-rw-r--r--src/mixins/_transition.scss2
diff --git a/src/_accordions.scss b/src/_accordions.scss
index 4c69686..fd21585 100644
--- a/src/_accordions.scss
+++ b/src/_accordions.scss
@@ -18,7 +18,7 @@
padding: $unit-1 $unit-2;
.icon {
- transition: all .2s ease;
+ transition: transform .25s;
}
}
@@ -26,7 +26,7 @@
margin-bottom: $layout-spacing;
max-height: 0;
overflow: hidden;
- transition: max-height .2s ease;
+ transition: max-height .25s;
}
}
diff --git a/src/_carousels.scss b/src/_carousels.scss
index 55dc31c..5b4eaf5 100644
--- a/src/_carousels.scss
+++ b/src/_carousels.scss
@@ -44,7 +44,7 @@
opacity: 0;
position: absolute;
top: 50%;
- transition: all .4s ease;
+ transition: all .4s;
transform: translateY(-50%);
z-index: $zindex-1;
}
diff --git a/src/_off-canvas.scss b/src/_off-canvas.scss
index 32cefb6..f3b8b9f 100644
--- a/src/_off-canvas.scss
+++ b/src/_off-canvas.scss
@@ -28,7 +28,7 @@ $off-canvas-breakpoint: $size-lg !default;
overflow-y: auto;
position: fixed;
top: 0;
- transition: transform .25s ease;
+ transition: transform .25s;
z-index: $zindex-2;
@if $rtl == true {
right: 0;
diff --git a/src/_parallax.scss b/src/_parallax.scss
index acc05be..ea244e5 100644
--- a/src/_parallax.scss
+++ b/src/_parallax.scss
@@ -52,7 +52,7 @@ $parallax-fade-color: rgba(255, 255, 255, .35) !default;
text-shadow: 0 0 20px rgba($dark-color, .75);
top: 0;
transform: translateZ($parallax-offset-z) scale($parallax-scale);
- transition: all .4s ease;
+ transition: transform .4s;
width: 100%;
z-index: $zindex-0;
}
diff --git a/src/_popovers.scss b/src/_popovers.scss
index 6fbac0f..35b6bcd 100644
--- a/src/_popovers.scss
+++ b/src/_popovers.scss
@@ -10,7 +10,7 @@
position: absolute;
top: 0;
transform: translate(-50%, -50%) scale(0);
- transition: transform .2s ease;
+ transition: transform .2s;
width: $control-width-sm;
z-index: $zindex-3;
}
diff --git a/src/_sliders.scss b/src/_sliders.scss
index 01576b9..3ff38e8 100644
--- a/src/_sliders.scss
+++ b/src/_sliders.scss
@@ -26,7 +26,7 @@
border-radius: 50%;
height: $unit-3;
margin-top: -($unit-3 - $unit-h) / 2;
- transition: transform .2s ease;
+ transition: transform .2s;
width: $unit-3;
}
&::-moz-range-thumb {
@@ -34,7 +34,7 @@
border: 0;
border-radius: 50%;
height: $unit-3;
- transition: transform .2s ease;
+ transition: transform .2s;
width: $unit-3;
}
&::-ms-thumb {
@@ -42,7 +42,7 @@
border: 0;
border-radius: 50%;
height: $unit-3;
- transition: transform .2s ease;
+ transition: transform .2s;
width: $unit-3;
}
diff --git a/src/_toasts.scss b/src/_toasts.scss
index af1102e..fef15f8 100644
--- a/src/_toasts.scss
+++ b/src/_toasts.scss
@@ -39,4 +39,10 @@
.btn-clear {
margin: $unit-h;
}
+
+ p {
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
}
diff --git a/src/_tooltips.scss b/src/_tooltips.scss
index d6929e1..8693b67 100644
--- a/src/_tooltips.scss
+++ b/src/_tooltips.scss
@@ -18,7 +18,7 @@
position: absolute;
text-overflow: ellipsis;
transform: translate(-50%, $unit-2);
- transition: all .2s ease;
+ transition: opacity .2s, transform .2s;
white-space: pre;
z-index: $zindex-3;
}
diff --git a/src/mixins/_transition.scss b/src/mixins/_transition.scss
index 0b7497b..e6fec2a 100644
--- a/src/mixins/_transition.scss
+++ b/src/mixins/_transition.scss
@@ -1,4 +1,4 @@
// Component transition
@mixin control-transition() {
- transition: all .2s ease;
+ transition: background .2s, border .2s, box-shadow .2s, color .2s;
}