forked from Frontend-Study-230622/FLO-clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarousel.css
64 lines (52 loc) · 1.29 KB
/
carousel.css
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
.carousel-control-prev-icon,
.carousel-control-next-icon {
background-image: none;
}
.carousel-control-prev {
position: absolute;
left: -110px;
}
.carousel-control-prev:after {
content: '';
display:inline-block;
width: 1.5rem;
height: 1.5rem;
margin-left: 0.5rem;
border-top: 0.2rem solid #000000;
border-right: 0.2rem solid #000000;
transform: rotate(225deg);
}
.carousel-control-next {
position: absolute;
left: 880px;
}
.carousel-control-next:after {
content: '';
display:inline-block;
width: 1.5rem;
height: 1.5rem;
margin-left: 0.5rem;
border-top: 0.2rem solid black;
border-right: 0.2rem solid black;
transform: rotate(45deg);
}
.carousel-inner .carousel-item {
background-color: none;
}
/* 1. 더 구체적인 선택자를 사용하여 스타일 적용 */
.carousel-inner .carousel-item:nth-child(1) {
background-color: #ff0000;
}
.carousel-inner .carousel-item:nth-child(2) {
background-color: blue;
}
/* 2. !important 키워드 사용 */
.carousel-inner .carousel-item:nth-child(3) {
background-color: green !important;
}
.carousel-inner .carousel-item:nth-child(4) {
background-color: gray !important;
}
.carousel-inner .carousel-item:nth-child(5) {
background-color: orange !important;
}