@@ -54,7 +54,10 @@ It also will set the skip content buttons needed for accessibility.
5454</docs >
5555
5656<template >
57- <div id =" content-vue" class =" content" :class =" `app-${appName.toLowerCase()}`" >
57+ <div
58+ id =" content-vue"
59+ class =" content"
60+ :class =" [`app-${appName.toLowerCase()}`, { 'content--legacy': isLegacy34 }]" >
5861 <!-- TODO: with vue3 the `selector` attribute needs to be changed to `to="#skip-actions"` -->
5962 <Teleport selector =" #skip-actions" >
6063 <div class =" vue-skip-actions__container" >
@@ -99,6 +102,7 @@ import NcButton from '../NcButton/NcButton.vue'
99102import NcIconSvgWrapper from ' ../NcIconSvgWrapper/NcIconSvgWrapper.vue'
100103import { useIsMobile } from ' ../../composables/useIsMobile/index.ts'
101104import { t } from ' ../../l10n.js'
105+ import { isLegacy34 } from ' ../../utils/legacy.ts'
102106import contentSvg from ' ./content-selected.svg?raw'
103107import navigationSvg from ' ./navigation-selected.svg?raw'
104108
@@ -133,6 +137,7 @@ export default {
133137 const isMobile = useIsMobile ()
134138 return {
135139 isMobile,
140+ isLegacy34,
136141 }
137142 },
138143
@@ -185,6 +190,8 @@ export default {
185190 </script >
186191
187192<style lang="scss">
193+ @use ' ../../assets/variables.scss' as * ;
194+
188195// Remove server stylings and add a backdrop
189196#skip-actions .vue-skip-actions :focus-within {
190197 top : 0 !important ;
@@ -194,6 +201,15 @@ export default {
194201 padding : var (--body-container-margin )!important ;
195202 backdrop-filter : brightness (50% );
196203}
204+
205+ // New design (NC34+): divider only when an open navigation is present.
206+ @media only screen and (min-width : $breakpoint-mobile ) {
207+ .content :not (.content--legacy ) .app-navigation :not (.app-navigation--close ) ~ .app-content {
208+ border-inline-start : 1px solid var (--color-border );
209+ border-start-start-radius : var (--body-container-radius );
210+ border-end-start-radius : var (--body-container-radius );
211+ }
212+ }
197213 </style >
198214
199215<style lang="scss" scoped>
@@ -243,6 +259,14 @@ export default {
243259 overflow : hidden ;
244260 padding : 0 ;
245261
262+ // New design (NC34+): wrapper carries the frosted chrome so nav and
263+ // AppContent rounded-edge cutouts share one surface.
264+ & :not (&--legacy) {
265+ background-color : var (--color-main-background-blur , var (--color-main-background ));
266+ backdrop-filter : var (--filter-background-blur , none );
267+ -webkit-backdrop-filter : var (--filter-background-blur , none );
268+ }
269+
246270 & :not (.with-sidebar--full ) {
247271 position : fixed ;
248272 }
0 commit comments