mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 11:27:06 +00:00
71 lines
1.4 KiB
CSS
71 lines
1.4 KiB
CSS
.mdc-card {
|
|
margin: 2px 2px 10px 2px;
|
|
}
|
|
.mdc-card-content {
|
|
margin: 5px 15px 5px 15px;
|
|
}
|
|
|
|
.mdc-card .mdc-typography--headline6, .mdc-card .mdc-typography--subtitle2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.main-content .mdc-card {
|
|
float:left;
|
|
clear:left;
|
|
width: 49%;
|
|
}
|
|
.main-content .mdc-card:nth-of-type(even){
|
|
float:right;
|
|
clear:right;
|
|
}
|
|
.main-content .mdc-card:nth-child(1), .main-content .mdc-card:nth-child(3) {
|
|
float: none;
|
|
clear: none;
|
|
width: auto;
|
|
}
|
|
.main-content .mdc-card:nth-of-type(odd) ~ .mdc-card:last-of-type {
|
|
float: none;
|
|
clear: both;
|
|
width: auto;
|
|
}
|
|
|
|
.top-scroll-button {
|
|
width: 50px;
|
|
height: 50px;
|
|
text-align: center;
|
|
font-size: 25px;
|
|
-webkit-border-radius: 50%;
|
|
-moz-border-radius: 50%;
|
|
border-radius: 50%;
|
|
position: fixed;
|
|
right: 20px;
|
|
bottom: 20px;
|
|
background-color: #273967;
|
|
display: none;
|
|
-webkit-transition-duration: 0.25s;
|
|
-moz-transition-duration: 0.25s;
|
|
-o-transition-duration: 0.25s;
|
|
transition-duration: 0.25s;
|
|
}
|
|
|
|
.top-scroll-button img {
|
|
position: relative;
|
|
right: 0;
|
|
top: 5.5px;
|
|
padding: 5px;
|
|
width: 35px;
|
|
height: auto;
|
|
-webkit-transition-duration: 0.25s;
|
|
-moz-transition-duration: 0.25s;
|
|
-o-transition-duration: 0.25s;
|
|
transition-duration: 0.25s;
|
|
}
|
|
|
|
.top-scroll-button:hover, .top-scroll-button:focus {
|
|
background-color: #1C2E56;
|
|
}
|
|
|
|
.top-scroll-button:hover img {
|
|
top: 0;
|
|
}
|