oldrabbittown/sass/style.scss

129 lines
No EOL
2.6 KiB
SCSS

/* latin-ext */
@font-face {
font-family: 'Annie Use Your Telescope';
font-style: normal;
font-weight: 400;
src: url("fonts/AnnieUseYourTelescope-Regular.ttf");
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;
}
/* latin */
@font-face {
font-family: 'Annie Use Your Telescope';
font-style: normal;
font-weight: 400;
src: url("fonts/AnnieUseYourTelescope-Regular.ttf");
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;
}
h1,
h2,
h3,
h4,
h5 {
font-family: 'Annie Use Your Telescope';
font-weight: 900;
}
@media screen and (min-width: 920px) {
html {
font-size: 300%;
}
}
/* 16px */
:root {
--carousel-width: -2990px;
}
body {
font-family: 'Annie Use Your Telescope';
font-weight: 600;
width: 80%;
align-self: center;
text-align: center;
margin: auto;
}
.header {
display: flex;
position: sticky;
justify-content: center;
}
.header-element {
// align-items: center;
// justify-content: center;
align-content: center;
margin-left: 1em;
margin-right: 1em;
}
.header-element>img {
height: 10ex;
}
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
transform: translateX(var(--carousel-width));
}
}
// @media screen and (min-width: 920px) {
.carousel::before,
.carousel::after {
background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
content: "";
height: 100%;
position: absolute;
width: 5%;
z-index: 2;
}
// }
.carousel::after {
right: 0;
top: 0;
transform: rotateZ(180deg);
}
.carousel::before {
left: 0;
top: 0;
}
.carousel {
position: relative;
display: flex;
flex-direction: row;
overflow: hidden;
}
// .carousel>.overlay {
// position: absolute;
// top: 0;
// left: 0;
// height: 100%;
// width: 100%;
// background: rgba(255, 0, 0, 0);
// background: radial-gradient(ellipse farthest-corner at center center, rgba(255, 0, 0, 0) 0%, #fff 80%);
// }
.carousel-element {
animation: scroll 70s linear infinite;
background: #ffffff;
background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 1) 100%);
}
.carousel-element>img {
height: 50vh;
}