-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
60 lines (56 loc) · 1.02 KB
/
style.css
File metadata and controls
60 lines (56 loc) · 1.02 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: grid;
place-items: center;
min-height: 100vh;
}
.slider_container {
width: 50vw;
overflow: hidden;
outline: .3rem solid #0e0e0e;
border-radius: .5rem;
position: relative;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
}
.slider {
display: flex;
height: 100%;
}
span {
position: absolute;
z-index: 10;
top: 50%;
transform: translateY(-50%);
color: #fff;
font-size: 1.5rem;
background-color: rgba(14, 14, 14, .7);
border-radius: 50%;
width: 3rem;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: 200ms ease-in-out background-color;
}
.leftBtn {
left: 5%;
}
.rightBtn {
right: 5%;
}
span:hover {
background-color: rgba(14, 14, 14, 1);
}
span:active {
transform: translateY(-50%) scale(.9);
}
/* now its JS time */