Website/css/src/style.scss

690 lines
11 KiB
SCSS
Raw Normal View History

2024-06-09 13:47:59 +00:00
@import 'fonts';
@import 'colors';
* {
2024-06-09 13:47:59 +00:00
padding: 0;
margin: 0;
2024-06-09 13:47:59 +00:00
box-sizing: border-box;
scrollbar-color: $colorPrimary $colorSurfaceLight1;
@media (prefers-color-scheme: dark) {
scrollbar-color: $colorPrimary $colorSurfaceDark1;
}
2024-01-13 23:58:35 +00:00
}
2023-09-14 19:47:02 +00:00
2024-06-17 11:29:21 +00:00
*::selection {
background: rgba($colorPrimary, 0.75);
@media (prefers-color-scheme: dark) {
background: rgba($colorPrimary, 0.65);
}
}
2023-09-14 19:47:02 +00:00
body {
2024-06-10 19:38:49 +00:00
display: flex;
flex-direction: column;
min-height: 100svh;
2024-06-09 13:47:59 +00:00
background: $colorSurfaceLight1;
color: $colorTextLight1;
2023-11-26 21:40:10 +00:00
@media (prefers-color-scheme: dark) {
2024-06-09 13:47:59 +00:00
background: $colorSurfaceDark1;
color: $colorTextDark1;
2023-11-26 21:40:10 +00:00
}
2023-09-14 19:47:02 +00:00
}
2024-01-11 19:38:35 +00:00
main {
2024-06-09 13:47:59 +00:00
padding: 1.5rem 0;
2024-06-10 19:38:49 +00:00
flex: 1 1;
2024-01-11 19:38:35 +00:00
}
2024-06-09 13:47:59 +00:00
a {
color: $colorPrimary;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
text-decoration: none;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
&:hover {
text-decoration: underline;
}
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
button {
cursor: pointer;
2023-09-14 19:47:02 +00:00
}
2024-06-09 13:47:59 +00:00
ol, ul {
2023-09-14 19:47:02 +00:00
list-style-position: inside;
2024-06-09 13:47:59 +00:00
margin-left: 1rem;
2023-11-26 21:40:10 +00:00
}
2024-06-17 11:29:21 +00:00
pre {
overflow-x: scroll;
max-width: 100%;
display: block;
padding: 1rem;
background: $colorSurfaceLight2;
border: 1px solid $colorBorderLight1;
border-radius: .5rem;
@media (prefers-color-scheme: dark) {
background: $colorSurfaceDark2;
border-color: $colorBorderDark1;
}
}
2024-06-09 13:47:59 +00:00
.container {
max-width: 1100px;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
margin: 0 auto;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 1100px) {
margin: 0 1rem;
2024-01-13 23:58:35 +00:00
}
}
2024-06-09 13:47:59 +00:00
.pageHero {
height: 220px;
2024-06-09 13:47:59 +00:00
background-image: url("https://crss.fra1.cdn.digitaloceanspaces.com/img/2024-06-08_14.19.52.png");
2024-06-09 13:47:59 +00:00
background-size: cover;
background-repeat: no-repeat;
background-position: center;
2024-06-09 13:47:59 +00:00
font-family: 'Comic Neue', 'Comic Sans MS', 'Noto Color Emoji', 'Noto Emoji', sans-serif;
font-weight: 600;
2024-06-09 13:47:59 +00:00
> .heroOverlay {
background: rgba($colorSurfaceLight2, 0.9);
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
backdrop-filter: blur(8px);
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
height: 100%;
width: 100%;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
> .container {
height: 100%;
2024-06-09 13:47:59 +00:00
display: flex;
2024-06-09 13:47:59 +00:00
align-items: center;
justify-content: space-between;
2024-06-09 13:47:59 +00:00
> div:first-child {
display: flex;
2024-06-09 13:47:59 +00:00
flex-direction: column;
2024-06-09 13:47:59 +00:00
gap: 0.5rem;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
> h1 {
font-family: 'Comic Neue', 'Comic Sans MS', 'Noto Color Emoji', 'Noto Emoji', sans-serif;
font-weight: 600;
font-size: 1.5rem;
2024-06-03 01:56:27 +00:00
2024-06-09 13:47:59 +00:00
margin: 0;
}
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
align-items: center;
justify-content: center;
2024-06-09 13:47:59 +00:00
width: 100%;
height: 100%;
}
}
2024-06-09 13:47:59 +00:00
> div:last-child {
display: flex;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
flex-direction: column;
align-items: center;
gap: 0.5rem;
> input {
background: rgba(0,0,0,0);
width: fit-content;
padding: 4px 16px;
font-size: 1.5rem;
text-align: center;
color: inherit;
border: 1px solid rgba(0, 0, 0, 0);
border-radius: 1rem;
transition: 150ms;
&:focus, &:hover {
outline: none;
background: rgba($colorSurfaceLight4, .65);
border: 1px solid $colorBorderLight3;
}
@media (prefers-color-scheme: dark) {
color: inherit;
&:focus, &:hover {
background: rgba($colorSurfaceDark4, .65);
border: 1px solid $colorBorderDark3;
}
}
}
@media (max-width: 768px) {
display: none;
}
}
}
@media (prefers-color-scheme: dark) {
background: rgba($colorSurfaceDark2, 0.9);
}
2023-11-26 21:40:10 +00:00
}
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
border-bottom: 1px solid $colorBorderLight1;
@media (prefers-color-scheme: dark) {
border-color: $colorBorderDark1;
}
2023-11-26 21:40:10 +00:00
}
}
2024-06-09 13:47:59 +00:00
.navBar {
height: 64px;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
position: sticky;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
top: 0;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
left: 0;
right: 0;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
background: $colorSurfaceLight3;
border-bottom: 1px solid $colorBorderLight1;
2023-09-14 19:47:02 +00:00
2024-06-17 11:29:21 +00:00
z-index: 999999999;
2024-06-09 13:47:59 +00:00
> .container {
2023-11-26 21:40:10 +00:00
display: flex;
2023-09-14 19:47:02 +00:00
2023-11-26 21:40:10 +00:00
justify-content: space-between;
2024-06-09 13:47:59 +00:00
align-items: center;
height: 100%;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
justify-content: space-between;
2023-11-26 21:40:10 +00:00
}
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
> .navMobileContainer {
display: none;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
width: 100%;
height: 100%;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
justify-content: end;
align-items: center;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
z-index: 10000;
> .navToggle {
padding: 0.5rem;
background: none;
border: none;
border-radius: 50%;
display: flex;
color: $colorTextLight1;
transition: 150ms;
&:hover {
background: rgba($colorPrimary, 0.5);
2023-11-26 21:40:10 +00:00
}
@media (prefers-color-scheme: dark) {
2024-06-09 13:47:59 +00:00
color: $colorTextDark1;
2023-11-26 21:40:10 +00:00
}
2024-06-09 13:47:59 +00:00
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
display: flex;
2023-11-26 21:40:10 +00:00
}
2024-06-09 13:47:59 +00:00
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
> .navCollapse {
display: flex;
justify-content: space-between;
align-items: center;
height: 100%;
width: 100%;
z-index: 5000;
> ul {
list-style: none;
display: flex;
2023-11-26 21:40:10 +00:00
align-items: center;
2024-06-09 13:47:59 +00:00
gap: .5rem;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
margin: 0;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
> li {
> a, .dropDown > label {
padding: 8px 16px;
display: flex;
flex-direction: row;
align-items: center;
gap: 1rem;
text-decoration: none;
transition: 150ms;
border-radius: 2rem;
color: $colorTextLight2;
outline: 2px solid rgba(0, 0, 0, 0);
> .icon {
width: 20px;
height: 20px;
}
&:hover, &.active {
outline: 2px solid rgba($colorPrimary, 0.65);
color: $colorPrimary;
}
@media (prefers-color-scheme: dark) {
color: $colorTextDark2;
&:hover, &.active {
outline-color: rgba($colorPrimary, 0.65);
}
}
2023-11-26 21:40:10 +00:00
}
}
}
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
opacity: 1;
2024-06-03 01:56:27 +00:00
2024-06-09 13:47:59 +00:00
transition: 300ms;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
position: fixed;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
height: 100vh;
width: 100vw;
2024-06-09 13:47:59 +00:00
top: 0;
right: -110%;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
display: flex;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
flex: 1;
flex-direction: column;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
align-items: end;
justify-content: center;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
gap: 2rem;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
padding: 1rem;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
background: rgba($colorSurfaceLight3, 0.95);
backdrop-filter: blur(8px);
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
ul {
flex-direction: column;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
align-items: end;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
gap: 1rem;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
li {
a {
padding: 8px 24px;
}
}
}
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
@media (prefers-color-scheme: dark) {
background: rgba($colorSurfaceDark3, 0.95);
}
}
}
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
@media (prefers-color-scheme: dark) {
background: $colorSurfaceDark3;
2024-06-03 01:56:27 +00:00
2024-06-09 13:47:59 +00:00
border-color: $colorBorderDark1;
}
2024-06-09 13:47:59 +00:00
&.navOpen {
> .container {
flex-direction: column;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
> .navMobileContainer {
height: 64px;
2024-01-13 23:58:35 +00:00
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
> .navCollapse {
opacity: 1;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
right: 0;
2023-11-26 21:40:10 +00:00
}
}
2024-06-09 13:47:59 +00:00
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
@media (max-width: 768px) {
background: none;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
position: fixed;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
top: 0;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
border: none;
}
}
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
.dropDown {
position: relative;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
> label {
display: flex;
2024-06-03 01:56:27 +00:00
2024-06-09 13:47:59 +00:00
align-items: center;
gap: 8px;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
cursor: pointer;
2024-06-09 13:47:59 +00:00
padding: 8px 24px;
}
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
> .dropDownMenu {
position: absolute;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
top: calc(100% + 4px);
right: 0;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
background: $colorSurfaceLight4;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
border: 1px solid $colorBorderLight1;
border-radius: .5rem;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
overflow: hidden;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
display: none;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
min-width: max(100%, 200px);
2024-01-11 19:38:35 +00:00
2024-06-09 13:47:59 +00:00
> ul {
list-style: none;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
display: flex;
flex-direction: column;
margin: 0;
> li {
> a {
padding: 11px 24px;
display: flex;
flex-direction: row;
align-items: center;
gap: 24px;
text-decoration: none;
transition: 150ms;
> .icon {
width: 20px;
height: 20px;
2023-09-14 19:47:02 +00:00
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
&:hover {
background: rgba($colorPrimary, 0.65);
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
color: $colorSurfaceLight1;
}
2023-11-26 21:40:10 +00:00
}
2024-06-09 13:47:59 +00:00
> .divider {
border-bottom: 1px solid $colorBorderLight1;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
width: 100%;
2024-01-13 23:58:35 +00:00
2024-06-09 13:47:59 +00:00
@media (prefers-color-scheme: dark) {
border-color: $colorBorderDark1;
2024-01-13 23:58:35 +00:00
}
}
2023-09-14 19:47:02 +00:00
}
}
2024-06-09 13:47:59 +00:00
@media (prefers-color-scheme: dark) {
border-color: $colorBorderDark1;
background: $colorSurfaceDark4;
}
}
&.open {
> label {
outline: 2px solid rgba($colorPrimary, 0.65);
color: $colorPrimary;
}
> .dropDownMenu {
display: block;
}
2023-09-14 19:47:02 +00:00
}
}
.pageContent {
2024-06-09 13:47:59 +00:00
}
2024-06-03 01:54:49 +00:00
2023-09-14 19:47:02 +00:00
.pageFooter {
2024-06-09 13:47:59 +00:00
background: $colorSurfaceLight3;
2023-09-14 19:47:02 +00:00
2024-06-09 13:47:59 +00:00
border-top: 1px solid $colorBorderLight1;
> .container {
2023-09-14 19:47:02 +00:00
display: flex;
2023-09-15 21:04:00 +00:00
2024-06-09 13:47:59 +00:00
justify-content: space-between;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
align-items: start;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
padding: 1rem 0;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
p {
margin-bottom: .5rem;
}
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
div:first-child {
width: 420px;
}
div:last-child {
text-align: right;
> ul {
display: flex;
gap: 1rem;
list-style: none;
> li {
> a {
display: flex;
align-items: center;
justify-content: center;
2023-11-26 21:40:10 +00:00
2024-06-09 13:47:59 +00:00
width: 31px;
height: 31px;
border-radius: 50%;
padding: 4px;
transition: 150ms;
color: $colorTextLight1;
&:hover {
color: $colorTextLight2;
}
@media (prefers-color-scheme: dark) {
color: $colorTextDark1;
&:hover {
color: $colorTextDark2;
}
}
}
}
2023-11-26 21:40:10 +00:00
}
2023-09-15 21:04:00 +00:00
}
}
2024-06-09 13:47:59 +00:00
@media (prefers-color-scheme: dark) {
background: $colorSurfaceDark3;
border-color: $colorBorderDark1;
}
2024-06-17 11:29:21 +00:00
}
.teamList {
display: grid;
gap: 1rem;
grid-template-columns: repeat(3, minmax(200px, 1fr));
> .teamCard {
border: 1px solid $colorBorderLight1;
border-radius: 1rem;
background: $colorSurfaceLight2;
> .memberBanner {
height: 150px;
position: relative;
background: $colorPrimary;
border-top-left-radius: calc(1rem - 1px);
border-top-right-radius: calc(1rem - 1px);
> img {
position: absolute;
bottom: -52px;
left: 16px;
border-radius: 1rem;
border: 4px solid $colorSurfaceLight2;
@media (prefers-color-scheme: dark) {
border-color: $colorSurfaceDark2;
}
}
&[data-has-background] {
background: var(--background);
}
}
> .memberContent {
padding: 0 1rem 1rem;
> h3 {
margin: 0;
}
> .memberLinks {
display: flex;
justify-content: end;
align-items: end;
gap: .5rem;
list-style: none;
margin: 1rem 0 .5rem;
> li > a {
display: flex;
align-items: center;
padding: 4px;
color: $colorBorderLight3;
&:hover {
color: $colorPrimary;
}
@media (prefers-color-scheme: dark) {
color: $colorBorderDark3;
}
}
}
}
@media (prefers-color-scheme: dark) {
border-color: $colorBorderDark1;
background: $colorSurfaceDark2;
}
}
2024-06-03 01:56:27 +00:00
}