forked from CoderSaty/FirstProjects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.css
62 lines (51 loc) · 1.08 KB
/
blog.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
.section{
display: flex;
justify-content: center;
align-items: center;
flex-direction: row;
position: relative;
}
.container{
background-color: #e0e0e0;
width: 40%;
padding: 2rem;
margin: 1.4rem 1rem;
border-radius: 20px;
height: 13.4rem;
transition-duration: 0.4s;
border: 3px solid var(--primary-color);
}
.container:hover{
box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}
.project-heading{
text-align: center;
transform: translateY(-10px);
}
.project-links{
width: fit-content;
margin: auto;
}
@media screen and (max-width: 768px){
.section{
display: grid;
position: relative;
margin: 2rem 0;
padding: 1.4rem!important;
}
.container{
display: block;
width: auto;
height: 100%;
margin: 15px 15px;
padding: 20px;
}
.project-links a{
padding: 7.5px;
transform: translateX(-200%);
border-radius: 10px;
}
.project-heading{
transform: translateY(12%);
}
}