Move carousel buttons out of carousel

This commit is contained in:
Matthew Grove
2018-12-08 15:56:38 +00:00
parent f675b0d9c7
commit 88a4c44e59
6 changed files with 85 additions and 54 deletions

View File

@@ -6,26 +6,40 @@
margin-bottom: 15px;
background: rgba(10,10,10,0.2);
}
/* place carousel indicators between the two buttons (next & previous) */
.presentation-flexbox {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
justify-content: space-between;
}
.carousel-indicators {
order: 1;
margin-bottom: 0;
}
.presentation-button-left {
order: 0;
}
.presentation-button-right {
order: 2;
}
.carousel-inner .item {
height: 100%;
}
.carousel-inner div {
width: 100%;
border: none;
height: 100%;
padding: 15px;
}
.carousel-indicators li {
border: 1px solid var(--mdc-theme-secondary);
}
.carousel-indicators .active {
background-color: var(--mdc-theme-secondary);
}
.presentation-button-left {
float: left;
}
.presentation-button-right {
float: right;
}
/* ensure content below buttons doesn't cover them */
.presentation-buttons-container {
width: 100%;
@@ -36,6 +50,11 @@
p {
margin: 0;
}
.carousel-indicators {
margin: 0;
position: initial;
width: auto;
}
/* add side margins depending on screen size */
#main-content {