feat: add native android app with capacitor (#732)
* feat: add capacitor and android app * feat: add android build action * fix: add capacitor zoom and fix haptics * fix: padding on desktop
This commit is contained in:
1 parent
a1ccf4d9d0
commit
dfe6a7e67d
50 files changed
+1168
-30
No files matched your search
@@ -91,6 +91,13 @@
|
||||
border-top: none;
|
||||
background-color: var(--color-slate-50);
|
||||
|
||||
@variant max-md {
|
||||
padding-bottom: max(
|
||||
env(safe-area-inset-bottom),
|
||||
calc(var(--spacing) * 2)
|
||||
);
|
||||
}
|
||||
|
||||
@variant md {
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
@@ -118,6 +125,27 @@
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-areas: 'main';
|
||||
justify-items: start;
|
||||
--fade-color: var(--color-slate-50);
|
||||
|
||||
@variant dark {
|
||||
--fade-color: var(--color-zinc-950);
|
||||
}
|
||||
}
|
||||
|
||||
.shell-content::before {
|
||||
position: fixed;
|
||||
content: '';
|
||||
height: calc(env(safe-area-inset-top, 0px) * 1.25);
|
||||
width: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 101;
|
||||
|
||||
background-image: linear-gradient(
|
||||
to bottom,
|
||||
var(--fade-color),
|
||||
--alpha(var(--fade-color) / 0%)
|
||||
);
|
||||
}
|
||||
|
||||
.shell-content.limit-width {
|
||||
@@ -146,6 +174,7 @@
|
||||
}
|
||||
|
||||
.shell-content {
|
||||
padding-top: env(safe-area-inset-top, 0px);
|
||||
:global {
|
||||
.shell-main {
|
||||
width: 100%;
|
||||
@@ -153,7 +182,9 @@
|
||||
background-color: var(--color-slate-25);
|
||||
border-left: 1px solid var(--color-slate-100);
|
||||
border-right: 1px solid var(--color-slate-100);
|
||||
padding-bottom: calc(var(--spacing) * 22);
|
||||
padding-bottom: calc(
|
||||
calc(var(--spacing) * 22) + env(safe-area-inset-bottom, 0px)
|
||||
);
|
||||
|
||||
@variant dark {
|
||||
background-color: var(--color-zinc-925);
|
||||
|
||||
Reference in new issue
Block a user