mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 11:27:06 +00:00
Revert "Revert "Merge pull request #2 from mgrove36/development""
This reverts commit fa40e6fd0e.
This commit is contained in:
51
_site/css/article-list.css
Normal file
51
_site/css/article-list.css
Normal file
@@ -0,0 +1,51 @@
|
||||
/* 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user