pixwhile/routes/css.cpp

107 lines
2.1 KiB
C++
Raw Normal View History

2023-04-03 15:10:08 +00:00
#include "routes.h"
void css_route(const httplib::Request& req, httplib::Response& res) {
res.set_content(R"EOF(
2023-04-09 13:31:50 +00:00
/* GENERAL */
2023-04-03 15:10:08 +00:00
:root {
--background-color: black;
--text-color: white;
2023-04-03 15:27:07 +00:00
--error-background-color: rgb(100, 0, 0);
--error-border-color: red;
--error-text-color: white;
2023-04-03 15:10:08 +00:00
--accent-color: #962AC3;
--dark-accent-color: #7D3F7D;
--bright-accent-color: #DE6DE6;
}
body {
background-color: var(--background-color);
color: var(--text-color);
2023-04-03 15:45:05 +00:00
font-family: sans-serif;
2023-04-03 15:10:08 +00:00
}
a {
color: var(--accent-color);
text-decoration: none;
}
a:hover {
color: var(--bright-accent-color);
text-decoration: underline;
}
2023-04-06 15:28:02 +00:00
img {
2023-04-05 16:36:20 +00:00
object-fit: cover;
2023-04-06 15:28:02 +00:00
}
2023-04-09 13:31:50 +00:00
/* USER PAGE (and a tiny bit for illustrations page) */
2023-04-06 15:28:02 +00:00
.cover {
2023-04-05 16:36:20 +00:00
width: 100%;
height: 50vh;
margin-bottom: 1em;
}
2023-04-09 13:31:50 +00:00
.profilepicture, .smallprofilepicture {
margin-right: .5em;
}
2023-04-05 16:36:20 +00:00
.profilepicture {
width: 5em;
height: 5em;
2023-04-09 13:31:50 +00:00
}
.smallprofilepicture {
width: 2.5em;
height: 2.5em;
2023-04-05 16:36:20 +00:00
}
.usermetadata {
display: flex;
align-items: center;
margin-left: .5em;
}
2023-04-09 13:50:44 +00:00
/* USER ILLUSTRATIONS PAGE (and illustrations page) */
2023-04-07 15:06:31 +00:00
.center {
text-align: center;
2023-04-09 14:10:51 +00:00
display: block;
2023-04-07 15:06:31 +00:00
}
2023-04-09 13:50:44 +00:00
.grid {
2023-04-09 05:55:26 +00:00
display: flex;
flex-wrap: wrap;
gap: 1em;
justify-content: center;
}
2023-04-09 13:50:44 +00:00
.grid img {
2023-04-09 05:55:26 +00:00
width: 15em;
height: 15em;
}
2023-04-09 13:50:44 +00:00
.grid p {
2023-04-09 05:55:26 +00:00
width: 15em;
}
2023-04-07 15:06:31 +00:00
2023-04-09 13:31:50 +00:00
/* ILLUSTRATIONS PAGE */
2023-04-09 14:30:07 +00:00
.illusttags {
2023-04-09 13:31:50 +00:00
display: flex;
flex-wrap: wrap;
gap: 0 1em;
2023-04-09 13:31:50 +00:00
}
.illust {
display: grid;
text-align: center;
}
.illust .landmark {
padding-top: 1em;
padding-bottom: 1em;
}
/* ERROR PAGE */
2023-04-03 15:27:07 +00:00
.error {
text-align: center;
background-color: var(--error-background-color);
color: var(--error-text-color);
border-style: solid;
border-color: var(--error-border-color);
}
2023-04-03 15:10:08 +00:00
)EOF", "text/css");
}