faultables.net/assets/css/style.css

370 lines
6.4 KiB
CSS
Raw Permalink Normal View History

2024-04-28 23:28:26 +07:00
@font-face {
font-display: swap;
font-family: 'Sedan';
font-style: normal;
font-weight: 400;
src: url('../fonts/sedan-v1-latin-regular.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Sedan';
font-style: italic;
font-weight: 400;
src: url('../fonts/sedan-v1-latin-italic.woff2') format('woff2');
}
@font-face {
font-display: swap;
font-family: 'Clash Display';
font-style: normal;
font-weight: 200 700;
src: url('../fonts/ClashDisplay-Variable.woff2') format('woff2');
}
:root {
--body-bg-color: #000;
--base-font-size: 18px;
--font-family-serif: "Sedan", serif;
--font-family-sans-serif: "Clash Display", sans-serif;
--font-heading: var(--font-family-sans-serif);
--font-body: var(--font-family-serif);
--primary-color: #FCB001;
--secondary-color: #5D21D0;
--text-color: #fff;
--anchor-color: inherit;
}
::selection {
background-color: #f8c8dc;
}
body {
background-color: var(--body-bg-color);
font-size: 16px;
font-family: var(--font-body);
text-rendering: optimizeLegibility;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-heading);
font-weight: 600;
}
a {
color: var(--anchor-color);
}
hr {
margin-top: 6.66rem;
margin-bottom: 16.666rem;
width: 30.666%;
border-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 15" width="12" height="15"><path fill="none" stroke="orange" stroke-width="3" d="M0,13.5c3,0,3-12,6-12s3,12,6,12"/></svg>') 0 0 100% repeat;
border-width: 0 0 15px;
border-style: solid;
position: relative;
}
p {
line-height: 1.8rem;
margin-bottom: 0.5rem;
}
p+p {
margin-top: 1.3rem;
}
strong {
font-weight: bold;
}
em {
font-style: italic;
}
footer {
color: var(--text-color);
font-family: var(--font-family-serif);
text-align: center;
margin-bottom: 5rem;
padding: 0 1rem;
}
footer a {
color: var(--primary-color);
}
.l-container {
max-width: 1024px;
margin: 0;
padding-top: 0.8rem;
padding-bottom: 0.8rem;
}
.l-container h2 {
text-align: center;
font-size: 2.3rem;
font-weight: 400;
color: var(--primary-color);
font-family: var(--font-family-serif);
font-style: italic;
line-height: 3.5rem;
padding: 0 2rem;
}
.l-home,
.l-socials {
padding-top: 10rem;
margin-bottom: 8rem;
}
.l-socials h2 {
font-family: var(--font-family-sans-serif);
font-weight: 600;
font-style: normal;
}
.l-socials em {
font-family: var(--font-family-serif);
}
.l-socials span {
display: inline-block;
font-family: inherit;
font-size: inherit;
font-style: normal;
}
.l-socials a {
text-decoration: none;
}
.l-socials a:hover {
text-decoration: underline;
}
.l-home p,
.l-socials p {
text-align: center;
font-size: 2rem;
word-break: break-word;
color: var(--text-color);
font-family: var(--font-family-sans-serif);
font-weight: 600;
font-style: normal;
margin-top: 8rem;
line-height: 3rem;
}
.c-hero {
min-height: 100vh;
}
.c-hero a {
text-decoration: none;
transition: 0.3s all;
}
.c-hero a:hover {
color: var(--text-color);
}
.c-hero em {
font-family: var(--font-family-serif);
}
.c-hero span {
display: block;
margin-top: 2.8rem;
color: var(--text-color);
text-align: center;
font-size: 1.8rem;
font-family: var(--font-family-serif);
font-style: italic;
line-height: 2.3rem;
margin-bottom: 4rem;
}
.c-hero__title {
font-size: 3.8rem;
font-weight: 900;
color: var(--primary-color);
padding: 1.8rem;
}
.c-hero__bg {
position: absolute;
bottom: 160px;
right: 0;
z-index: -10;
text-align: right;
}
.c-hero__bg img {
max-width: 50%;
}
.c-showcase-section {
margin-bottom: 10rem;
}
.c-showcase {
display: grid;
grid-gap: 20px;
grid-template-columns: auto;
}
.c-showcase--single {
grid-template-columns: auto;
}
.c-showcase-title {
padding-top: 2rem !important;
}
.c-showcase__item {
text-align: center;
max-width: 300px;
margin: auto;
}
.c-showcase__item-image {
margin-top: 3rem;
max-width: 200px;
}
.c-showcase__item-title {
color: var(--text-color);
font-family: var(--font-family-sans-serif);
font-weight: 900;
font-size: 2rem;
}
.c-showcase__item-description {
color: var(--text-color);
}
.c-showcase__item-info {
margin-top: 15px;
height: 140px;
}
.c-showcase__item-cta {
margin-top: 10px;
margin-bottom: 10px;
display: block;
padding: 10px 10px;
background-color: var(--secondary-color);
border: 2px solid var(--text-color);
box-shadow: 4px 4px var(--text-color);
color: var(--text-color);
font-family: var(--font-family-sans-serif);
font-weight: bold;
font-size: 1.5rem;
text-decoration: none;
transition: 0.3s box-shadow;
}
.c-showcase__item-cta:hover {
border: 2px solid var(--secondary-color);
color: var(--secondary-color);
border: 2px solid var(--text-color);
box-shadow: none;
background-color: var(--text-color);
}
._mastodon {
color: #6364ff;
}
._bluesky {
color: #0886fe;
}
._peertube {
color: #F2690D;
}
2024-05-27 20:57:31 +07:00
._listenbrainz {
2024-09-22 17:54:10 +07:00
color: #b90000;
2024-05-27 20:57:31 +07:00
}
2024-04-28 23:28:26 +07:00
@media screen and (min-width: 30em) {
body {
text-align: justify;
font-size: var(--base-font-size);
}
.l-container {
margin: 8rem auto;
margin-bottom: 0;
}
.c-showcase {
grid-template-columns: auto auto auto;
}
.c-showcase--single {
grid-template-columns: auto;
}
.c-hero__title {
padding: 0;
padding-top: 2rem;
font-size: 6.66rem;
}
.c-hero__bg {
position: absolute;
bottom: -130px;
right: 210px;
z-index: -10;
}
.c-hero__bg img {
max-width: 450px;
}
.l-container h2 {
font-size: 2.8rem;
}
.l-home p,
.l-socials p {
font-size: 3rem;
}
}
2024-09-22 17:54:10 +07:00
#status {
display: none;
box-sizing: border-box;
width: 100%;
position: fixed;
top: 0;
left: 0;
background-color: #cf7328;
overflow-x: auto;
text-align: center;
padding: 0 10px;
color: #fff;
font-weight: bold;
height: 30px;
white-space: nowrap;
}