baseddata.io/static/css/articles.css

310 lines
5.1 KiB
CSS
Raw Normal View History

2024-08-07 15:32:21 +01:00
.page-container {
2024-08-08 11:13:50 +01:00
width: 100%;
2024-08-07 15:32:21 +01:00
display: flex;
flex-direction: column;
}
.main-content {
flex: 1;
2024-08-08 11:13:50 +01:00
display: flex;
justify-content: center;
2024-08-07 15:32:21 +01:00
}
2024-08-07 15:51:19 +01:00
.author-row {
display: flex;
justify-content: left;
align-items: center;
color: var(--subtext-color);
font-size: var(--author-row-font-size);
margin-bottom: 20px;
}
.author-name {
margin: 2px;
}
.author-row time {
margin: 2px;
}
2024-08-07 15:32:21 +01:00
.article-container {
2024-08-08 11:13:50 +01:00
width: 100%;
2024-08-07 15:32:21 +01:00
display: flex;
justify-content: center;
}
.page-content {
color: var(--text-color);
padding: var(--content-padding);
line-height: var(--line-height);
text-align: left;
}
.page-content h1 {
color: var(--heading1-color);
}
.home-page-content {
line-height: 2;
margin-bottom: 30px;
margin-top: 30px;
}
.home-page-content h1 {
text-align: center;
font-size: 32px !important;
margin-bottom: 120px;
}
2024-08-08 11:13:50 +01:00
.home-page-content h2 {
font-weight: normal;
font-size: 28px;
text-align: center;
margin-bottom: 60px !important;
}
2024-08-07 15:32:21 +01:00
.home-page-content h3 {
font-weight: normal;
font-size: 28px;
text-align: center;
}
.home-page-content h4 {
font-size: 18px;
text-align: center;
}
.home-page-content h5 {
font-weight: normal;
font-size: 16px;
text-align: center;
margin-bottom: 60px;
margin-top: 60px;
}
.home-page-content p {
font-weight: normal;
font-size: 16px;
text-align: center;
margin-bottom: 80px;
margin-left: 10vw;
margin-right: 10vw;
}
.profile-img {
margin-right: 20px;
margin-left: 20px;
}
.profile-img img {
width: 300px;
height: auto;
}
figcaption h4 {
font-size: 10px;
2024-08-08 23:19:11 +01:00
margin: 0px;
2024-08-07 15:32:21 +01:00
}
.main-article {
2024-08-08 11:13:50 +01:00
width: 70%;
2024-08-07 15:32:21 +01:00
padding: var(--content-padding);
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);
}
2024-08-08 14:26:55 +01:00
@media (max-width: 600px) {
.main-article {
width: 100%;
padding: var(--content-padding);
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);
}
}
2024-08-07 15:32:21 +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 {
max-width: 100%;
}
2024-08-08 11:13:50 +01:00
/* article cards */
.list-content-container {
2024-08-07 15:32:21 +01:00
display: flex;
2024-08-08 11:13:50 +01:00
flex-direction: column;
min-width: 100%;
justify-content: center;
padding: var(--content-padding);
}
2024-08-08 23:19:11 +01:00
.article-card {
display: inline-block;
border-top: var(--border-width) var(--border-style) var(--border-color);
width: 100%;
}
.article-card-summary h3 {
margin-top: 10px;
margin-bottom: 10px;
}
2024-08-08 11:13:50 +01:00
.article-card-summary p {
color: var(--text-color);
2024-08-07 15:32:21 +01:00
text-align: left;
2024-08-08 11:13:50 +01:00
margin: 0px;
border: none;
2024-08-07 15:32:21 +01:00
}
2024-08-08 11:13:50 +01:00
.article-card-container a:hover {
text-decoration: underline;
color: var(--text-color) !important;
2024-08-07 15:32:21 +01:00
}
2024-08-08 23:19:11 +01:00
.tags-container a {
border: var(--border-width) var(--border-style) var(--border-color);
color: var(--text-color);
border-radius: 20px;
padding-left: 5px;
padding-right: 5px;
}
.tags-container a:hover {
border: var(--border-width) var(--border-style) var(--border-color);
border-radius: 20px;
padding-left: 5px;
padding-right: 5px;
text-decoration: none;
background-color: var(--navbar-hover);
}
2024-08-08 11:13:50 +01:00
.article-card-info {
display: flex;
2024-08-08 23:19:11 +01:00
margin: 20px;
2024-08-07 15:32:21 +01:00
}
2024-08-08 11:13:50 +01:00
.article-card-info img {
width: 300px;
height: auto;
2024-08-08 23:19:11 +01:00
padding-right: 20px;
2024-08-07 15:32:21 +01:00
}
2024-08-08 23:19:11 +01:00
.reading-time {
font-weight: 200;
}
@media (max-width: 800px) {
2024-08-08 11:13:50 +01:00
.article-card {
display: flex;
justify-content: center;
}
.article-card-info {
display: flex;
flex-direction: column;
2024-08-08 23:19:11 +01:00
}
.article-card-thumb {
display: flex;
justify-content: center;
2024-08-08 11:13:50 +01:00
}
.article-card-info img {
2024-08-08 23:19:11 +01:00
width: 70vw;
2024-08-08 11:13:50 +01:00
padding: 10px;
}
.article-card-summary {
margin-bottom: 30px;
padding: 10px;
}
.article-card-summary h3 {
2024-08-08 23:19:11 +01:00
margin-top: 10px;
margin-bottom: 10px;
2024-08-08 11:13:50 +01:00
}
2024-08-07 15:32:21 +01:00
}
2024-08-08 23:19:11 +01:00
/* content list*/
2024-08-08 11:13:50 +01:00
.content-list-container {
2024-08-07 15:32:21 +01:00
display: flex;
flex-direction: column;
2024-08-08 11:13:50 +01:00
min-width: 100%;
justify-content: left;
2024-08-07 15:32:21 +01:00
}
2024-08-08 11:13:50 +01:00
.content-list-item {
width: 100%;
2024-08-08 23:19:11 +01:00
border-bottom: var(--border-width) var(--border-style) var(--border-color);
2024-08-07 15:32:21 +01:00
}
2024-08-08 11:13:50 +01:00
.content-list-container a:hover {
text-decoration: underline;
color: var(--text-color) !important;
}
.content-list-info {
display: flex;
flex-direction: row;
align-items: center;
justify-content: left;
2024-08-08 23:19:11 +01:00
margin: 20px 0px 20px 0px;
2024-08-08 11:13:50 +01:00
}
.content-list-info img {
padding: 10px;
height: 100%;
width: 200px;
}
.content-list-summary {
display: flex;
flex-direction: column;
justify-content: left;
}
.content-list-summary p {
color: var(--text-color);
text-align: left;
margin: 0px;
border: none;
}
.content-list-description p {
margin: 0px;
font-size: 16px;
line-height: 1.2;
2024-08-07 15:32:21 +01:00
width: 100%;
}
2024-08-08 11:13:50 +01:00
.content-list-title p {
margin-bottom: 1rem;
font-size: 22px;
2024-08-07 15:32:21 +01:00
}
2024-08-13 18:57:16 +01:00
.download-button {
padding: 10px;
}