Skip to content

Commit f1724c6

Browse files
committed
fix style bug
1 parent 991c8d6 commit f1724c6

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

assets/style.css

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ body {
2424

2525
a {
2626
text-decoration: none;
27-
color: #1b2127
28-
}
29-
30-
header {
31-
color: #f9fff6;
27+
color: #1b2127;
3228
}
3329

3430
a, path {
@@ -45,9 +41,11 @@ a, path {
4541
background: var(--bs-gray);
4642
}
4743

44+
/* -------- header -------- */
4845
header {
4946
display: flex;
5047
height: 100vh;
48+
color: #f9fff6;
5149
background-color: black;
5250
justify-content: center;
5351
align-items: center;
@@ -121,6 +119,12 @@ header h3 {
121119
bottom: 0;
122120
}
123121

122+
/* -------- main -------- */
123+
main {
124+
padding: 1.2rem;
125+
}
126+
127+
/* ------ title ------ */
124128
.categories-title {
125129
background: #f9fff6;
126130
z-index: 1;
@@ -138,20 +142,12 @@ header h3 {
138142
margin: 0 7px;
139143
}
140144

141-
.page a:hover div .lazy-image {
142-
143-
transform: scale(1.2) rotateZ(-5deg);
144-
}
145-
146-
.page a div {
145+
/* ---- image ---- */
146+
.page a .image {
147147
border-radius: 1.25rem;
148148
overflow: hidden;
149149
}
150150

151-
main {
152-
padding: 1.2rem;
153-
}
154-
155151
.lazy-image {
156152
height: 100%;
157153
width: 100%;
@@ -172,6 +168,11 @@ img.lazy-image.loaded {
172168
opacity: 1;
173169
}
174170

171+
.page a:hover .image .lazy-image {
172+
transform: scale(1.2) rotateZ(-5deg);
173+
}
174+
175+
/* ---- Attribute ---- */
175176
.attr_img {
176177
background: #dfdfdf;
177178
width: 60px;

0 commit comments

Comments
 (0)