mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 11:27:06 +00:00
Continue redesigning site
This commit is contained in:
@@ -7,11 +7,26 @@
|
||||
}
|
||||
.mdc-typography--caption-text {
|
||||
font-style: italic;
|
||||
margin: 5px;
|
||||
}
|
||||
.mdc-typography--headline5 {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
/* change background */
|
||||
.article-content {
|
||||
background-color: var(--mdc-theme-background);
|
||||
padding-top: 6px;
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
|
||||
/* position headline in middle of image */
|
||||
.parallax-section {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
padding: 150px 15px;
|
||||
}
|
||||
|
||||
|
||||
/* adjust video dimensions depending on screen size */
|
||||
iframe {
|
||||
@@ -31,8 +46,15 @@ iframe {
|
||||
height: calc(90vw / 16 * 9 - 5px);
|
||||
}
|
||||
.mdc-typography--headline3, .mdc-typography--headline5 {
|
||||
font-size: 1.5rem;
|
||||
line-height: 1.625rem;
|
||||
font-size: 2.5rem;
|
||||
line-height: 2.625rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 400px) {
|
||||
.mdc-typography--headline3, .mdc-typography--headline5 {
|
||||
font-size: 2rem;
|
||||
line-height: 2.125rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,60 +62,4 @@ iframe {
|
||||
iframe {
|
||||
height: calc(93.5vw / 16 * 9);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* make article cards look nice by altering margins */
|
||||
.mdc-card-content {
|
||||
margin: 5px 15px 5px 15px;
|
||||
}
|
||||
|
||||
.mdc-card .mdc-typography--headline6, .mdc-card .mdc-typography--subtitle2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
||||
/* change carousel dots' styling to make them more visible */
|
||||
.slick-dots {
|
||||
position: relative;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.slick-dots li button:before {
|
||||
font-size: 30px;
|
||||
opacity: 1;
|
||||
color: #ababab;
|
||||
}
|
||||
|
||||
.slick-dots li.slick-active button::before {
|
||||
font-size: 40px;
|
||||
opacity: 1;
|
||||
color: var(--mdc-theme-primary);
|
||||
}
|
||||
|
||||
|
||||
/* ensure buttons don't get in the way & enable scrolling */
|
||||
.slick-next {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.slick-prev {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
|
||||
/* ensure MDC cards are separated enough that they are distinguishable */
|
||||
.carousel-item {
|
||||
margin: 4px;
|
||||
}
|
||||
|
||||
/* remove excessive margin below carousel */
|
||||
.slick-dotted.slick-slider {
|
||||
margin-bottom: 13px;
|
||||
}
|
||||
|
||||
/* align article carousel title with carousel items */
|
||||
.article-carousel-title {
|
||||
text-align: center;
|
||||
}
|
||||
@@ -1,7 +1,12 @@
|
||||
/* change theme */
|
||||
:root {
|
||||
--mdc-theme-primary: #273967;
|
||||
--mdc-theme-secondary: #ef6c00;
|
||||
--mdc-theme-primary: #253a67;
|
||||
--mdc-theme-secondary: #ea6343;
|
||||
--mdc-theme-background: #181a1b;
|
||||
}
|
||||
|
||||
.mdc-top-app-bar--short-fixed-adjust {
|
||||
padding-top: 41px;
|
||||
}
|
||||
|
||||
.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label, .mdc-list-item--activated .mdc-list-item__text, .mdc-drawer .mdc-list-item--activated .mdc-list-item__graphic {
|
||||
@@ -12,6 +17,24 @@ body {
|
||||
font-family: 'Roboto', sans-serif;
|
||||
display: flex;
|
||||
margin: 0;
|
||||
background-color: var(--mdc-theme-primary);
|
||||
color: #ffffff;
|
||||
}
|
||||
.mdc-drawer {
|
||||
background-color: var(--mdc-theme-background);
|
||||
}
|
||||
.mdc-drawer *, .mdc-drawer .material-icons, .mdc-drawer h3 {
|
||||
color: #ddd;
|
||||
}
|
||||
.mdc-drawer .mdc-list-group__subheader {
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label, .mdc-list-item--activated .mdc-list-item__text, .mdc-drawer .mdc-list-item--activated .mdc-list-item__graphic {
|
||||
color: var(--mdc-theme-secondary);
|
||||
}
|
||||
:not(.mdc-list--non-interactive)>:not(.mdc-list-item--disabled).mdc-list-item--activated::before, :not(.mdc-list--non-interactive)>:not(.mdc-list-item--disabled).mdc-list-item--activated::after {
|
||||
background-color: var(--mdc-theme-secondary);
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -33,7 +56,7 @@ a {
|
||||
}
|
||||
|
||||
.main-content {
|
||||
margin: 15px;
|
||||
margin: 15px 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
@@ -41,11 +64,49 @@ a {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.footer-container {
|
||||
background: var(--mdc-theme-background);
|
||||
padding: 5px 0;
|
||||
}
|
||||
footer {
|
||||
margin: 15px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* change button colours */
|
||||
.mdc-button:not(:disabled) {
|
||||
color: var(--mdc-theme-secondary);
|
||||
border-color: var(--mdc-theme-secondary);
|
||||
}
|
||||
.mdc-button::before, .mdc-button::after {
|
||||
background-color: var(--mdc-theme-secondary);
|
||||
}
|
||||
|
||||
/* parallax backgrounds */
|
||||
.parallax-section {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
display: flow-root;
|
||||
}
|
||||
|
||||
/* 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%;
|
||||
padding-right: 15%;
|
||||
}
|
||||
@media screen and (max-width: 1000px) {
|
||||
.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: 8%;
|
||||
padding-right: 8%;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 800px) {
|
||||
.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: 2%;
|
||||
padding-right: 2%;
|
||||
}
|
||||
}
|
||||
|
||||
/* edit footer depending on screen size - edits alignment & changes switches between center- and left- aligned BBC Young Reporter logos */
|
||||
footer span {
|
||||
position: relative;
|
||||
@@ -76,24 +137,6 @@ footer img {
|
||||
}
|
||||
}
|
||||
|
||||
/* add side margins */
|
||||
.main-content, footer {
|
||||
margin-left: 15%;
|
||||
margin-right: 15%;
|
||||
}
|
||||
@media screen and (max-width: 600px) {
|
||||
.main-content, footer {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 500px) {
|
||||
.main-content, footer {
|
||||
margin-left: 2%;
|
||||
margin-right: 2%;
|
||||
}
|
||||
}
|
||||
|
||||
/* for cookie notice */
|
||||
#cookies {
|
||||
display: none;
|
||||
|
||||
@@ -1,20 +1,3 @@
|
||||
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);
|
||||
@@ -24,12 +7,10 @@ html, body {
|
||||
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);
|
||||
background-color: rgba(24,26,27,0.5);
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
}
|
||||
.article-section-header h1 {
|
||||
margin-block-start: 0;
|
||||
@@ -49,37 +30,23 @@ html, body {
|
||||
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(3n) {
|
||||
background: var(--mdc-theme-background);
|
||||
}
|
||||
.article-section:nth-of-type(3) #jarallax-container-1 {
|
||||
.article-section:nth-of-type(3n) #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;
|
||||
|
||||
@@ -1,204 +0,0 @@
|
||||
@charset 'UTF-8';
|
||||
/* Slider */
|
||||
.slick-loading .slick-list
|
||||
{
|
||||
background: #fff url('./ajax-loader.gif') center center no-repeat;
|
||||
}
|
||||
|
||||
/* Icons */
|
||||
@font-face
|
||||
{
|
||||
font-family: 'slick';
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
|
||||
src: url('./fonts/slick.eot');
|
||||
src: url('./fonts/slick.eot?#iefix') format('embedded-opentype'), url('./fonts/slick.woff') format('woff'), url('./fonts/slick.ttf') format('truetype'), url('./fonts/slick.svg#slick') format('svg');
|
||||
}
|
||||
/* Arrows */
|
||||
.slick-prev,
|
||||
.slick-next
|
||||
{
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
|
||||
display: block;
|
||||
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
padding: 0;
|
||||
-webkit-transform: translate(0, -50%);
|
||||
-ms-transform: translate(0, -50%);
|
||||
transform: translate(0, -50%);
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
color: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
}
|
||||
.slick-prev:hover,
|
||||
.slick-prev:focus,
|
||||
.slick-next:hover,
|
||||
.slick-next:focus
|
||||
{
|
||||
color: transparent;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
}
|
||||
.slick-prev:hover:before,
|
||||
.slick-prev:focus:before,
|
||||
.slick-next:hover:before,
|
||||
.slick-next:focus:before
|
||||
{
|
||||
opacity: 1;
|
||||
}
|
||||
.slick-prev.slick-disabled:before,
|
||||
.slick-next.slick-disabled:before
|
||||
{
|
||||
opacity: .25;
|
||||
}
|
||||
|
||||
.slick-prev:before,
|
||||
.slick-next:before
|
||||
{
|
||||
font-family: 'slick';
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
|
||||
opacity: .75;
|
||||
color: white;
|
||||
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.slick-prev
|
||||
{
|
||||
left: -25px;
|
||||
}
|
||||
[dir='rtl'] .slick-prev
|
||||
{
|
||||
right: -25px;
|
||||
left: auto;
|
||||
}
|
||||
.slick-prev:before
|
||||
{
|
||||
content: '←';
|
||||
}
|
||||
[dir='rtl'] .slick-prev:before
|
||||
{
|
||||
content: '→';
|
||||
}
|
||||
|
||||
.slick-next
|
||||
{
|
||||
right: -25px;
|
||||
}
|
||||
[dir='rtl'] .slick-next
|
||||
{
|
||||
right: auto;
|
||||
left: -25px;
|
||||
}
|
||||
.slick-next:before
|
||||
{
|
||||
content: '→';
|
||||
}
|
||||
[dir='rtl'] .slick-next:before
|
||||
{
|
||||
content: '←';
|
||||
}
|
||||
|
||||
/* Dots */
|
||||
.slick-dotted.slick-slider
|
||||
{
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.slick-dots
|
||||
{
|
||||
position: absolute;
|
||||
bottom: -25px;
|
||||
|
||||
display: block;
|
||||
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
list-style: none;
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
.slick-dots li
|
||||
{
|
||||
position: relative;
|
||||
|
||||
display: inline-block;
|
||||
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 0 5px;
|
||||
padding: 0;
|
||||
|
||||
cursor: pointer;
|
||||
}
|
||||
.slick-dots li button
|
||||
{
|
||||
font-size: 0;
|
||||
line-height: 0;
|
||||
|
||||
display: block;
|
||||
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
padding: 5px;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
color: transparent;
|
||||
border: 0;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
}
|
||||
.slick-dots li button:hover,
|
||||
.slick-dots li button:focus
|
||||
{
|
||||
outline: none;
|
||||
}
|
||||
.slick-dots li button:hover:before,
|
||||
.slick-dots li button:focus:before
|
||||
{
|
||||
opacity: 1;
|
||||
}
|
||||
.slick-dots li button:before
|
||||
{
|
||||
font-family: 'slick';
|
||||
font-size: 6px;
|
||||
line-height: 20px;
|
||||
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
|
||||
content: '•';
|
||||
text-align: center;
|
||||
|
||||
opacity: .25;
|
||||
color: black;
|
||||
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.slick-dots li.slick-active button:before
|
||||
{
|
||||
opacity: .75;
|
||||
color: black;
|
||||
}
|
||||
@@ -1,119 +0,0 @@
|
||||
/* Slider */
|
||||
.slick-slider
|
||||
{
|
||||
position: relative;
|
||||
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
|
||||
-webkit-touch-callout: none;
|
||||
-khtml-user-select: none;
|
||||
-ms-touch-action: pan-y;
|
||||
touch-action: pan-y;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
.slick-list
|
||||
{
|
||||
position: relative;
|
||||
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.slick-list:focus
|
||||
{
|
||||
outline: none;
|
||||
}
|
||||
.slick-list.dragging
|
||||
{
|
||||
cursor: pointer;
|
||||
cursor: hand;
|
||||
}
|
||||
|
||||
.slick-slider .slick-track,
|
||||
.slick-slider .slick-list
|
||||
{
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
-moz-transform: translate3d(0, 0, 0);
|
||||
-ms-transform: translate3d(0, 0, 0);
|
||||
-o-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
.slick-track
|
||||
{
|
||||
position: relative;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.slick-track:before,
|
||||
.slick-track:after
|
||||
{
|
||||
display: table;
|
||||
|
||||
content: '';
|
||||
}
|
||||
.slick-track:after
|
||||
{
|
||||
clear: both;
|
||||
}
|
||||
.slick-loading .slick-track
|
||||
{
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.slick-slide
|
||||
{
|
||||
display: none;
|
||||
float: left;
|
||||
|
||||
height: 100%;
|
||||
min-height: 1px;
|
||||
}
|
||||
[dir='rtl'] .slick-slide
|
||||
{
|
||||
float: right;
|
||||
}
|
||||
.slick-slide img
|
||||
{
|
||||
display: block;
|
||||
}
|
||||
.slick-slide.slick-loading img
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
.slick-slide.dragging img
|
||||
{
|
||||
pointer-events: none;
|
||||
}
|
||||
.slick-initialized .slick-slide
|
||||
{
|
||||
display: block;
|
||||
}
|
||||
.slick-loading .slick-slide
|
||||
{
|
||||
visibility: hidden;
|
||||
}
|
||||
.slick-vertical .slick-slide
|
||||
{
|
||||
display: block;
|
||||
|
||||
height: auto;
|
||||
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.slick-arrow.slick-hidden {
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user