mirror of
https://github.com/cupcakearmy/nicco.io.git
synced 2024-12-22 08:06:29 +00:00
styling
This commit is contained in:
parent
b3446c6048
commit
6098393e42
@ -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 {
|
||||||
|
@ -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%;
|
||||||
|
@ -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 />
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user