This repository has been archived on 2023-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
qwik-website/styles/main.css

334 lines
5.0 KiB
CSS

@import url(./colors.css);
@import url(./fonts.css);
@import url(./scaling.css);
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Manrope Regular';
font-size: .85rem;
font-weight: normal;
line-height: 1.5;
scroll-behavior: smooth;
}
body, html {
width: 100%;
color: var(--text);
background-color: var(--surface);
}
body {
background-color: var(--surface);
display: grid;
grid-template-columns: 1fr auto 1fr;
grid-template-areas: 'pad1 content pad2';
}
.grid-container {
width: min(95vw, 135ch);
grid-area: content;
display: flex;
flex-direction: column;
align-items: center;
}
nav {
display: flex;
justify-content: center;
flex-wrap: wrap;
padding: .5rem 3rem 1rem 3rem;
margin-top: 3rem;
}
nav > a {
color: var(--text);
border-bottom: .1rem solid var(--text);
padding: .3rem 2rem;
margin: 1rem 2rem;
font-size: 1.25rem;
text-decoration: none;
transition: color .3s, border-bottom .3s;
}
nav > a:hover {
color: var(--primary);
border-bottom: .1rem solid var(--primary);
}
.presentation {
display: grid;
grid-template-areas: 'logo name'
'logo desc';
grid-template-columns: auto auto;
grid-template-rows: auto auto;
place-items: center start;
padding: 2rem 3rem;
margin: 3rem 0;
max-width: 100%;
background-color: var(--grey3);
border-radius: 1rem;
box-shadow: 0 1rem 2rem var(--grey1);
}
@media screen and (max-width: 650px) {
.presentation {
display: flex;
flex-direction: column;
padding: 1rem 2rem;
}
.presentation > p {
width: auto;
}
}
img {
grid-area: logo;
width: min(20ch, 35vmin);
margin-right: 1rem;
}
header {
grid-area: name;
color: var(--primary);
font-size: 2rem;
margin-left: 2rem;
margin-bottom: 1rem;
}
.qwik-explained {
grid-area: desc;
width: min(40ch, 45vmin);
margin-left: 1rem;
text-align: left;
}
h1, h2 {
color: var(--primary);
font-size: 2.5rem;
width: min(27.200ch, 100%);
padding: 0 5%;
margin: 2rem 0 1rem 0;
}
h1.centered, h2 {
text-align: center;
}
h2 {
margin: 0;
color: var(--accent);
font-size: 1.5rem;
}
a {
color: var(--accent2);
}
b {
font-family: 'Manrope Bold';
}
p {
padding: 0 5%;
margin: 0 auto;
width: min(80ch, 100%);
text-align: justify;
}
ul {
padding: .5rem calc(5% + 2rem);
width: min(80ch, 100%);
}
.services-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.service {
width: min(35ch, 80%);
display: flex;
flex-direction: column;
align-items: center;
margin: 2rem;
padding: 1rem 1.5rem;
background-color: var(--grey3);
border-radius: 1rem;
box-shadow: 0 1rem 2rem var(--grey1);
}
.service > h2 {
text-align: center;
}
.service > p {
margin: 1rem auto;
text-align: left;
}
.buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-top: auto;
}
.buttons > a {
color: var(--primary);
background-color: transparent;
border: .1rem solid var(--primary);
border-radius: 999rem;
/* box-shadow: 0 -5rem 20rem transparent; */
margin: .5rem;
padding: .5rem 1.5rem;
display: block;
font-size: .85rem;
text-decoration: none transparent;
text-align: center;
transition: color .3s, background-color .3s, box-shadow .3s;
}
.buttons > a:hover, .buttons > a:focus {
color: var(--surface);
background-color: var(--primary);
/* box-shadow: 0 .25rem 2rem var(--primary); */
}
.buttons > a.onion {
color: var(--purple);
border-color: var(--purple);
}
.buttons > a.onion:hover, .buttons > a.onion:focus {
color: var(--text);
background-color: var(--purple);
}
.maintainer-list {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.maintainer {
display: flex;
flex-direction: column;
align-items: center;
padding: 1rem 2rem;
margin: 2rem 3rem;
background-color: var(--grey3);
border-radius: 1rem;
box-shadow: 0 1rem 2rem var(--grey1);
}
.maintainer > h2 {
margin-bottom: 1rem;
}
.contact-options {
display: grid;
grid-template-columns: auto auto;
}
.contact-type {
font-size: 1rem;
color: var(--accent);
margin-right: 1rem;
}
.contact-options > p {
padding: .5rem 0;
}
.contact-size {
font-size: 1rem;
}
.image {
width: min(55ch, 100%);
margin: 2rem 0;
border-radius: 1rem;
box-shadow: 0 1rem 2rem var(--grey1);
}
footer {
display: flex;
flex-direction: column;
align-items: center;
margin: 15vh 0;
padding: 1rem 5rem;
width: max-content;
border-top: .1rem solid var(--accent);
}
footer > p, footer > p > a {
font-size: .65rem;
width: max-content;
}
.love {
font-size: .85rem;
}
.heart {
color: var(--accent2);
font-size: 1.15rem;
}