diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-04 21:09:14 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-04 21:09:14 +0000 |
commit | ceb5cdd5c3293d290c1ae42a86175ac4f51b4408 (patch) | |
tree | 340743b21d708a6c06c5d402c0b697d8b89d9b06 /app/assets/stylesheets/framework | |
parent | bd979acf95124119d41f75d34cab231229f4dd81 (diff) | |
download | gitlab-ce-ceb5cdd5c3293d290c1ae42a86175ac4f51b4408.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/stylesheets/framework')
-rw-r--r-- | app/assets/stylesheets/framework/super_sidebar.scss | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/app/assets/stylesheets/framework/super_sidebar.scss b/app/assets/stylesheets/framework/super_sidebar.scss index 9da860c838b..d58849e21af 100644 --- a/app/assets/stylesheets/framework/super_sidebar.scss +++ b/app/assets/stylesheets/framework/super_sidebar.scss @@ -7,6 +7,9 @@ } } +$super-sidebar-transition-duration: $gl-transition-duration-medium; +$super-sidebar-transition-hint-duration: $super-sidebar-transition-duration / 4; + @mixin notification-dot($color, $size, $top, $left) { background-color: $color; border: 2px solid $gray-10; // Same as the sidebar's background color. @@ -34,16 +37,15 @@ &.super-sidebar-loading { transform: translate3d(-100%, 0, 0); + transition: none; @include media-breakpoint-up(xl) { transform: translate3d(0, 0, 0); } } - &:not(.super-sidebar-loading) { - @media (prefers-reduced-motion: no-preference) { - transition: transform $gl-transition-duration-medium; - } + @media (prefers-reduced-motion: no-preference) { + transition: transform $super-sidebar-transition-duration; } .user-bar { @@ -207,24 +209,23 @@ display: none; } -.super-sidebar-peek { +.super-sidebar-peek, +.super-sidebar-peek-hint { @include gl-shadow; border-right: 0; +} +.super-sidebar-peek-hint { @media (prefers-reduced-motion: no-preference) { - transition: transform 100ms !important; + transition: transform $super-sidebar-transition-hint-duration ease-out; } } -.super-sidebar-hover-area { - z-index: $super-sidebar-z-index; -} - .page-with-super-sidebar { padding-left: 0; @media (prefers-reduced-motion: no-preference) { - transition: padding-left $gl-transition-duration-medium; + transition: padding-left $super-sidebar-transition-duration; } &:not(.page-with-super-sidebar-collapsed) { @@ -260,6 +261,10 @@ &.super-sidebar-peek { transform: translate3d(0, 0, 0); } + + &.super-sidebar-peek-hint { + transform: translate3d(calc(#{$gl-spacing-scale-3} - 100%), 0, 0); + } } @include media-breakpoint-up(xl) { |