-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
102 lines (98 loc) · 1.83 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
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
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700');
body{
margin: 0;
padding: 0;
font-family: 'Montserrat', sans-serif;
}
a{
transition: all .5s;
text-decoration: none;
color: #fff;
}
img{
width: 100%;
transition: all .5s;
}
.container{
max-width: 1200px;
width: 100%;
margin: 0 auto;
}
main{
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 30px;
margin: 30px 15px 0px 15px;
}
header{
width: 70%;
margin: 0 auto;
}
header h1{
margin: 0;
font-size: 50px;
color: rgba(52, 73, 94,1.0);
font-weight: 500;
}
.singleBlog{
position: relative;
overflow: hidden;
max-height: 580px;
height: 100%;
box-sizing: border-box;
box-shadow: 0 2px 10px #ccc;
transition: all .5s;
}
.singleBlog:hover{
box-shadow: 0 2px 13px #ccc;
transition: all .5s;
}
.singleBlog:hover img{
transform: scale(1.1);
transition: all .4s;
}
.blogContent{
position: absolute;
left: 0;
bottom: -45px;
width: 100%;
color: #fff;
padding: 10px 5px;
background: linear-gradient(45deg, rgba(21,82,153,1) 0%,rgba(144,192,229,.4) 100%);
transition: all .5s;
}
.singleBlog:hover .blogContent{
bottom: 0;
transition: all .5s;
}
.blogContent h3{
font-size: 20px;
font-weight: 500;
margin: 0;
}
.blogContent h3 span{
display: block;
font-size: 60%;
margin-top: 5px;
font-weight: 600;
color: rgba(52, 73, 94,1.0)
}
.blogContent a{
font-size: 14px;
font-weight: 500;
}
.blogContent .btn{
display: inline-block;
padding: 5px 10px;
border: 1px solid #fff;
border-radius: 3px;
font-weight: 400;
}
.blogContent .btn:hover{
background: rgba(52, 152, 219,1.0);
transition: all .5s;
text-decoration: none;
}
.blogContent a:hover{
text-decoration: underline;
}