baseddata.io/static/css/style.css

493 lines
8.7 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: sans-serif;
--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;
}
}
body {
font-family: var(--font-family);
background-color: var(--background-color);
font-size: var(--font-size);
color: var(--text-color);
}
.page-container {
2024-08-01 14:06:16 +01:00
display: flex;
flex-direction: column;
min-height: 100vh;
}
.main-content {
flex: 1;
}
2024-08-07 00:39:56 +01:00
.article-container {
display: flex;
justify-content: center;
}
.page-container {
display: flex;
flex-direction: column;
min-height: 100vh;
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
}
.page-content {
color: var(--text-color);
padding-top: var(--content-padding);
padding: var(--content-padding);
padding-left: var(--content-padding);
padding-right: var(--content-padding);
max-width: 1000px;
line-height: var(--line-height);
text-align: left;
}
.page-content h1 {
color: var(--heading1-color);
}
.home-page {
display: flex;
align-items: flex-start;
}
.home-page li {
left: 25px;
position: relative;
}
2024-08-01 14:06:16 +01:00
.profile-img {
margin-right: 20px;
margin-left: 20px;
2024-08-01 14:06:16 +01:00
}
.profile-img img {
width: 300px;
height: auto;
}
2024-08-07 00:39:56 +01:00
figcaption h4 {
font-size: 10px;
padding-bottom: var(--element-padding);
}
2024-08-01 14:06:16 +01:00
@media (max-width: 800px) {
.home-page {
flex-direction: column;
align-items: center;
}
.profile-img {
margin-right: 0px;
order: 1;
height: auto;
}
.profile-img img {
width: 200px;
height: auto;
}
.home-page-content {
order: 2;
}
}
.main-article {
padding: var(--content-padding);
width: var(--article-max-width);
line-height: 1.5;
text-align: left;
2024-08-07 00:39:56 +01:00
border-left: var(--border-width) var(--border-style) var(--border-color);
border-right: var(--border-width) var(--border-style) var(--border-color);
2024-08-01 14:06:16 +01:00
}
.main-article h1 {
color: var(--heading1-color);
font-size: var(--heading1-font-size);
}
.main-article h2,
h3 {
margin-bottom: var(--article-margin);
margin-top: var(--heading-margin);
color: var(--heading2-color);
}
.main-article ul,
ol {
margin-bottom: var(--article-margin);
margin-left: var(--article-margin);
}
.main-article li {
margin: 5px;
}
.main-article img {
2024-08-07 00:39:56 +01:00
max-width: 100%;
2024-08-01 14:06:16 +01:00
}
time {
color: var(--subtext-color);
margin-bottom: var(--article-margin);
}
.article-card-flex-container {
margin-left: var(--content-margin);
margin-right: var(--content-margin);
margin-bottom: var(--content-margin);
display: flex;
flex-wrap: wrap;
justify-content: left;
line-height: var(--line-height);
text-align: left;
}
.article-card {
margin: var(--element-margin);
background-color: black;
width: 200px;
min-height: 100%;
border-radius: var(--radius);
transition: background-color 0.3s ease;
text-decoration: none; /* Remove underline */
position: relative;
}
.article-card-text p,
.article-text a {
color: var(--subtext-color);
margin-bottom: var(--element-margin);
}
.article-card-summary h3 {
color: var(--heading3-color);
margin: var(--article-margin);
font-size: 16px;
font-family: Arial, Helvetica, sans-serif;
}
.article-card-summary p {
color: var(--subtext-color);
margin: var(--article-margin);
}
.article-card-info {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.article-card-thumbnail {
max-width: 100%;
border-top-left-radius: var(--radius);
border-top-right-radius: var(--radius);
}
.article-card-author-row {
font-size: 10px;
position: absolute;
bottom: 0;
width: 100%;
margin: var(--element-margin);
}
.article-card:hover {
background-color: var(--summary-container-hover-bg);
}
/* 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;
}
/* Chart modifiers */
.chart-modifiers {
height: var(--chart-modifier-height);
}
.ck-button {
width: var(--checkbox-width);
color: white;
font-size: var(--checkbox-font-size);
cursor: pointer;
overflow: auto;
display: flex;
margin-left: 50px;
padding-top: 10px;
}
.ck-button label span {
border-radius: 4px;
text-align: center;
align-items: center;
justify-content: center;
background-color: #a19fbc;
margin: 5px;
display: flex;
width: 100px;
height: 30px;
}
.ck-button input:checked + span {
background-color: #666fbc;
}
.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
}
article p {
margin-bottom: var(--article-margin);
}
article em,
article strong {
color: var(--heading-color);
}
2024-08-07 00:39:56 +01:00
/* table of contents */
#tocWrapper {
margin-bottom: 20px;
}
#TableOfContents li::marker {
content: none;
margin: 0px;
}
2024-08-07 11:01:34 +01:00
#TableOfContents li {
2024-08-07 00:39:56 +01:00
margin: 0px;
2024-08-07 11:01:34 +01:00
}
#TableOfContents a {
2024-08-07 00:39:56 +01:00
font-size: 14px;
}
#TableOfContents ul {
margin: 0px;
}
2024-08-01 14:06:16 +01:00
/* Code block */
pre {
overflow-x: auto;
}
2024-08-07 01:18:49 +01:00
.highlight pre {
background: none !important;
}
/* Style for WebKit browsers (Chrome, Safari, etc.) */
*::-webkit-scrollbar {
height: 5px;
border-radius: 6px;
background: #1f1f28;
}
*::-webkit-scrollbar-thumb {
border-radius: 6px;
background: #585653;
}
*::-webkit-scrollbar-thumb:hover {
background: #454445; /* Background color on hover */
}
2024-08-01 14:06:16 +01:00
.codeblock {
position: relative;
background-color: var(--codeblock-bg-color);
2024-08-07 00:39:56 +01:00
width: 100%;
2024-08-01 14:06:16 +01:00
padding: var(--element-padding);
2024-08-07 00:39:56 +01:00
margin-top: 20px;
margin-bottom: 20px;
2024-08-01 14:06:16 +01:00
border-radius: var(--radius);
2024-08-07 00:39:56 +01:00
border: var(--border-width) var(--border-style) var(--border-color);
2024-08-01 14:06:16 +01:00
font-size: var(--code-block-font-size);
}
/* Code block language label */
.codeblock::before {
content: attr(data-lang);
position: absolute;
color: var(--heading1-color);
right: 5px;
top: 0px;
font-size: var(--code-block-font-size);
}
/* Styles for inline <code> */
:not(pre) > code {
2024-08-07 00:39:56 +01:00
color: #aaa4a0;
2024-08-01 14:06:16 +01:00
background-color: var(--inline-code-bg-color);
2024-08-07 00:39:56 +01:00
padding: 5px;
border-radius: 2px;
2024-08-01 14:06:16 +01:00
font-size: var(--code-block-font-size);
}
#jsonTableContainer {
max-width: 150%;
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
color: var(--table-font-color);
margin-bottom: var(--article-margin);
}
th {
background-color: var(--table-header-bg);
padding: 5px;
text-align: left;
font-size: var(--table-header-font-size);
}
td {
padding: 5px;
text-align: left;
max-width: 90px;
}
@media only screen and (max-width: 800px) {
#scrollable {
max-width: 90px;
max-height: 100%;
margin: 0;
padding: 0;
overflow: auto;
white-space: nowrap;
}
}
tr:nth-child(even) {
background-color: var(--table-even-row-bg-color);
font-size: var(--table-row-font-size);
}
tr:nth-child(odd) {
background-color: var(--table-odd-row-bg-color);
font-size: var(--table-row-font-size);
}