This commit is contained in:
cupcakearmy 2020-09-28 15:24:50 +02:00
parent b3446c6048
commit 6098393e42
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
4 changed files with 21 additions and 4 deletions

View File

@ -13,16 +13,21 @@
</script> </script>
<style> <style>
nav :global(*) {
box-sizing: initial;
}
nav { nav {
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: 3.5em; width: 3em;
height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
background-color: var(--clr-primary); background-color: var(--clr-primary);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
border-right: 0.1em solid var(--clr-secondary);
} }
ul { ul {

View File

@ -11,6 +11,16 @@
width: calc(100% + 4em); width: calc(100% + 4em);
margin-left: -2em; margin-left: -2em;
} }
@media (max-width: 30em) {
div :global(.alignfull) {
width: calc(100vw - 4em);
margin-left: -1em;
}
div :global(.alignwide) {
width: calc(100% + 2em);
margin-left: -1em;
}
}
div :global(figure img) { div :global(figure img) {
width: 100%; width: 100%;

View File

@ -23,13 +23,12 @@
@media (max-width: 30em) { @media (max-width: 30em) {
main { main {
padding: 2em; padding: 1em;
} }
} }
</style> </style>
<div> <div>
<Nav {segment} /> <Nav {segment} />
<main> <main>
<slot /> <slot />

View File

@ -1,5 +1,9 @@
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400&family=Playfair+Display&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400&family=Playfair+Display&display=swap');
* {
box-sizing: border-box;
}
:root { :root {
--ff: 'Jost', Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, --ff: 'Jost', Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans,
Helvetica Neue, sans-serif; Helvetica Neue, sans-serif;
@ -11,7 +15,6 @@
body { body {
margin: 0; margin: 0;
box-sizing: border-box;
overflow: hidden; overflow: hidden;
background-color: #ffffff; background-color: #ffffff;