aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/toolbar/toolbar.module.scss
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-18 11:44:37 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-18 11:44:37 +0200
commit54883bb5c36cf21462a421605a709fdd6f04b150 (patch)
treebb67a6c9ce824c52c3bae732a32f192a32969f64 /src/components/organisms/toolbar/toolbar.module.scss
parentf347cc1e4ae32289198d698f05f84119a708b599 (diff)
chore: add branding animation
Diffstat (limited to 'src/components/organisms/toolbar/toolbar.module.scss')
-rw-r--r--src/components/organisms/toolbar/toolbar.module.scss16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/components/organisms/toolbar/toolbar.module.scss b/src/components/organisms/toolbar/toolbar.module.scss
index cda9b37..4bcabcb 100644
--- a/src/components/organisms/toolbar/toolbar.module.scss
+++ b/src/components/organisms/toolbar/toolbar.module.scss
@@ -23,6 +23,18 @@
box-shadow: 0 fun.convert-px(-2) fun.convert-px(3) fun.convert-px(-1)
var(--color-shadow-dark);
+ :global {
+ animation: slide-in-from-bottom 0.8s ease-in-out 0s 1;
+ }
+
+ @include mix.media("screen") {
+ @include mix.dimensions("sm") {
+ :global {
+ animation: slide-in-from-top 1s ease-in-out 0s 1;
+ }
+ }
+ }
+
.modal {
&--search,
&--settings {
@@ -52,8 +64,10 @@
}
.tooltip {
+ padding: calc(var(--title-height) / 2 + var(--spacing-2xs))
+ var(--spacing-2xs) var(--spacing-2xs);
top: unset;
- bottom: calc(100% + var(--spacing-xs));
+ bottom: calc(100% + var(--spacing-2xs));
transform-origin: bottom right;
}
}