mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 19:37:05 +00:00
51 lines
1.1 KiB
CSS
51 lines
1.1 KiB
CSS
/* adjust header styling */
|
|
.article-section-header h1, .year-header h1 {
|
|
margin-block-start: 0;
|
|
margin-block-end: 0;
|
|
margin: 6px;
|
|
display: inline;
|
|
}
|
|
|
|
.article-section-header, .year-header {
|
|
background-color: rgba(24,26,27,0.5);
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
|
|
/* make cards display next to each other with correct dimensions and adjust styling */
|
|
.main-content .mdc-card {
|
|
display: inline-flex;
|
|
width: calc((100% / 3) - 18px);
|
|
box-shadow: none;
|
|
margin: 6px 6px 10px 6px;
|
|
background: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
/* style cards */
|
|
.mdc-card-content {
|
|
margin: 5px 15px 5px 15px;
|
|
}
|
|
|
|
.mdc-card .mdc-typography--headline6, .mdc-card .mdc-typography--subtitle2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.mdc-card .mdc-typography--headline6 {
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
|
|
/* change number of articles in each row depending on screen size */
|
|
@media screen and (max-width: 600px) {
|
|
.article-section .mdc-card {
|
|
width: calc((100% / 2) - 18px);
|
|
}
|
|
}
|
|
@media screen and (max-width: 350px) {
|
|
.article-section .mdc-card {
|
|
width: calc((100% / 1) - 18px);
|
|
}
|
|
} |