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>
<style>
nav :global(*) {
box-sizing: initial;
}
nav {
padding-top: env(safe-area-inset-top);
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));
background-color: var(--clr-primary);
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
border-right: 0.1em solid var(--clr-secondary);
}
ul {

View File

@ -11,6 +11,16 @@
width: calc(100% + 4em);
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) {
width: 100%;

View File

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

View File

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