Redesign website

This commit is contained in:
2020-03-02 20:19:40 +00:00
parent d8c1fda74b
commit 64cd4f03d4
40 changed files with 3441 additions and 497 deletions

View File

@@ -0,0 +1,63 @@
/* automatically display articles on either side of the page, alternating */
.main-content .mdc-card {
float: right;
clear: right;
width: calc(50% - 6px);
}
.main-content .mdc-card:nth-of-type(even) {
float: left;
clear: left;
}
/* make first article full-width */
.main-content .mdc-card:first-of-type {
float: none;
clear: both;
width: auto;
}
/* makes last article full-width if it is on its own in a row - i.e. if there is an even number of articles in total */
.main-content .mdc-card:nth-of-type(odd):nth-last-of-type(2) ~ .mdc-card:last-of-type {
float: none;
clear: both;
width: auto;
}
/* styling for when 1 article present */
.main-content .mdc-card:first-of-type:last-of-type {
float: none;
clear: both;
width: auto;
}
/* styling for when 2 articles present & small screen is detected */
@media screen and (max-width: 1000px) {
.main-content .mdc-card:nth-child(1):nth-last-of-type(2), .main-content .mdc-card:nth-of-type(2):last-of-type {
float: none;
clear: both;
width: auto;
}
}
/* styling for when 3 articles present */
.main-content .mdc-card:first-of-type:nth-last-of-type(3) {
float: none;
clear: both;
width: auto;
}
.main-content .mdc-card:nth-of-type(3):last-of-type {
float: right;
clear: right;
}
.main-content .mdc-card:nth-of-type(2):nth-last-of-type(2) {
float: left;
clear: left;
}

98
_site/css/home.css Normal file
View File

@@ -0,0 +1,98 @@
html, body {
background-color: var(--mdc-theme-primary);
}
.footer-container {
background: #ffffff;
padding: 5px 0;
}
.mdc-top-app-bar--short-fixed-adjust {
padding-top: 41px;
}
.article-section {
position: relative;
z-index: 0;
display: flow-root;
background-image: url("/images/backgrounds/2019.jpg");
}
.main-content .mdc-card {
float: left;
width: calc((100% / 3) - 12px);
box-shadow: none;
}
.mdc-card {
margin: 6px 6px 10px 6px;
background: none;
}
.main-content {
margin-left: 0;
margin-right: 0;
}
.article-section-header {
background-color: rgba(255,255,255,0.8);
}
.article-section-header h1 {
margin-block-start: 0;
margin-block-end: 0;
margin: 6px;
display: inline;
}
.article-section-header button {
display: inline;
padding: 5px 14px;
position: relative;
float: right;
top: 3.5px;
}
.article-section-header button span {
position: relative;
left: 0;
top: 1.25px;
transition: left 0.1s linear;
height: 100%;
font-size: inherit;
}
.article-section-header button:hover span {
left: 3px;
}
.article-section .articles, .article-section-header {
padding: 12px 15% 12px 15%;
}
.splitter {
height: 15px;
width: 100%;
background-color: var(--mdc-theme-primary);
}
.article-section:nth-of-type(3) {
background: #ffffff;
}
.article-section:nth-of-type(3) #jarallax-container-1 {
display: none;
}
@media screen and (max-width: 1000px) {
.article-section .articles, .article-section-header {
padding: 12px 8% 12px 8%;
}
}
@media screen and (max-width: 800px) {
.article-section .articles, .article-section-header {
padding: 12px 2% 12px 2%;
}
}
@media screen and (max-width: 600px) {
.article-section .mdc-card:nth-of-type(3) {
display: none;
}
.article-section .mdc-card {
width: calc((100% / 2) - 12px);
}
}
@media screen and (max-width: 350px) {
.article-section .mdc-card:nth-of-type(2) {
display: none;
}
.article-section .mdc-card {
width: calc((100% / 1) - 12px);
}
}

View File

@@ -13,69 +13,4 @@
.mdc-card .mdc-typography--headline6 {
text-transform: capitalize;
}
/* automatically display articles on either side of the page, alternating */
.main-content .mdc-card {
float: right;
clear: right;
width: calc(50% - 6px);
}
.main-content .mdc-card:nth-of-type(even) {
float: left;
clear: left;
}
/* make first article full-width */
.main-content .mdc-card:first-of-type {
float: none;
clear: both;
width: auto;
}
/* makes last article full-width if it is on its own in a row - i.e. if there is an even number of articles in total */
.main-content .mdc-card:nth-of-type(odd):nth-last-of-type(2) ~ .mdc-card:last-of-type {
float: none;
clear: both;
width: auto;
}
/* styling for when 1 article present */
.main-content .mdc-card:first-of-type:last-of-type {
float: none;
clear: both;
width: auto;
}
/* styling for when 2 articles present & small screen is detected */
@media screen and (max-width: 1000px) {
.main-content .mdc-card:nth-child(1):nth-last-of-type(2), .main-content .mdc-card:nth-of-type(2):last-of-type {
float: none;
clear: both;
width: auto;
}
}
/* styling for when 3 articles present */
.main-content .mdc-card:first-of-type:nth-last-of-type(3) {
float: none;
clear: both;
width: auto;
}
.main-content .mdc-card:nth-of-type(3):last-of-type {
float: right;
clear: right;
}
.main-content .mdc-card:nth-of-type(2):nth-last-of-type(2) {
float: left;
clear: left;
}
}