Skip to content

Instantly share code, notes, and snippets.

@nicco88
Last active January 12, 2017 07:16
Show Gist options
  • Save nicco88/ebc763285e3bf733f63a3ba69524ccdd to your computer and use it in GitHub Desktop.
Save nicco88/ebc763285e3bf733f63a3ba69524ccdd to your computer and use it in GitHub Desktop.
slider.css
/*Image Slider Div (brand.html)*/
.container {
margin: 0;
}
#titleDiv {
display: block;
margin: 0 auto;
padding: 2%;
background: #fff;
width: 100%;
border-bottom: 5px solid #efefef;
}
#titleDiv * {
display: inline-block;
}
#heartImg {
max-width: 15%;
height: auto;
}
#title {
background: #fff;
width: 100%;
padding-left: 3%;
}
#title * {
text-transform: uppercase;
display: inline-block;
margin: 0;
line-height: 60px;
color: #83b8b2;
}
#brandTitle {
display: inline-block;
text-align: center;
font-size: 109%;
font-family: "Helvetica";
width: 75%;
}
#burger {
float: right;
padding: 0 0% 0 5%;
}
#burger i {
color: #383838;
font-size: 132%;
}
/*slider section*/
#sliderContainer {
width: 100%;
margin: 0 auto;
background: white;
max-height: 14em;
overflow: hidden;
position: relative;
}
.sliderBtn {
position: absolute;
z-index: 1;
background: transparent;
cursor: pointer;
height: 100%;
width: 2em;
}
.btnArrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(168, 168, 168, 0.8);
height: 1.5em;
width: 1.5em;
border-radius: 50%;
font-size: 90%;
}
.btnArrow:active {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(56, 56, 56, 0.8);
height: 1.5em;
width: 1.5em;
border-radius: 50%;
font-size: 90%;
}
.btnArrow * {
color: #fff;
line-height: 1.5em;
}
#btnArrowPrev {
right: 0;
}
#btnLeftIcon {
padding-left: 20%;
}
#btnRightIcon {
padding-left: 30%;
}
#goPrevBtn {
left: 0;
background: transparent;
/*background: -webkit-linear-gradient(right, rgba(234,234,234,0),rgba(234,234,234,1));
background: -o-linear-gradient(left, rgba(234,234,234,0), rgba(234,234,234,1));
background: -moz-linear-gradient(left, rgba(234,234,234,0), rgba(234,234,234,1));
background: linear-gradient(to left, rgba(234,234,234,0), rgba(234,234,234,1));*/
}
#goNextBtn {
right: 0;
background: transparent;
/*background: -webkit-linear-gradient(left, rgba(234,234,234,0),rgba(234,234,234,1));
background: -o-linear-gradient(right, rgba(234,234,234,0), rgba(234,234,234,1));
background: -moz-linear-gradient(right, rgba(234,234,234,0), rgba(234,234,234,1));
background: linear-gradient(to right, rgba(234,234,234,0), rgba(234,234,234,1));*/
}
#pagesStripe {
width: 1000%;
max-height: 14em;
display: table;
table-layout: fixed;
overflow: hidden;
left: 0;
margin: 0;
padding: 0;
transition: transform 1s;
-moz-transition: transform 1s;
-webkit-transition: transform 1s;
-o-transition: transform 1s;
}
.pages {
width: 100%;
max-height: 14em;
display: table-cell;
margin: 0;
padding: 0 2em;
}
.pages * {
margin: 0;
padding: 0;
}
.brand {
float: left;
display: block;
background: white;
width: 50%;
max-height: 7em;
list-style-type: none;
padding: 0;
text-align: center;
}
.brandLogo {
max-width: 100%;
max-height: 7em;
margin: 0 auto;
}
.brand a {
float: left;
display: block;
text-align: center;
}
.imgDiv {
margin-top: 0.5em;
display: inline-block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment