pixwhile/routes/css.cpp

44 lines
1001 B
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(
: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-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");
}