baseddata.io/static/css/style.css

165 lines
3.1 KiB
CSS
Raw Normal View History

2024-08-01 14:06:16 +01:00
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--font-family: "Montserrat", sans-serif;
--code-font-family: "IBM Plex Mono", monospace;
2024-08-01 14:06:16 +01:00
--font-size: 10;
--author-row-font-size: 12px;
--heading1-font-size: 25px;
--code-block-font-size: 10px;
--chart-modifier-height: 60px;
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;
--checkbox-width: max-content;
--checkbox-font-size: 16px;
--avatar-width: 20px;
--background-color: #181a1b;
--text-color: #e0ddd9;
--subtext-color: #6c757d;
2024-08-07 00:39:56 +01:00
--link-color: #60b2f1;
2024-08-01 14:06:16 +01:00
--hover-color: #0056b3;
--heading1-color: #fc8452;
--heading2-color: #e0ddd9;
--heading3-color: #e0ddd9;
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;
--summary-container-hover-bg: #343a40;
2024-08-07 00:39:56 +01:00
--codeblock-bg-color: #1b1d1e;
--inline-code-bg-color: #353535;
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
--border-color: #363a3d;
--border-width: 2px;
--border-style: solid;
2024-08-01 14:06:16 +01:00
}
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);
}
/* Charts */
.chart-flex-container {
display: flex;
}
.chart-flex-container article {
flex: 1;
}
#chart {
width: 100%;
height: 50vh;
}
.chart-area {
width: 60%;
margin: var(--article-margin);
}
/* Footer */
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;
}
.author-row {
display: flex;
justify-content: left;
align-items: center;
color: var(--subtext-color);
font-size: var(--author-row-font-size);
2024-08-07 00:39:56 +01:00
margin-bottom: 20px;
2024-08-01 14:06:16 +01:00
}
.avatar-container {
width: var(--avatar-width);
margin-right: var(--element-margin);
}
.avatar {
display: block;
width: 100%;
height: auto;
}
.author-name {
2024-08-07 00:39:56 +01:00
margin: 2px;
}
.author-row time {
margin: 2px;
2024-08-01 14:06:16 +01:00
}