-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
74 lines (64 loc) · 1.09 KB
/
style.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
@import './basicStyle.css';
.main-menu-title {
color: var(--light);
display: flex;
justify-content: center;
box-sizing: border-box;
width: 600px;
margin: 40px auto;
letter-spacing: 4px;
}
.project .title {
text-decoration: none;
color: var(--dark);
text-align: center;
pointer-events: none;
letter-spacing: 4px;
}
main {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
max-width: 1500px;
margin: 20px auto;
}
.project {
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
width: 280px;
height: 280px;
background-color: var(--light);
margin-bottom: 30px;
}
.thumb {
position: absolute;
top: 0;
transform: translateY(300px);
transition: transform 0.5s ease;
}
.thumb img {
width: 100%;
height: 100%;
}
.project:hover .thumb {
transform: translateY(0);
transition: transform 0.5s ease;
}
@media (max-width: 1500px) {
main {
width: 1200px;
}
}
@media (max-width: 1200px) {
main {
width: 900px;
}
}
@media (max-width: 1000px) {
main {
width: 600px;
}
}