fix: background & drawer
This commit is contained in:
parent
a369b8528b
commit
43b53c176a
4 changed files with 25 additions and 4 deletions
BIN
public/bg-d.png
Normal file
BIN
public/bg-d.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
BIN
public/bg-l.png
Normal file
BIN
public/bg-l.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
|
|
@ -121,6 +121,7 @@ function branchSetting() {}
|
||||||
side="left"
|
side="left"
|
||||||
:breakpoint="599"
|
:breakpoint="599"
|
||||||
class="column justify-between no-wrap"
|
class="column justify-between no-wrap"
|
||||||
|
:class="{ dark: $q.dark.isActive }"
|
||||||
:width="mini ? 80 : 256"
|
:width="mini ? 80 : 256"
|
||||||
show-if-above
|
show-if-above
|
||||||
>
|
>
|
||||||
|
|
@ -254,7 +255,13 @@ function branchSetting() {}
|
||||||
|
|
||||||
:deep(.q-drawer__content) {
|
:deep(.q-drawer__content) {
|
||||||
border-radius: var(--radius-2);
|
border-radius: var(--radius-2);
|
||||||
background: var(--surface-1);
|
background-color: rgba(255, 255, 255, 0.5);
|
||||||
|
backdrop-filter: blur(11.2px);
|
||||||
|
-webkit-backdrop-filter: blur(11.2px);
|
||||||
|
|
||||||
|
&.dark {
|
||||||
|
background-color: hsla(var(--gray-10-hsl) / 0.5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dot {
|
.dot {
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,12 @@ onMounted(async () => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<q-layout view="lHh Lpr lFf">
|
<q-layout
|
||||||
|
view="lHh Lpr lFf"
|
||||||
|
class="bg"
|
||||||
|
:class="{ dark: $q.dark.isActive }"
|
||||||
|
:style="`background-size: ${$q.screen.gt.sm ? '100% 100%' : 'cover'}`"
|
||||||
|
>
|
||||||
<drawer-component
|
<drawer-component
|
||||||
:mini="leftDrawerMini"
|
:mini="leftDrawerMini"
|
||||||
v-model:left-drawer-open="leftDrawerOpen"
|
v-model:left-drawer-open="leftDrawerOpen"
|
||||||
|
|
@ -222,12 +227,12 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="surface-0 scroll column"
|
class="scroll column"
|
||||||
style="height: 100vh; flex-wrap: nowrap; padding-bottom: var(--size-4)"
|
style="height: 100vh; flex-wrap: nowrap; padding-bottom: var(--size-4)"
|
||||||
>
|
>
|
||||||
<!-- header -->
|
<!-- header -->
|
||||||
<div
|
<div
|
||||||
class="q-px-lg surface-0 row items-center justify-start q-pb-md q-pt-lg"
|
class="q-px-lg row items-center justify-start q-pb-md q-pt-lg"
|
||||||
style="position: sticky; top: 0; z-index: 8"
|
style="position: sticky; top: 0; z-index: 8"
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|
@ -486,6 +491,15 @@ onMounted(async () => {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.bg {
|
||||||
|
background-image: url('bg-l.png');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
|
&.dark {
|
||||||
|
background-image: url('bg-d.png');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.text-stone {
|
.text-stone {
|
||||||
--_color: var(--stone-5);
|
--_color: var(--stone-5);
|
||||||
color: var(--_color);
|
color: var(--_color);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue