MVC_Recettes/static/style.css

120 lines
2.7 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600&display=swap');
:root {
font-family: 'Nunito', 'Arial';
/* vars */
--color-1-1: hsl(341, 100%, 95%);
--color-1-2: hsl(341, 85%, 89%);
--color-1-3: hsl(342, 95%, 79%);
--color-1-4: hsl(341, 94%, 65%);
--color-1-5: hsl(342, 72%, 49%);
--color-1-6: hsl(342, 62%, 37%);
--color-1-7: hsl(342, 66%, 31%);
--color-1-8: hsl(342, 78%, 19%);
--color-2-1: hsl(30, 33%, 98%);
--color-2-2: hsl(29, 56%, 91%);
--color-2-3: hsl(30, 59%, 83%);
--color-2-4: hsl(31, 54%, 69%);
--color-2-5: hsl(30, 66%, 63%);
--color-2-6: hsl(30, 46%, 46%);
--color-2-7: hsl(30, 64%, 29%);
--color-g-1: hsl(340, 2%, 63%);
--size-1: 2px;
--size-2: 4px;
--size-3: 8px;
--size-4: 12px;
--size-5: 24px;
--size-6: 48px;
--border-radius: var(--size-4);
--border: solid var(--size-1); /* don't forget to choose a color after */
--shadow: 2px 2px 18px -2px rgba(0,0,0,0.4), 2px 2px 4px 2px rgba(0,0,0,0.3);
}
* {
margin: 0;
padding: 0;
}
body {
background: var(--color-2-1);
}
body > header {
height: var(--size-6);
box-shadow: var(--shadow);
padding: var(--size-3);
font-size: var(--size-5);
background: var(--color-2-1);
}
body > header > nav {
height: 100%;
}
body > header > nav > ul {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
gap: var(--size-3);
height: 100%;
}
body > header > nav > ul > li::marker {
content: none;
}
body > header > nav > ul > li {
background: var(--color-1-4);
border-radius: var(--border-radius);
height: 100%;
padding-left: var(--size-4);
padding-right: var(--size-4);
}
body > header > nav > ul > li:first-child {
background: none;
border-radius: none;
flex: 1;
}
body > header > nav > ul > li {
display: flex;
align-items: center; /* aligns the contents of the <a> element vertically */
height: 100%; /* sets the height of the <a> element to 100% of the parent <li> element */
}
body > header > nav > ul > li > a {
color: var(--color-2-1);
font-weight: 600;
text-decoration: none;
}
body > header > nav > ul > li:first-child > a > img {
height: var(--size-6);
}
body > header > nav > ul > li:last-child {
border: var(--border) var(--color-1-4);
background: none;
}
body > header > nav > ul > li:last-child > a > img {
height: calc(var(--size-6) - var(--size-5));
}
footer {
display: flex;
flex-direction: column;
gap: var(--size-6);
justify-content: center;
align-items: center;
height: 200px;
width: 100vw;
background: var(--color-g-1);
color: var(--color-2-1);
font-size: var(--size-5);
}