224 lines
4.2 KiB
SCSS
224 lines
4.2 KiB
SCSS
@import "mixins.scss";
|
|
@import "vars.scss";
|
|
|
|
@import url("https://fonts.googleapis.com/css?family=Jaldi:400|JetBrains+Mono:400,700|IBM+Plex+Sans+Devanagari:400");
|
|
|
|
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
html {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 20rem;
|
|
min-height: 100%;
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: "JetBrains Mono", sans-serif;
|
|
background: $color-body-bg;
|
|
color: $color-white;
|
|
overflow-x: hidden;
|
|
overflow-y: scroll;
|
|
|
|
&.scroll-lock {
|
|
overflow-y: hidden;
|
|
}
|
|
}
|
|
|
|
main {
|
|
@include fluid-font-size(0.625rem);
|
|
flex-grow: 1;
|
|
}
|
|
|
|
a {
|
|
transition: color 250ms;
|
|
}
|
|
|
|
.btn-main {
|
|
display: inline-block;
|
|
color: $color-black;
|
|
background: $color-aquamarine;
|
|
border: 0.05em solid $color-aquamarine;
|
|
padding: 0.5em 0.8em;
|
|
border-radius: 0.25em;
|
|
transition: color 200ms, background 200ms;
|
|
|
|
&:hover {
|
|
color: $color-white;
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
main.vision {
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
width: max(min(103.1em, 100vw), 32em);
|
|
height: max(min(73.3em, 100vw), 40em);
|
|
top: 0;
|
|
left: 50%;
|
|
margin-left: max(-51.55em, -50vw);
|
|
z-index: -1;
|
|
background: url("../assets/vision-bg.png");
|
|
background-size: contain;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
}
|
|
|
|
main.what {
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
width: max(min(151.3em, 100vw), 32em);
|
|
height: max(min(122.4em, 100vw), 56em);
|
|
top: -2em;
|
|
left: 50%;
|
|
margin-left: max(-75.65em, -50vw);
|
|
z-index: -1;
|
|
background: url("../assets/what-bg.png");
|
|
background-size: contain;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
}
|
|
|
|
main.donate {
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
width: max(min(144em, 100vw), 32em);
|
|
height: max(min(93.3em, 100vw), 56em);
|
|
top: -3em;
|
|
left: 50%;
|
|
margin-left: max(-72em, -50vw);
|
|
z-index: -1;
|
|
background: url("../assets/donate-bg.png");
|
|
background-size: contain;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
}
|
|
|
|
.feature-group {
|
|
h2 {
|
|
margin-bottom: 1em;
|
|
@include fluid-font-size(1.5625rem);
|
|
line-height: 100%;
|
|
text-transform: uppercase;
|
|
color: $color-aquamarine;
|
|
}
|
|
|
|
h3 {
|
|
margin-bottom: 0.65em;
|
|
@include fluid-font-size(2.8125rem);
|
|
line-height: 109%;
|
|
}
|
|
|
|
h2, h3 {
|
|
font-weight: 700;
|
|
text-shadow: 0.017em 0.017em 0.034em rgba($color-blue-charcoal, 0.65);
|
|
}
|
|
|
|
p, li {
|
|
font-family: $font-family-jaldi;
|
|
line-height: 167%;
|
|
color: $color-cloud;
|
|
transition: background 200ms;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: disc;
|
|
margin-left: 1.5em;
|
|
margin-bottom: 0.78em;
|
|
}
|
|
|
|
.btn-main {
|
|
margin-top: 1.57em;
|
|
}
|
|
}
|
|
|
|
.feature-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(1, 1fr);
|
|
grid-auto-rows: 1fr;
|
|
gap: 0.9em;
|
|
@include fluid-padding-lr;
|
|
@include fluid-font-size(1.25rem);
|
|
|
|
@media screen and (min-width: 48rem) {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
@media screen and (min-width: 64rem) {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
padding: 2.95em 1.95em;
|
|
background: $color-blue-charcoal;
|
|
border: 0.05em solid transparent;
|
|
border-radius: 0.5em;
|
|
font-family: $font-family-jaldi;
|
|
transition: border-color 200ms;
|
|
|
|
&:hover {
|
|
border-color: $color-aquamarine;
|
|
}
|
|
}
|
|
|
|
h3 {
|
|
@include fluid-font-size(1.875rem);
|
|
line-height: 103.33%;
|
|
}
|
|
|
|
p {
|
|
@include fluid-font-size(1.3125rem);
|
|
margin-top: 0.67em;
|
|
line-height: 123.81%;
|
|
color: $color-cloud;
|
|
}
|
|
}
|
|
|
|
.tilted-bg {
|
|
position: relative;
|
|
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: -5%;
|
|
bottom: 0;
|
|
left: -5%;
|
|
margin: 2% 0;
|
|
background: $color-blue-charcoal;
|
|
transform: matrix(1, -0.04, 0.04, 1, 0, 0);
|
|
z-index: -1;
|
|
}
|
|
}
|
|
|
|
.tilted-bg-r {
|
|
position: relative;
|
|
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: -5%;
|
|
bottom: 0;
|
|
left: -5%;
|
|
margin: 2% 0;
|
|
background: $color-blue-charcoal;
|
|
transform: matrix(1, 0.04, -0.04, 1, 0, 0);
|
|
z-index: -1;
|
|
}
|
|
}
|