-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
103 lines (101 loc) · 2.35 KB
/
style.css
File metadata and controls
103 lines (101 loc) · 2.35 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
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
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Playfair+Display:ital,wght@1,500&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}
.container {
height: 100vh;
width: 100%;
background-color: #F9F9F9;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 20px;
}
.container h1 {
font-family: "Dancing Script", cursive;
font-weight: 700;
letter-spacing: 0.2rem;
}
.container .gallery {
display: flex;
justify-content: center;
align-items: center;
}
.container .gallery .img-box {
width: 80px;
height: 500px;
margin: 5px;
border: 0.5px solid lightgray;
border-radius: 50px;
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
background: url(img11.jpg);
background-position: center;
background-size: cover;
cursor: pointer;
position: relative;
transition: width 0.4s;
}
.container .gallery .img-box h2 {
font-family: "Playfair Display", serif;
letter-spacing: 0.2rem;
font-weight: 500;
opacity: 0;
position: absolute;
bottom: 0;
left: 10%;
width: 100%;
background-color: rgba(238, 247, 255, 0.5882352941);
padding: 2% 5%;
border-radius: 8px 0 0 8px;
transition: bottom 0.4s, opacity;
}
.container .gallery .img-box:nth-child(2) {
background: url(img2.jpg);
background-position: center;
background-size: cover;
}
.container .gallery .img-box:nth-child(3) {
background: url(img3.jpg);
background-position: center;
background-size: cover;
}
.container .gallery .img-box:nth-child(4) {
background: url(img4.jpg);
background-position: center;
background-size: cover;
}
.container .gallery .img-box:hover {
width: 300px;
}
.container .gallery .img-box:hover h2 {
opacity: 1;
bottom: 10%;
}
@media screen and (max-width: 600px) {
.img-box {
height: 300px;
}
.img-box:hover {
width: 220px !important;
}
}
@media screen and (max-width: 450px) {
h1 {
font-size: 1.2rem !important;
}
h2 {
font-size: 0.9rem !important;
}
.img-box {
width: 50px !important;
height: 200px !important;
border-radius: 20px !important;
}
.img-box:hover {
width: 110px !important;
}
}/*# sourceMappingURL=style.css.map */