-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.css
133 lines (110 loc) · 2.37 KB
/
project.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
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
.project {
padding: 100px;
}
.project-heading {
padding: 10px 40px;
margin-bottom: 4em;
background-color: #13AC81;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
}
.project-heading img {
width: 150px;
height: 150px;
border-radius: 50%;
}
.project-heading h2 {
font-size: 3rem;
color: white;
margin-right: 1.5em;
}
.project-item-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 20px;
}
.project-item {
background-color: rgb(252, 252, 252);
border: 2px solid rgb(251, 252, 253);
border-radius: 20px;
padding: 20px;
overflow: hidden;
transition: .3s;
}
.project-item p {
color: #13AC81;
font-size: 1.2rem;
}
.project-item h1 {
font-size: 2.5rem;
}
.project-item img {
width: 100%;
margin-top: 30px;
border-radius: 20px;
transform: rotate(10deg) translateY(70px);
transition: all 1s;
}
/* project item hover effect */
.project-item:hover {
border: 2px solid #13AC81;
}
.project-item:hover img{
width: 100%;
margin-top: 30px;
border-radius: 20px;
transform: rotate(0deg) translateY(0);
}
@media screen and (max-width: 980px) and (min-width: 200px) {
.project {
padding: 10px;
}
.project-heading {
padding: 5px 20px;
margin-bottom: 4em;
background-color: #13AC81;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
}
.project-heading img {
width: 100px;
height: 100px;
border-radius: 50%;
}
.project-heading h2 {
font-size: 2.5rem;
color: white;
margin-right: 1em;
}
.project-item-container {
display: grid;
grid-template-columns: 1fr;
grid-gap: 30px;
}
.project-item {
background-color: rgb(252, 252, 252);
border: 2px solid rgb(251, 252, 253);
border-radius: 20px;
padding: 20px;
overflow: hidden;
transition: all 1s;
}
.project-item p {
color: #13AC81;
font-size: 1.5rem;
}
.project-item h1 {
font-size: 2.5rem;
}
.project-item img {
width: 100%;
margin-top: 30px;
border-radius: 20px;
transform: rotate(10deg) translateY(70px);
transition: all 1s;
}
}