200 lines
3.5 KiB
CSS
200 lines
3.5 KiB
CSS
@font-face {
|
|
font-family: "Plus Jakarta Sans";
|
|
src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
|
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Plus Jakarta Sans";
|
|
src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
|
|
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
}
|
|
|
|
:root {
|
|
--surface-container-low: #faf3e7;
|
|
--surface-container-highest: #eae2d2;
|
|
--surface: #fff8f0;
|
|
--backdrop-blur: 24px;
|
|
--primary: #753a3d;
|
|
--primary-container: #fcacaf;
|
|
--on-background: #363227;
|
|
--nav-height: 4rem;
|
|
--border-radius: 48px;
|
|
--small-radius: 24px;
|
|
--small-border-radius: 8px;
|
|
--max-content-width: 80rem;
|
|
--secondary-container: #e0f5cb;
|
|
--on-secondary-container: #4c5e3e;
|
|
--on-surface: #363227;
|
|
--outline-variant: #b9b1a3;
|
|
--on-surface-variant: #645f52;
|
|
--grid-cols: 3;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
:root {
|
|
--grid-cols: 2;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
:root {
|
|
--grid-cols: 1;
|
|
}
|
|
}
|
|
|
|
body {
|
|
background-color: var(--surface);
|
|
box-sizing: border-box;
|
|
line-height: 1.5;
|
|
font-family: "Plus Jakarta Sans", sans-serif;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4 {
|
|
margin: 0;
|
|
font-family: serif;
|
|
color: var(--on-background);
|
|
|
|
& > span {
|
|
font-style: italic;
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
|
|
h1 {
|
|
font-size: 4rem;
|
|
line-height: 3.5rem;
|
|
margin: 1.5rem 0;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 3.5rem;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
h1 {
|
|
font-size: 2.5rem;
|
|
line-height: 2.5rem;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 2rem;
|
|
line-height: 2rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.25rem;
|
|
}
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
h4 {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
h5 {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
p {
|
|
color: var(--on-background);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
body > nav,
|
|
body > footer,
|
|
body > main > * {
|
|
box-sizing: border-box;
|
|
padding: 8rem 2rem;
|
|
|
|
& > div:only-child,
|
|
&:not(:has(> div:only-child)) {
|
|
max-width: var(--max-content-width);
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body > nav,
|
|
body > footer,
|
|
body > main > * {
|
|
padding: 4rem 1rem;
|
|
}
|
|
}
|
|
|
|
body > nav {
|
|
padding: 1rem;
|
|
}
|
|
|
|
svg {
|
|
height: 1em;
|
|
width: 1em;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
img {
|
|
color: transparent;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--on-background);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.sr-only:focus {
|
|
position: fixed;
|
|
top: 0.5rem;
|
|
left: 0.5rem;
|
|
width: auto;
|
|
height: auto;
|
|
padding: 0.5rem 1rem;
|
|
margin: 0;
|
|
overflow: visible;
|
|
clip: auto;
|
|
white-space: normal;
|
|
background: var(--surface);
|
|
color: var(--on-background);
|
|
z-index: 1000;
|
|
border-radius: var(--small-radius);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
main {
|
|
transition: opacity 0.15s ease;
|
|
}
|
|
|
|
#about-us,
|
|
#featured-delights,
|
|
#kawiarnia,
|
|
#kawiarnia-content,
|
|
#portfolio-grid,
|
|
#wyroby,
|
|
#slodkie_stoly,
|
|
#lody,
|
|
#wyroby-torty > section {
|
|
content-visibility: auto;
|
|
contain-intrinsic-size: 600px;
|
|
}
|