-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarousel.scss
121 lines (107 loc) · 2.06 KB
/
carousel.scss
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@import 'common';
@import 'bootstrap/scss/carousel';
$carousel-control-offset: 64px;
.carousel-indicators li {
border-left: $carousel-indicator-hit-area-height solid transparent;
border-right: $carousel-indicator-hit-area-height solid transparent;
border-radius: 50%;
margin-bottom: 0;
@include media-breakpoint-up(sm) {
border-top-width: 8px;
border-bottom-width: 8px;
border-left-width: 8px;
border-right-width: 8px;
}
@include lightTheme {
background-color: $black-10;
&:hover {
background-color: $black-25;
}
&.active {
background-color: $black-95;
}
}
@include darkTheme {
background-color: $white-10;
&:hover {
background-color: $white-25;
}
&.active {
background-color: $white-95;
}
}
}
.carousel-indicators {
bottom: 40px;
margin-bottom: 0;
}
.carousel-control-prev,
.carousel-control-next {
right: 0;
top: 50%;
transform: translateY(-50%);
&,
.container & {
width: 48px;
height: 48px;
}
@include media-breakpoint-up(sm) {
height: 100%;
width: 128px;
}
}
// stylelint-disable no-descending-specificity
.carousel-control-next {
&,
.container & {
justify-content: flex-end;
}
@include media-breakpoint-up(sm) {
justify-content: flex-start;
}
}
.carousel-control-prev {
&,
.container & {
justify-content: flex-start;
}
@include media-breakpoint-up(sm) {
justify-content: flex-end;
}
}
// stylelint-enable
.carousel-control-next-icon,
.carousel-control-prev-icon {
&,
.container & {
width: 32px;
height: 32px;
@include lightTheme {
background-color: $black-10;
}
@include darkTheme {
background-color: $white-10;
}
}
@include media-breakpoint-up(sm) {
width: 64px;
height: 64px;
background-color: transparent;
}
> svg {
width: 100%;
height: 100%;
}
}
.container .carousel {
position: static;
@media (min-width: map-get($container-max-widths, xl) + (2 * $carousel-control-offset) - $grid-gutter-width) {
position: relative;
.carousel-control-prev {
left: $carousel-control-offset * -1;
}
.carousel-control-next {
right: $carousel-control-offset * -1;
}
}
}