Skip to content

Commit

Permalink
Merge pull request #3091 from nextcloud/poc/redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Sep 1, 2022
2 parents 9572792 + f664314 commit d3fad93
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 15 deletions.
19 changes: 14 additions & 5 deletions src/components/NcAppContent/NcAppContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The list size must be between the min and the max width value.
</docs>

<template>
<main id="app-content-vue" class="app-content no-snapper">
<main id="app-content-vue" class="app-content no-snapper" :class="{ 'app-content--has-list': hasList }">
<template v-if="hasList">
<!-- Mobile view does not allow resizeable panes -->
<div v-if="isMobile"
Expand Down Expand Up @@ -323,20 +323,29 @@ 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);
&:not(.app-content--has-list) {
overflow: auto;
}
// Variables
// the whitespace between the topbar content and its edges
--topbar-margin: $topbar-margin;
}
.app-content-wrapper {
position: relative;
width: 100%;
height: 100%;
}
// Mobile list/details handling
.app-content-wrapper--mobile {
&.app-content-wrapper--show-list :deep() {
Expand Down Expand Up @@ -377,7 +386,7 @@ export default {
}
&-details {
overflow-y: scroll;
overflow-y: auto;
@media only screen and (max-width: $breakpoint-mobile) {
min-width: 100%;
Expand Down
12 changes: 6 additions & 6 deletions src/components/NcAppNavigation/NcAppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,13 @@ export default {
will-change: transform;
transition: transform var(--animation-quick), margin var(--animation-quick);
width: $navigation-width;
position: sticky;
position: -webkit-sticky;
top: $header-height;
position: relative;
top: 0;
left: 0;
padding: 4px;
// Above appcontent
z-index: 1800;
height: calc(100vh - #{$header-height});
height: 100%;
box-sizing: border-box;
-webkit-user-select: none;
-moz-user-select: none;
Expand All @@ -162,9 +161,10 @@ export default {
background-color: var(--color-main-background-blur, var(--color-main-background));
-webkit-backdrop-filter: var(--filter-background-blur, none);
backdrop-filter: var(--filter-background-blur, none);
&--close {
margin-left: - $navigation-width;
transform: translateX(-100%);
position: absolute;
}
//list of navigation items
Expand All @@ -184,7 +184,7 @@ export default {
// When on mobile, we make the navigation slide over the appcontent
@media only screen and (max-width: $breakpoint-mobile) {
.app-navigation:not(.app-navigation--close) {
margin-left: - $navigation-width;
position: absolute;
}
}
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
15 changes: 12 additions & 3 deletions src/components/NcContent/NcContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,19 @@ 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);
border-radius: var(--body-container-radius);
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 d3fad93

Please sign in to comment.