-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcollections_style.css
More file actions
204 lines (197 loc) · 3.67 KB
/
collections_style.css
File metadata and controls
204 lines (197 loc) · 3.67 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
::selection{
color: #fff;
background: #8395a7;
}
body{
padding: 10px;
background-color: #000000da;
}
.wrapper{
margin: 100px auto;
max-width: 1100px;
}
.wrapper nav{
display: flex;
justify-content: center;
}
.wrapper .items{
display: flex;
max-width: 720px;
width: 100%;
justify-content: space-between;
}
.items span {
padding: 7px 25px;
font-size: 18px;
font-weight: 500;
cursor: pointer;
color: #ffffff; /* Changed text color to white */
border-radius: 50px;
border: 2px solid #ffffff;
transition: all 0.3s ease;
text-decoration: none; /* Remove underline */
}
.items span.active,
.items span:hover{
color: #000000;
background: #91a3b6;
}
.gallery{
display: flex;
flex-wrap: wrap;
margin-top: 30px;
}
.gallery .image {
width: calc(100% / 4);
padding: 7px; /* Decreased padding to reduce space */
border-radius: 10%;
}
.gallery .image span{
display: flex;
width: 100%;
overflow: hidden;
}
.gallery .image img {
width: 80%; /* Ensures the image fills the container */
height: auto; /* Maintains aspect ratio */
vertical-align: middle;
transition: all 0.3s ease;
border-radius: 8%;
}
.gallery .image:hover img{
transform: scale(1.1);
}
.gallery .image.hide{
display: none;
}
.gallery .image.show{
animation: animate 0.4s ease;
}
@keyframes animate {
0%{
transform: scale(0.5);
}
100%{
transform: scale(1);
}
}
.preview-box{
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.9);
background: #ffffff;
max-width: 700px;
width: 100%;
z-index: 5;
opacity: 0;
pointer-events: none;
border-radius: 3px;
padding: 0 5px 5px 5px;
box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
}
.preview-box.show{
opacity: 1;
pointer-events: auto;
transform: translate(-50%, -50%) scale(1);
transition: all 0.3s ease;
}
.preview-box .details{
padding: 13px 15px 13px 10px;
display: flex;
align-items: center;
justify-content: space-between;
}
.details .title{
display: flex;
font-size: 18px;
font-weight: 400;
}
.details .title p{
font-weight: 500;
margin-left: 5px;
}
.details .icon{
color: #ffffff;
font-size: 22px;
cursor: pointer;
}
.preview-box .image-box{
width: 100%;
display: flex;
}
.image-box img{
width: 100%;
border-radius: 0 0 3px 3px;
}
.shadow{
position: fixed;
left: 0;
top: 0;
height: 100%;
width: 100%;
z-index: 2;
display: none;
background: rgba(0,0,0,0.4);
}
.shadow.show{
display: block;
}
@media (min-height: 1200px) {
.gallery .image {
width: calc(20% - 14px); /* Adjust the width and padding as needed */
/* Considering 7px padding on both left and right sides */
padding: 7px 2px;
}
}
@media (max-width: 1000px) {
.gallery .image{
width: calc(100% / 3);
}
}
@media (max-width: 800px) {
.gallery .image{
width: calc(100% / 2);
}
}
@media (max-width: 700px) {
.wrapper nav .items{
max-width: 600px;
}
nav .items span{
padding: 7px 15px;
}
}
@media (max-width: 600px) {
.wrapper{
margin: 30px auto;
}
.wrapper nav .items{
flex-wrap: wrap;
justify-content: center;
}
nav .items span{
margin: 5px;
}
.gallery .image{
width: 100%;
}
}
.category{
display: flex;
flex-wrap: wrap;
}
.category img{
height: 80%;
width:40%;
}
.floral-head{
display: block;
}