-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcoreSlider.scss
More file actions
80 lines (78 loc) · 1.43 KB
/
coreSlider.scss
File metadata and controls
80 lines (78 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* CoreSlider v1.0.0
* Copyright 2016 Pavel Davydov
*
* Licensed under MIT (http://opensource.org/licenses/MIT)
*/
$coreSlider_transition-duration: .5s;
$coreSlider_transition-type: cubic-bezier(.77, 0, .175, 1);
$coreSlider_color: #fff;
.core-slider {
position: relative;
user-select: none;
color: $coreSlider_color;
&_viewport {
overflow: hidden;
position: relative;
}
&_list {
transition: all $coreSlider_transition-duration $coreSlider_transition-type;
}
&_item {
float: left;
img {
display: block;
max-width: 100%;
height: auto;
}
}
&_nav {
&.is-hidden {
display: none;
}
}
&_control-nav {
position: absolute;
z-index: 999;
right: 0;
bottom: 30px;
left: 0;
text-align: center;
// Control nav item
&-item {
display: inline-block;
width: 10px;
height: 10px;
margin: 0 10px;
cursor: pointer;
transition: all .5s linear;
border-radius: 50%;
background: $coreSlider_color;
&:hover {
opacity: .3;
}
&.is-active {
cursor: default;
opacity: .3;
}
}
}
// Arrow
&_arrow {
position: absolute;
z-index: 999;
top: 50%;
cursor: pointer;
transform: translate(0, -50%);
&.is-disabled {
cursor: default;
opacity: .5;
}
&.is-hidden {
display: none;
}
&:hover {
opacity: .5;
}
}
}