baseddata.io/static/css/style.css

493 lines
8.7 KiB
CSS

* {
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;
--article-max-width: 70%;
--content-padding: 40px;
--content-margin: 40px;
--element-padding: 20px;
--element-margin: 20px;
--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;
--link-color: #60b2f1;
--hover-color: #0056b3;
--heading1-color: #fc8452;
--heading2-color: #e0ddd9;
--heading3-color: #e0ddd9;
--navbar-background-color: #181a1b;
--navbar-text-color: #e0ddd9;
--navbar-hover: #333;
--footer-background-color: #333;
--summary-container-hover-bg: #343a40;
--codeblock-bg-color: #1b1d1e;
--inline-code-bg-color: #353535;
--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;
--border-color: #363a3d;
--border-width: 2px;
--border-style: solid;
}
@media (max-width: 600px) {
: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 {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.main-content {
flex: 1;
}
.article-container {
display: flex;
justify-content: center;
}
.page-container {
display: flex;
flex-direction: column;
min-height: 100vh;
}
a {
text-decoration: none;
color: var(--link-color);
}
a:hover {
color: var(--hover-color);
text-decoration: underline;
}
.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;
}
.profile-img {
margin-right: 20px;
margin-left: 20px;
}
.profile-img img {
width: 300px;
height: auto;
}
figcaption h4 {
font-size: 10px;
padding-bottom: var(--element-padding);
}
@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;
border-left: var(--border-width) var(--border-style) var(--border-color);
border-right: var(--border-width) var(--border-style) var(--border-color);
}
.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 {
max-width: 100%;
}
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;
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);
margin-bottom: 20px;
}
.avatar-container {
width: var(--avatar-width);
margin-right: var(--element-margin);
}
.avatar {
display: block;
width: 100%;
height: auto;
}
.author-name {
margin: 2px;
}
.author-row time {
margin: 2px;
}
article p {
margin-bottom: var(--article-margin);
}
article em,
article strong {
color: var(--heading-color);
}
/* table of contents */
#tocWrapper {
margin-bottom: 20px;
}
#TableOfContents li::marker {
content: none;
margin: 0px;
}
#TableOfContents li {
margin: 0px;
}
#TableOfContents a {
font-size: 14px;
}
#TableOfContents ul {
margin: 0px;
}
/* Code block */
pre {
overflow-x: auto;
}
.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 */
}
.codeblock {
position: relative;
background-color: var(--codeblock-bg-color);
width: 100%;
padding: var(--element-padding);
margin-top: 20px;
margin-bottom: 20px;
border-radius: var(--radius);
border: var(--border-width) var(--border-style) var(--border-color);
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 {
color: #aaa4a0;
background-color: var(--inline-code-bg-color);
padding: 5px;
border-radius: 2px;
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);
}