Skip to content

Commit

Permalink
Implement new container layout
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 23, 2022
1 parent 7b09608 commit cac211d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/NcAppContent/NcAppContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,14 @@ export default {
<style lang="scss" scoped>
.app-content {
position: relative;
position: initial;
z-index: 1000;
flex-basis: 100vw;
min-width: 0;
min-height: 100%;
height: 100%;
// Overriding server styles TODO: cleanup!
margin: 0 !important;
background-color: var(--color-main-background);
overflow: scroll;
// Variables
// the whitespace between the topbar content and its edges
Expand Down
5 changes: 4 additions & 1 deletion src/components/NcAppNavigation/NcAppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default {
padding: 4px;
// Above appcontent
z-index: 1800;
height: calc(100vh - #{$header-height});
height: 100%;
box-sizing: border-box;
background-color: var(--color-main-background);
-webkit-user-select: none;
Expand All @@ -161,6 +161,9 @@ export default {
flex-direction: column;
flex-grow: 0;
flex-shrink: 0;
background-color: var(--color-main-background-blur);
backdrop-filter: var(--filter-background-blur);
-webkit-backdrop-filter: var(--filter-background-blur);
&--close {
margin-left: - $navigation-width;
Expand Down
3 changes: 2 additions & 1 deletion src/components/NcAppSidebar/NcAppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,10 @@ $top-buttons-spacing: 6px;
width: 27vw;
min-width: $sidebar-min-width;
max-width: $sidebar-max-width;
height: calc(100vh - var(--header-height));
height: 100%;
border-left: 1px solid var(--color-border);
background: var(--color-main-background);
.app-sidebar-header {
> .app-sidebar__close {
position: absolute;
Expand Down
14 changes: 11 additions & 3 deletions src/components/NcContent/NcContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,18 @@ export default {
<style lang="scss" scoped>
.content {
box-sizing: border-box;
position: relative;
margin: var(--body-container-margin);
margin-top: 50px;
display: flex;
padding-top: 50px;
min-height: 100%;
width: calc(100% - var(--body-container-margin) * 2);
height: var(--body-height);
overflow: hidden;
padding: 0;
&:not(.with-sidebar--full) {
position: fixed;
}
:deep(*) {
box-sizing: border-box;
}
Expand Down

0 comments on commit cac211d

Please sign in to comment.