Files
bbc-young-reporter/_site/css/article-page.css
Matthew Grove 9bf63868bb Update templates & fix carousel bugs
Templates now have date of 2019 BBC Young Reporter day on them;
Carousel bug whereby if a dot was clicked & then the used scrolled away, 
the dot would turn black;
Dots now appear in the correct position on all screen sizes (they were 
too low on mobile).
2019-03-06 07:22:44 +00:00

88 lines
1.5 KiB
CSS

/* make text look nice */
.mdc-typography--headline2, .mdc-typography--subtitle1 {
text-transform: capitalize;
}
.mdc-typography--headline2, .mdc-typography--subtitle1, figure {
margin: 5px;
}
.mdc-typography--caption-text {
font-style: italic;
}
/* adjust video dimensions depending on screen size */
iframe {
width: 100%;
height: calc(68.8vw / 16 * 9);
}
@media screen and (max-width: 1550px) {
iframe {
width: 100%;
height: calc(70vw / 16 * 9 - 6px);
}
}
@media screen and (max-width: 600px) {
iframe {
height: calc(90vw / 16 * 9 - 5px);
}
}
@media screen and (max-width: 600px) {
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;
}