Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Move FAB to top on large screens

dominik-zeglena00c5a26245e
diff --git a/saleor/static/dashboard/scss/components/_buttons.scss b/saleor/static/dashboard/scss/components/_buttons.scss
index 0b0b4ebf4e..5e4f955a64 100644
--- a/saleor/static/dashboard/scss/components/_buttons.scss
+++ b/saleor/static/dashboard/scss/components/_buttons.scss
@@ -44,6 +44,11 @@
.btn-fab {
&-fixed {
@extend .fixed-action-btn;
+ @media (min-width: $large-screen) {
+ position: absolute;
+ top: 4px;
+ right: calc(25% - 60px);
+ }
}
&-default {
@extend .btn-fab;
diff --git a/saleor/static/dashboard/scss/components/_nav.scss b/saleor/static/dashboard/scss/components/_nav.scss
index 7e36705d8b..25cd176ff9 100644
--- a/saleor/static/dashboard/scss/components/_nav.scss
+++ b/saleor/static/dashboard/scss/components/_nav.scss
@@ -178,6 +178,7 @@ header {
background-color: $primary-color-light;
height: $subheader-height;
margin-top: 0;
+ position: relative;
.container {
width: 100%;
max-width: none;
@@ -233,6 +234,9 @@ body.nav-toggled {
}
}
}
+ .btn-fab-fixed {
+ right: 25%;
+ }
}
body.sticky-nav {