diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-03 12:13:59 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-03 12:13:59 +0000 |
commit | 6e228f38c37c4c7b6d6be648ae2664ebfb5c3c80 (patch) | |
tree | 0c7abe13728c198df556d04143dc624a67aaad85 /app/assets/stylesheets | |
parent | f6a4346585dcc6cc564cb4974a0ea49d2ac0531d (diff) | |
download | gitlab-ce-6e228f38c37c4c7b6d6be648ae2664ebfb5c3c80.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r-- | app/assets/stylesheets/framework/super_sidebar.scss | 23 | ||||
-rw-r--r-- | app/assets/stylesheets/startup/startup-dark.scss | 4 | ||||
-rw-r--r-- | app/assets/stylesheets/startup/startup-general.scss | 4 |
3 files changed, 29 insertions, 2 deletions
diff --git a/app/assets/stylesheets/framework/super_sidebar.scss b/app/assets/stylesheets/framework/super_sidebar.scss index 48c87682897..52561e5deb1 100644 --- a/app/assets/stylesheets/framework/super_sidebar.scss +++ b/app/assets/stylesheets/framework/super_sidebar.scss @@ -49,7 +49,9 @@ } &:not(.super-sidebar-loading) { - transition: transform $gl-transition-duration-medium; + @media (prefers-reduced-motion: no-preference) { + transition: transform $gl-transition-duration-medium ease-out; + } } .user-bar { @@ -154,9 +156,26 @@ display: none; } +.super-sidebar-peek { + @include gl-shadow; + border-right: 0; + transform: translate3d(0, 0, 0) !important; + + @media (prefers-reduced-motion: no-preference) { + transition: transform 100ms ease-out !important; + } +} + +.super-sidebar-hover-area { + z-index: $super-sidebar-z-index; +} + .page-with-super-sidebar { padding-left: 0; - transition: padding-left $gl-transition-duration-medium; + + @media (prefers-reduced-motion: no-preference) { + transition: padding-left $gl-transition-duration-medium ease-out; + } &:not(.page-with-super-sidebar-collapsed) { .super-sidebar-overlay { diff --git a/app/assets/stylesheets/startup/startup-dark.scss b/app/assets/stylesheets/startup/startup-dark.scss index 65cae126795..aeaa46c2b86 100644 --- a/app/assets/stylesheets/startup/startup-dark.scss +++ b/app/assets/stylesheets/startup/startup-dark.scss @@ -1472,9 +1472,13 @@ kbd { transform: translate3d(0, 0, 0); } } +@media (prefers-reduced-motion: no-preference) { +} .page-with-super-sidebar { padding-left: 0; } +@media (prefers-reduced-motion: no-preference) { +} @media (min-width: 1200px) { .page-with-super-sidebar { padding-left: 256px; diff --git a/app/assets/stylesheets/startup/startup-general.scss b/app/assets/stylesheets/startup/startup-general.scss index c5d9721d93c..e6589cb73a0 100644 --- a/app/assets/stylesheets/startup/startup-general.scss +++ b/app/assets/stylesheets/startup/startup-general.scss @@ -1472,9 +1472,13 @@ kbd { transform: translate3d(0, 0, 0); } } +@media (prefers-reduced-motion: no-preference) { +} .page-with-super-sidebar { padding-left: 0; } +@media (prefers-reduced-motion: no-preference) { +} @media (min-width: 1200px) { .page-with-super-sidebar { padding-left: 256px; |