mirror of
https://codeberg.org/vegvisir/website.git
synced 2025-09-14 00:43:42 +02:00
First (rushed 😦) release of the Vegvisir website. Reviewed-on: https://codeberg.org/vegvisir/website/pulls/1 Co-authored-by: vlw <victor@vlw.se> Co-committed-by: vlw <victor@vlw.se>
188 lines
No EOL
2.8 KiB
CSS
188 lines
No EOL
2.8 KiB
CSS
:root {
|
|
--wavelength: 20vw;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--color-deep);
|
|
}
|
|
|
|
section h2 {
|
|
color: white;
|
|
background-color: black;
|
|
}
|
|
|
|
header.transparent {
|
|
color: white;
|
|
background-color: transparent;
|
|
border-color: rgba(255, 255, 255, .1);
|
|
}
|
|
|
|
header.transparent .logo {
|
|
fill: var(--color-deep);
|
|
}
|
|
|
|
header.transparent button {
|
|
fill: white;
|
|
}
|
|
|
|
header.transparent button.solid {
|
|
fill: var(--color-deep);
|
|
color: var(--color-deep);
|
|
background-color: white;
|
|
}
|
|
|
|
/* # Sections */
|
|
|
|
/* ## Divider */
|
|
|
|
section.divider {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
line-height: 0;
|
|
background-color: white;
|
|
}
|
|
|
|
section.divider svg {
|
|
position: relative;
|
|
display: block;
|
|
width: calc(148% + 1.3px);
|
|
height: 79px;
|
|
}
|
|
|
|
section.divider .shape-fill {
|
|
fill: var(--color-deep);
|
|
}
|
|
|
|
/* ## Intro */
|
|
|
|
section#intro {
|
|
display: grid;
|
|
color: white;
|
|
min-height: 300px;
|
|
}
|
|
|
|
section#intro h1 {
|
|
font-size: 50px;
|
|
}
|
|
|
|
section#intro div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: baseline;
|
|
}
|
|
|
|
/* ### Waves */
|
|
|
|
section.waves {
|
|
--easing: .2;
|
|
|
|
position: relative;
|
|
height: 300px;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
z-index: -1;
|
|
}
|
|
|
|
section.waves img {
|
|
margin: auto;
|
|
margin-top: -14%;
|
|
width: 50%;
|
|
transform-origin: 50% 100%;
|
|
animation: ship 6s alternate infinite ease;
|
|
}
|
|
|
|
@keyframes ship {
|
|
0% {
|
|
transform: translate(0, -7px) rotate(-7deg);
|
|
}
|
|
|
|
100% {
|
|
transform: translate(5px, 10px) rotate(4deg);
|
|
}
|
|
}
|
|
|
|
section.waves .wave {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
transform: scale(1.5);
|
|
bottom: 70px;
|
|
animation: wave 7s alternate infinite cubic-bezier(var(--easing), 0, calc(1 - var(--easing)), 1);
|
|
}
|
|
|
|
@keyframes wave {
|
|
to { transform: scale(1.5) translateX(100px); }
|
|
}
|
|
|
|
section.waves + section {
|
|
background-color: #4ca6ff;
|
|
}
|
|
|
|
section.waves .wave:first-child {
|
|
background-image: url("/assets/media/waves/0.svg");
|
|
}
|
|
|
|
section.waves .wave:last-child {
|
|
animation-duration: 5s;
|
|
background-image: url("/assets/media/waves/1.svg");
|
|
}
|
|
|
|
/* ## Softnav */
|
|
|
|
section#softnav {
|
|
color: white;
|
|
background: linear-gradient(0deg, rgba(0,128,255,1) 0%, rgba(76,166,255,1) 100%);
|
|
}
|
|
|
|
/* ## BYOE */
|
|
|
|
section.info {
|
|
background-color: white;
|
|
}
|
|
|
|
section.info container {
|
|
min-height: 400px;
|
|
}
|
|
|
|
section.info svg {
|
|
justify-self: center;
|
|
width: 400px;
|
|
}
|
|
|
|
/* ## Lead */
|
|
|
|
section#lead h1 {
|
|
color: white;
|
|
text-align: center;
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* ## Free */
|
|
|
|
section#free {
|
|
box-shadow: inset 0 0 20px 20px white, inset 0 0 140px 20px white;
|
|
background-color: rgba(255, 255, 255, .9);
|
|
background-blend-mode: screen;
|
|
background-image: url("/assets/media/gnu.png");
|
|
}
|
|
|
|
/* # Size queries */
|
|
|
|
@media (max-width: 950px) {
|
|
section.waves {
|
|
display: none;
|
|
}
|
|
|
|
section.info container {
|
|
min-height: unset;
|
|
}
|
|
|
|
section.info svg {
|
|
width: 300px;
|
|
}
|
|
|
|
section#lead h1 {
|
|
font-size: 20px;
|
|
}
|
|
} |