Skip to content

Commit f25a4df

Browse files
authored
Update style.css
1 parent ec021c9 commit f25a4df

File tree

1 file changed

+19
-72
lines changed

1 file changed

+19
-72
lines changed

web-gallery/style.css

Lines changed: 19 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
1+
/* Global Reset */
12
html {
23
box-sizing: border-box;
34
background: yellow;
45
font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
56
font-size: 20px;
67
font-weight: 200;
7-
}
8-
*,
9-
*:before,
10-
*:after {
8+
}
9+
10+
*,
11+
*:before,
12+
*:after {
1113
box-sizing: inherit;
12-
}
13-
body {
14+
}
15+
16+
/* Body Reset */
17+
body {
1418
margin: 0;
15-
}
16-
.photos {
19+
}
20+
21+
/* Container for Photos */
22+
.photos {
1723
min-height: 100vh;
1824
overflow: hidden;
1925
display: flex;
20-
}
21-
.photo {
26+
}
27+
28+
/* Individual Photo Styling */
29+
.photo {
2230
color: rgb(8, 3, 75);
2331
background: #6b0f9c;
2432
box-shadow: inset 0 0 0 5px rgba(12, 21, 105, 0.1);
@@ -28,67 +36,6 @@ html {
2836
font-size: 20px;
2937
background-size: cover;
3038
background-position: center;
31-
flex: 1;
3239
justify-content: center;
3340
display: flex;
34-
flex-direction: column;
35-
transition: font-size 0.7s cubic-bezier(0.61, -0.19, 0.7, -0.11),
36-
flex 0.7s cubic-bezier(0.61, -0.19, 0.7, -0.11), background 0.2s;
37-
}
38-
.neha {
39-
background-image: url("./img/neha.jpg");
40-
}
41-
.nishat {
42-
background-image: url("./img/tat.jpg");
43-
}
44-
.mahee {
45-
background-image: url("./img/khatai.jpg");
46-
}
47-
.nura {
48-
background-image: url("./img/nams.jpg");
49-
}
50-
.nedu {
51-
background-image: url("./img/nedu.jpg");
52-
}
53-
54-
.photo > * {
55-
margin: 0;
56-
width: 100%;
57-
transition: transform 0.5s;
58-
flex: 1 0 auto;
59-
display: flex;
60-
justify-content: center;
61-
align-items: center;
62-
}
63-
64-
.photo > *:first-child {
65-
transform: translateY(-100%);
66-
}
67-
.photo.open-active > *:first-child {
68-
transform: translateY(0);
69-
}
70-
.photo > *:last-child {
71-
transform: translateY(100%);
72-
}
73-
.photo.open-active > *:last-child {
74-
transform: translateY(0);
75-
}
76-
77-
.photo p {
78-
font-family: 'Pacifico', cursive;
79-
text-shadow: 0 0 4px rgb(54 211 38 / 72%), 0 0 14px rgb(231 20 109 / 75%);
80-
font-size: 2em;
81-
}
82-
.photo p:nth-child(2) {
83-
font-size: 3em;
84-
}
85-
86-
.photo.open-active > *:nth-child(2) {
87-
display: none;
88-
}
89-
90-
.photo.open {
91-
flex: 5;
92-
font-size: 40px;
93-
}
94-
41+
flex-direction

0 commit comments

Comments
 (0)