-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.css
92 lines (87 loc) · 1.71 KB
/
gallery.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
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
* {
box-sizing: border-box;
font-family: 'Helvetica Neue', sans-serif;
}
body {
margin: 0;
padding: 0;
background-color: #f5f5f5;
}
h2 {
background-color: #1b7f3686;
color: rgb(64, 57, 57);
text-align: center;
padding: 1rem;
position: absolute;
bottom: 0;
}
.back {
width: 5rem;
height: 5rem;
border-radius: 50%;
background-color: #34495e;
color: white;
display: flex;
justify-content: center;
align-items: center;
position: fixed;
bottom: 4rem;
right: 5rem;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease;
}
.back:hover {
cursor: pointer;
background-color: #2c3e50;
}
.gallery-cont {
background-color: #ecf0f1;
min-height: 100vh;
width: 100vw;
display: flex;
flex-wrap: wrap;
justify-content: center;
padding-top: 5rem;
}
.media-cont {
height: 15rem;
width: 15rem;
border: 10px solid #bdc3c7;
margin: 2rem;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
transition: border-color 0.3s ease;
}
.media-cont:hover {
border-color: #7f8c8d;
}
.media {
height: calc( 100% - 2rem - 2rem );
}
.media > * {
width: 100%;
height: 100%;
object-fit: cover;
}
.action-btn {
height: 2rem;
color: white;
display: flex;
justify-content: center;
align-items: center;
transition: background-color 0.3s ease;
}
.action-btn:hover {
cursor: pointer;
}
.download {
background-color: #27ae60;
}
.download:hover {
background-color: #2ecc71;
}
.delete {
background-color: #e74c3c;
}
.delete:hover {
background-color: #c0392b;
}