mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 11:27:06 +00:00
Update branding & home page
Add BBC Young Reporter branding & update positioning of articles on home page
This commit is contained in:
@@ -39,21 +39,52 @@ a {
|
||||
|
||||
footer {
|
||||
margin: 15px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* edit footer depending on screen size - edits alignment & changes switches between center- and left- aligned BBC Young Reporter logos */
|
||||
footer span {
|
||||
position: relative;
|
||||
top: 19px;
|
||||
}
|
||||
|
||||
footer img {
|
||||
display: block;
|
||||
width: 125px;
|
||||
float: right;
|
||||
content: url("/images/young-reporter-logo.png");
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
footer {
|
||||
text-align: center;
|
||||
}
|
||||
footer img {
|
||||
float: none;
|
||||
margin: auto;
|
||||
content: url("/images/young-reporter-logo-centered.png");
|
||||
width: 200px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
footer span {
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* add side margins */
|
||||
.main-content {
|
||||
.main-content, footer {
|
||||
margin-left: 15%;
|
||||
margin-right: 15%;
|
||||
}
|
||||
@media screen and (max-width: 600px) {
|
||||
.main-content {
|
||||
.main-content, footer {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 500px) {
|
||||
.main-content {
|
||||
.main-content, footer {
|
||||
margin-left: 2%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user