From 50d17de2788d6a6e837765f01364ca8877e98d3c Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Thu, 28 Mar 2019 20:59:39 +0100 Subject: [PATCH] UI Project: move sticky breadcrumbs when sidebar is visible. --- src/styles/_project.sass | 41 ++++++++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 12 deletions(-) diff --git a/src/styles/_project.sass b/src/styles/_project.sass index 15b08f8b..795e5113 100644 --- a/src/styles/_project.sass +++ b/src/styles/_project.sass @@ -16,22 +16,38 @@ body.svnman, body.edit_node_types, body.search-project overflow-y: auto z-index: $z-index-base - +media-xs - flex-direction: column-reverse - min-height: auto + &.is-sidebar-visible + .breadcrumbs-container + +media-xs + left: $project_nav-width-xs + +media-sm + left: $project_nav-width-sm + +media-md + left: $project_nav-width-md + +media-lg + left: $project_nav-width-lg + +media-xl + left: $project_nav-width-xl #project-side-container display: flex +media-xs - flex-direction: column-reverse + position: fixed + bottom: 0 + right: 0 + top: $project_header-height + left: 0 + z-index: 1 + height: 100% #project_nav, #project_tree, #project_nav-container +media-xs - width: $project_nav-width-xs + height: 100vh + width: 100% +media-sm width: $project_nav-width-sm +media-md @@ -44,14 +60,13 @@ body.svnman, body.edit_node_types, body.search-project width: $project_nav-width #project_nav-container - +media-xs - display: block - height: initial !important - position: relative - position: fixed z-index: $z-index-base + 5 + .project-sidebar-toggle + right: 5px + z-index: 1 + #project_sidebar box-shadow: inset -1px 0 0 0 $color-background flex-shrink: 0 @@ -111,6 +126,8 @@ body.svnman, body.edit_node_types, body.search-project right: 0 z-index: $z-index-base + 3 + +media-xs + bottom: 0 /* Edit Asset buttons */ .project-mode-view, @@ -237,6 +254,8 @@ ul.project-edit-tools min-height: 800px border: none + .breadcrumbs-container + top: $project_header-height + 1 #project_context .node-details-description @@ -250,8 +269,6 @@ ul.project-edit-tools /* The actual navigation tree container */ #project_tree - +media-xs - margin-top: 0 overflow-y: auto // show vertical scrollbars when needed. padding: 5px 0 // some padding on top/bottom of jsTree. position: relative