mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 03:17:07 +00:00
Refine design
This commit is contained in:
@@ -5,13 +5,17 @@
|
||||
margin: 6px;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.article-section-header, .year-header {
|
||||
background-color: rgba(50,50,50,0.9);
|
||||
background-color: rgba(0,0,0,0.6);
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
/* main list of articles */
|
||||
.articles {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
|
||||
/* make cards display next to each other with correct dimensions and adjust styling */
|
||||
.main-content .mdc-card {
|
||||
@@ -23,16 +27,13 @@
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -84,12 +84,11 @@ footer {
|
||||
z-index: 0;
|
||||
display: flow-root;
|
||||
}
|
||||
.parallax-section #jarallax-container-0 div, .parallax-section #jarallax-container-1 div {
|
||||
background-color: rgba(0,0,0,0.45);
|
||||
.parallax-section > div:last-child > div {
|
||||
background-color: rgba(50,50,50,0.9);
|
||||
background-blend-mode: multiply;
|
||||
}
|
||||
|
||||
|
||||
/* splitter for between sections */
|
||||
.splitter {
|
||||
height: 15px;
|
||||
@@ -97,7 +96,6 @@ footer {
|
||||
background-color: var(--mdc-theme-primary);
|
||||
}
|
||||
|
||||
|
||||
/* responsive side margins */
|
||||
.article-section .articles, .article-section-header, .footer-container, .article-content, .footer-container, .article-title-section ~ .mdc-typography--caption-text, .article-title-section, .mdc-typography--subtitle1, .mdc-typography--headline3 {
|
||||
padding-left: 15%;
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
/* centre contents vertically */
|
||||
.article-section-header {
|
||||
min-height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* place button on right */
|
||||
.article-section-header button {
|
||||
display: inline;
|
||||
padding: 5px 14px;
|
||||
position: relative;
|
||||
float: right;
|
||||
margin-left: auto;
|
||||
top: 3.5px;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,4 @@
|
||||
/* list of articles */
|
||||
.articles {
|
||||
background-color: var(--mdc-theme-background);
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
Reference in New Issue
Block a user