website/style.css

237 lines
3.5 KiB
CSS
Raw Normal View History

2025-02-05 16:38:42 +00:00
:root {
--bg-color: #262626;
--dark-color: #151517;
--fg-color: #ece5ea;
--confirm-color: #78b9c4;
--deny-color: #f06969;
2025-02-05 18:21:24 +00:00
--highlight-color: #a292e8;
2025-02-05 16:38:42 +00:00
}
html, body {
background-color: var(--dark-color);
color: var(--fg-color);
margin: 0;
2025-02-08 07:17:20 +00:00
padding: 0;
2025-02-05 16:38:42 +00:00
font-family: "Cantarell", serif;
font-weight: 400;
font-style: normal;
}
body {
max-width: 100vh;
overflow-x: hidden;
}
.split {
height: calc(100vh - 4rem);
position: fixed;
top: 0;
overflow-x: hidden;
2025-02-05 18:21:24 +00:00
padding-top: 60px;
2025-02-05 16:38:42 +00:00
}
.left {
left: 0;
2025-02-08 07:17:20 +00:00
width: 40%;
2025-02-05 16:38:42 +00:00
background-color: var(--bg-color);
}
.right {
right: 0;
width: 60%;
background-color: var(--dark-color);
overflow-y: auto;
}
2025-02-08 07:17:20 +00:00
/* lg */
@media (max-width: 700px) {
2025-02-05 16:38:42 +00:00
.split {
all: inherit;
}
.left {
all: inherit;
2025-02-08 07:17:20 +00:00
background-color: var(--bg-color);
width: 100%;
2025-02-05 16:38:42 +00:00
}
.right {
all: inherit;
padding-top: 15px;
padding-bottom: 4rem;
}
}
footer {
clear: both;
text-align: center;
2025-02-05 18:21:24 +00:00
color: var(--highlight-color);
2025-02-05 16:38:42 +00:00
width: 100%;
2025-02-05 18:21:24 +00:00
padding: 6px 0px 8px 0px;
background-color: var(--dark-color);
border-top: 2px solid var(--highlight-color);
2025-02-05 16:38:42 +00:00
position: fixed;
bottom: 0;
}
header {
text-align: center;
width: 60%;
margin-left: auto;
margin-right: auto;
}
a {
2025-02-05 18:21:24 +00:00
color: var(--highlight-color);
2025-02-05 16:38:42 +00:00
text-decoration: underline;
}
a:hover {
color: var(--confirm-color);
}
h1 {
font-size: xx-large;
text-decoration-line: underline;
2025-02-05 18:21:24 +00:00
text-decoration-color: var(--highlight-color);
}
h2 {
font-size: x-large;
text-decoration-line: underline;
text-decoration-color: var(--highlight-color);
2025-02-05 16:38:42 +00:00
}
.hljs {
font-family: "Space Mono", serif;
font-weight: 700;
font-style: normal;
border-radius: 5px;
}
code {
background-color: var(--bg-color);
color: var(--fg-color);
padding-left: 10px;
padding-right: 10px;
font-family: "Space Mono", serif;
font-weight: 700;
font-style: normal;
border-radius: 5px;
}
2025-02-05 18:21:24 +00:00
article {
display: flex;
justify-content: enter;
align-items: center;
2025-02-08 07:17:20 +00:00
}
.img-center {
display: block;
margin-left: auto;
margin-right: auto;
width: 70%;
}
article img {
margin-right: 30px;
}
/* lg */
@media (max-width: 1024px) {
article {
flex-direction: column;
}
2025-02-05 18:21:24 +00:00
2025-02-08 07:17:20 +00:00
article img {
margin: auto;
}
.container {
text-align: center;
}
2025-02-05 18:21:24 +00:00
}
2025-02-08 07:17:20 +00:00
2025-02-05 16:38:42 +00:00
.container {
max-width: 1536px;
margin-left: auto;
margin-right: auto;
padding-left: 0.5rem;
padding-right: 0.5rem;
padding-bottom: 2rem;
width: 70%;
}
/* 2xl */
@media (max-width: 1536px) {
.container {
max-width: 1280px;
}
}
/* xl */
@media (max-width: 1280px) {
.container {
max-width: 1024px;
}
}
/* lg */
@media (max-width: 1024px) {
.container {
2025-02-08 07:17:20 +00:00
width: 60%;
2025-02-05 16:38:42 +00:00
max-width: 768px;
}
}
/* md */
@media (max-width: 768px) {
.container {
max-width: 640px;
}
}
/* sm */
@media (max-width: 640px) {
.container {
max-width: 475px;
}
}
/* xs */
@media (max-width: 475px) {
.container {
2025-02-08 07:17:20 +00:00
width: 90%;
2025-02-05 16:38:42 +00:00
}
}
.btn {
2025-02-05 18:21:24 +00:00
font-family: monospace;
font-size: large;
2025-02-05 16:38:42 +00:00
cursor: pointer;
position: relative;
user-select: none;
2025-02-05 18:21:24 +00:00
font-weight: 700;
2025-02-05 16:38:42 +00:00
text-align: center;
display: inline-block;
text-decoration: none;
2025-02-05 18:21:24 +00:00
padding: 5px 10px 5px 10px;
margin: 2px;
2025-02-05 16:38:42 +00:00
color: var(--bg-color);
2025-02-05 18:21:24 +00:00
background-color: var(--highlight-color);
2025-02-05 16:38:42 +00:00
}
.btn:hover {
background: var(--confirm-color);
color: var(--bg-color);
}
.quote-link {
2025-02-05 18:21:24 +00:00
color: var(--highlight-color);
2025-02-05 16:38:42 +00:00
}
.quote-link:hover {
color: var(--confirm-color);
2025-02-05 18:21:24 +00:00
}