Added Styles, Arrows, cleaned scss and js, added example implementation
TODO: new positioning of items --> Array rotate fix z-indexing
This commit is contained in:
+307
@@ -0,0 +1,307 @@
|
||||
@import "scss-framework/framework";
|
||||
|
||||
/* Slider */
|
||||
|
||||
// CONFIGURATION
|
||||
|
||||
$base-size: 14px;
|
||||
$smaller-size: $base-size*0.66;
|
||||
|
||||
$slider_width:100%;
|
||||
$slider_item_width:20%;
|
||||
|
||||
$font__main: Calibri, sans-serif;
|
||||
|
||||
$highlight-color-1: #3a9985;
|
||||
$highlight-color-2: #d38b71;
|
||||
|
||||
$text-color: #ffffff;
|
||||
$base-color: #ffffff;
|
||||
|
||||
// END CONFIGURATION
|
||||
|
||||
body {
|
||||
//background-color: rgba($highlight-color-1, 0.5)
|
||||
font-family: Calibri, sans-serif;
|
||||
}
|
||||
|
||||
header {
|
||||
@include absolute-span(0, 12.5%, auto, 12.5%);
|
||||
position: fixed;
|
||||
height: 200px;
|
||||
background-color: $highlight-color-1;
|
||||
z-index: 1000;
|
||||
.brand {
|
||||
display: block;
|
||||
font-size: 100px;
|
||||
font-weight: 700;
|
||||
padding:25px 50px!important;
|
||||
color: $base-color;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
div#content {
|
||||
width: 75%;
|
||||
margin: 200px auto 0 auto;
|
||||
background-color: $base-color;
|
||||
border-left: solid 1px $highlight-color-2;
|
||||
border-right: solid 1px $highlight-color-2;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 120px;
|
||||
.text {
|
||||
max-width: 50%;
|
||||
margin: 20px auto;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
display: table;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
background-color: $highlight-color-2;
|
||||
text-align: center;
|
||||
span {
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
div.bannergroup {
|
||||
width: $slider_width;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
margin: 0 auto;
|
||||
padding: 0 !important;
|
||||
overflow: hidden;
|
||||
background-color: $base-color;
|
||||
|
||||
&:after {
|
||||
content: ' ';
|
||||
//background-image: url($img-dir + "/wave.png");
|
||||
position: absolute;
|
||||
height: 100px;
|
||||
width: 100%;
|
||||
bottom: 0;
|
||||
background-position: bottom;
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.bannercontrols {
|
||||
position: absolute;
|
||||
|
||||
.left {
|
||||
display: table;
|
||||
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 100%;
|
||||
|
||||
min-width: 7*$base-size;
|
||||
margin: 0 !important;
|
||||
|
||||
// PLAIN BACKGROUND
|
||||
//background-color: rgba($text-color, 0.7);
|
||||
|
||||
// GRADIENT BACKGROUND
|
||||
//background: linear-gradient(to left, rgba($base-color,1) 0%, rgba($base-color,0.5) 66%, rgba($base-color,0) 100%);
|
||||
|
||||
.circle {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
display: table;
|
||||
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
min-width: 7*$base-size;
|
||||
margin: 0 !important;
|
||||
|
||||
// PLAIN BACKGROUND
|
||||
//background-color: rgba($text-color, 0.7);
|
||||
|
||||
// GRADIENT BACKGROUND
|
||||
//background: linear-gradient(to right, rgba($base-color,1) 0%, rgba($base-color,0.5) 66%, rgba($base-color,0) 100%);
|
||||
}
|
||||
|
||||
.iconwrapper {
|
||||
display: table-cell;
|
||||
vertical-align: middle;
|
||||
|
||||
.circle {
|
||||
display: block;
|
||||
overflow: hidden !important;
|
||||
|
||||
position: relative;
|
||||
width: 3.33*$base-size;
|
||||
height: 3.33*$base-size;
|
||||
margin: 0 auto;
|
||||
|
||||
border-radius: 3.33*$base-size;
|
||||
border: solid 0.33*$base-size $highlight-color-2;
|
||||
background-color: $highlight-color-1;
|
||||
|
||||
opacity: 1;
|
||||
box-shadow: 0 0 0.33*$base-size $highlight-color-1;
|
||||
|
||||
.arrow {
|
||||
display: block;
|
||||
|
||||
position: absolute;
|
||||
right: 20%;
|
||||
top: 30%;
|
||||
|
||||
width: (3.33/3)*$base-size;
|
||||
height: (3.33/3)*$base-size;
|
||||
|
||||
border-left: solid 0.33*$base-size $highlight-color-2;
|
||||
border-top: solid 0.33*$base-size $highlight-color-2;
|
||||
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bannerjump-wrapper {
|
||||
position: absolute;
|
||||
bottom: 0 !important;
|
||||
right: 0;
|
||||
|
||||
margin: 0;
|
||||
padding: $base-size;
|
||||
|
||||
z-index: 20000;
|
||||
width: auto;
|
||||
|
||||
.bannerjump {
|
||||
display: inline-block;
|
||||
|
||||
width: 0.33*$base-size !important;
|
||||
height: 0.33*$base-size;
|
||||
margin: 0 $smaller-size -4px 0;
|
||||
|
||||
border-radius: $smaller-size;
|
||||
border: solid 0.33*$base-size $highlight-color-1;
|
||||
background: $highlight-color-2;
|
||||
|
||||
&.active {
|
||||
background: $highlight-color-1;
|
||||
border-color: $highlight-color-2;
|
||||
}
|
||||
|
||||
&:first-of-type {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
&:last-of-type {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.banneritem {
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
width: $slider_item_width;
|
||||
|
||||
padding: 0 !important;
|
||||
transition: all 2s ease 0s;
|
||||
|
||||
&.active {
|
||||
z-index: 100;
|
||||
opacity: 1;
|
||||
|
||||
img {
|
||||
-ms-filter: none;
|
||||
filter: none;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
&.inactive {
|
||||
z-index: 90;
|
||||
opacity: 1;
|
||||
|
||||
&.visible {
|
||||
z-index: 95;
|
||||
}
|
||||
|
||||
img {
|
||||
//-webkit-filter: blur(10px);
|
||||
//-ms-filter: blur(5px);
|
||||
//filter: blur(5px) !important;
|
||||
|
||||
-webkit-transform: scale(1.1);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
vertical-align: middle !important;
|
||||
width: 100%;
|
||||
transition: all 0.2s ease 0s;
|
||||
|
||||
&.portrait {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
&:before {
|
||||
content: "";
|
||||
display: block;
|
||||
padding-top: 42.5532%; /* initial ratio of 47:20*/
|
||||
}
|
||||
}
|
||||
a {
|
||||
position: absolute;
|
||||
display: table !important;
|
||||
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
margin: 0 !important;
|
||||
text-decoration: none;
|
||||
|
||||
.bannertext {
|
||||
//position: absolute;
|
||||
display: table-cell;
|
||||
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
|
||||
line-height: 4*$base-size;
|
||||
font-family: $font__main;
|
||||
font-size: $base-size*3;
|
||||
color: $text-color;
|
||||
|
||||
text-shadow: 0px 0px 0.33*$base-size #000;
|
||||
|
||||
background: transparent !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.banneritem
|
||||
.banneritem img, .banneritem iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0 !important;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user