-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstyle.css
More file actions
57 lines (48 loc) · 797 Bytes
/
style.css
File metadata and controls
57 lines (48 loc) · 797 Bytes
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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
img {
width: 550px;
height: 500px;
object-fit: cover;
}
.container {
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
height: 530px;
width: 550px;
overflow: hidden;
}
.img_container {
display: flex;
transform: translateX(0);
transition: transform 0.5s ease-in-out;
}
.buttons {
display: flex;
justify-content: space-between;
}
.btn {
background-color: rebeccapurple;
color: white;
border: none;
padding: 0.5rem;
cursor: pointer;
width: 49.5%;
}
.btn:hover {
opacity: 0.9;
}
.btn:focus {
outline: none;
}
.btn:active {
transform: scale(0.98);
}