baseddata.io/static/css/style.css

126 lines
2.5 KiB
CSS
Raw Normal View History

2024-08-01 14:06:16 +01:00
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
2024-08-07 15:51:19 +01:00
/* root */
--font-family: "Montserrat", sans-serif;
--code-font-family: "IBM Plex Mono", monospace;
2024-08-01 14:06:16 +01:00
--font-size: 10;
2024-08-07 15:51:19 +01:00
--background-color: #181a1b;
--text-color: #e0ddd9;
--subtext-color: #6c757d;
--link-color: #60b2f1;
--hover-color: #0056b3;
--border-color: #363a3d;
--border-width: 2px;
--border-style: solid;
/* headings */
--heading1-color: #fc8452;
--heading2-color: #e0ddd9;
--heading3-color: #e0ddd9;
2024-08-01 14:06:16 +01:00
--heading1-font-size: 25px;
2024-08-07 15:51:19 +01:00
/* content */
--author-row-font-size: 12px;
2024-08-07 00:39:56 +01:00
--article-max-width: 70%;
2024-08-01 14:06:16 +01:00
--content-padding: 40px;
--content-margin: 40px;
--element-padding: 20px;
2024-08-07 00:39:56 +01:00
--element-margin: 20px;
2024-08-01 14:06:16 +01:00
--article-margin: 10px;
--heading-margin: 30px;
--radius: 5px;
--line-height: 1.5;
2024-08-07 15:51:19 +01:00
--summary-container-hover-bg: #343a40;
--article-card-bg-color: white;
/* code */
--code-block-font-size: 10px;
--inline-code-color: #aaa4a0;
--codeblock-bg-color: #1b1d1e;
--inline-code-bg-color: #353535;
/* navbar/footer */
2024-08-07 00:38:11 +01:00
--navbar-background-color: #181a1b;
2024-08-01 14:06:16 +01:00
--navbar-text-color: #e0ddd9;
2024-08-07 00:38:11 +01:00
--navbar-hover: #333;
2024-08-01 14:06:16 +01:00
--footer-background-color: #333;
2024-08-07 15:51:19 +01:00
/* table */
2024-08-01 14:06:16 +01:00
--table-even-row-bg-color: #343a40;
--table-odd-row-bg-color: #515c66;
--table-header-bg: #212529;
--table-font-color: #e0ddd9;
--table-header-font-size: 14px;
--table-row-font-size: 12px;
}
2024-08-07 00:39:56 +01:00
@media (max-width: 600px) {
2024-08-01 14:06:16 +01:00
:root {
--font-size: 10;
--author-row-font-size: 12px;
--heading1-font-size: 25px;
--code-block-font-size: 10px;
--avatar-width: 20px;
--article-max-width: 100%;
--table-header-font-size: 14px;
--table-row-font-size: 12px;
}
}
2024-08-07 15:32:21 +01:00
/* Style for WebKit browsers (Chrome, Safari, etc.) */
*::-webkit-scrollbar {
height: 5px;
border-radius: 6px;
background: #1f1f28;
2024-08-01 14:06:16 +01:00
}
2024-08-07 15:32:21 +01:00
*::-webkit-scrollbar-thumb {
border-radius: 6px;
background: #585653;
}
2024-08-07 15:32:21 +01:00
*::-webkit-scrollbar-thumb:hover {
background: #454445; /* Background color on hover */
2024-08-07 00:39:56 +01:00
}
2024-08-07 15:32:21 +01:00
body {
font-family: var(--font-family);
background-color: var(--background-color);
font-size: var(--font-size);
color: var(--text-color);
2024-08-01 14:06:16 +01:00
}
a {
text-decoration: none;
color: var(--link-color);
}
a:hover {
color: var(--hover-color);
2024-08-07 00:39:56 +01:00
text-decoration: underline;
2024-08-01 14:06:16 +01:00
}
time {
color: var(--subtext-color);
margin-bottom: var(--article-margin);
}
footer {
background-color: var(--footer-background-color);
color: var(--text-color);
padding: 20px;
height: 10vh;
2024-08-01 14:06:16 +01:00
display: flex;
justify-content: space-between;
}
footer a:hover {
background-color: #ddd;
color: black;
}