mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2024-12-22 08:06:29 +00:00
height stuff for ios
This commit is contained in:
parent
4c58bfc4cc
commit
27e2e41c44
@ -21,7 +21,7 @@
|
|||||||
padding-top: env(safe-area-inset-top);
|
padding-top: env(safe-area-inset-top);
|
||||||
padding-bottom: env(safe-area-inset-bottom);
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
width: 3em;
|
width: 3em;
|
||||||
height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
|
height: 100%;
|
||||||
background-color: var(--clr-primary);
|
background-color: var(--clr-primary);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -9,8 +9,6 @@
|
|||||||
return dj(date).format('MMM D, YYYY')
|
return dj(date).format('MMM D, YYYY')
|
||||||
}
|
}
|
||||||
|
|
||||||
$: console.log(post)
|
|
||||||
|
|
||||||
$: created = format(post.date)
|
$: created = format(post.date)
|
||||||
$: modified = format(post.modified)
|
$: modified = format(post.modified)
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,13 +1,21 @@
|
|||||||
<script>
|
<script>
|
||||||
|
import { onMount } from 'svelte'
|
||||||
|
|
||||||
import Nav from '../components/Nav.svelte'
|
import Nav from '../components/Nav.svelte'
|
||||||
|
|
||||||
export let segment
|
export let segment
|
||||||
|
let wrapper
|
||||||
|
|
||||||
|
onMount(() => {
|
||||||
|
wrapper.style.height = `${window.innerHeight}px`
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
div {
|
div {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
@ -18,7 +26,7 @@
|
|||||||
flex: 1 0 auto;
|
flex: 1 0 auto;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
max-width: calc(100% - 4em);
|
max-width: calc(100% - 4em);
|
||||||
max-height: 100vh;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 30em) {
|
@media (max-width: 30em) {
|
||||||
@ -28,7 +36,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div>
|
<div bind:this={wrapper}>
|
||||||
<Nav {segment} />
|
<Nav {segment} />
|
||||||
<main>
|
<main>
|
||||||
<slot />
|
<slot />
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
|
Loading…
Reference in New Issue
Block a user