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;
2024-08-01 14:06:16 +01:00
--font-size: 10;
2024-08-08 11:13:50 +01:00
--background-color: #f9f9f9;
--text-color: #373841;
2024-08-07 15:51:19 +01:00
--subtext-color: #6c757d;
2024-08-08 11:13:50 +01:00
--link-color: #438bb1;
--hover-color: #fc8452;
--border-color: #c4c9d9;
--border-width: 1px;
2024-08-07 15:51:19 +01:00
--border-style: solid;
2024-08-08 11:13:50 +01:00
/* navbar/footer */
--navbar-background-color: #f9f9f9;
--navbar-text-color: #373841;
--navbar-hover: #e7e7f5;
--footer-background-color: #f9f9f9;
2024-08-07 15:51:19 +01:00
/* headings */
--heading1-color: #fc8452;
2024-08-08 11:13:50 +01:00
--heading2-color: #373841;
--heading3-color: #373841;
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-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
/* code */
--code-block-font-size: 10px;
2024-08-08 11:13:50 +01:00
--codeblock-bg-color: #edeeee;
--inline-code-color: #373841;
--inline-code-bg-color: #edeeee;
--code-font-family: "Fira Mono", monospace;
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-08 11:13:50 +01:00
html {
height: 100%;
display: flex;
}
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-08 11:13:50 +01:00
display: flex;
width: 100%;
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;
2024-08-08 11:13:50 +01:00
border-top: var(--border-width) var(--border-style) var(--border-color);
2024-08-01 14:06:16 +01:00
}