baseddata.io/static/css/articles.css

259 lines
4.2 KiB
CSS

.page-container {
width: 100%;
display: flex;
flex-direction: column;
}
.main-content {
flex: 1;
display: flex;
justify-content: center;
}
.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;
}
.article-container {
width: 100%;
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;
}
.home-page-content h2 {
font-weight: normal;
font-size: 28px;
text-align: center;
margin-bottom: 60px !important;
}
.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;
padding-bottom: var(--element-padding);
}
.main-article {
width: 70%;
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);
}
.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%;
}
/* article cards */
.list-content-container {
display: flex;
flex-direction: column;
min-width: 100%;
justify-content: center;
padding: var(--content-padding);
}
.article-card-summary p {
color: var(--text-color);
text-align: left;
margin: 0px;
border: none;
}
.article-card-container a:hover {
text-decoration: underline;
color: var(--text-color) !important;
}
.article-card-info {
display: flex;
border-top: var(--border-width) var(--border-style) var(--border-color);
}
.article-card-info img {
width: 300px;
height: auto;
padding: 30px;
}
@media (max-width: 600px) {
.article-card {
display: flex;
justify-content: center;
}
.article-card-info {
display: flex;
justify-content: center;
flex-direction: column;
border-bottom: var(--border-width) var(--border-style) var(--border-color);
}
.article-card-info img {
width: 80vw;
padding: 10px;
}
.article-card-summary {
margin-bottom: 30px;
padding: 10px;
}
.article-card-summary h3 {
margin-top: 0px;
}
}
/* horizontal list*/
.content-list-container {
display: flex;
flex-direction: column;
min-width: 100%;
justify-content: left;
}
.content-list-item {
width: 100%;
}
.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;
border-bottom: var(--border-width) var(--border-style) var(--border-color);
}
.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;
width: 100%;
}
.content-list-title p {
margin-bottom: 1rem;
font-size: 22px;
}