/
blog.css
87 lines (76 loc) · 1.41 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
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
* {
margin: 0;
padding: 0;
}
/* container for blogs page */
.container{
display: flex;
justify-content: center;
padding: 80px;
}
/* card square */
.square{
width: 460px;
height: 430px;
background: white;
border-radius: 4px;
box-shadow: 0px 20px 50px #D9DBDF;
-webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
transition: all 0.3s ease;
}
.mask{
clip: rect(0px, 460px, 220px, 0px);
border-radius: 4px;
position: absolute;
}
/* card image */
img{
width: 460px;
}
/* card heading */
.h1{
margin: auto;
text-align: left;
margin-top: 240px;
padding-left: 30px;
font-family: 'Merriweather', serif;
font-size: 24px;
}
/* blog text */
p.blog-text{
text-align: justify;
padding-left: 30px;
padding-right: 30px;
font-family: 'Merriweather', sans-serif;
font-size: 12px;
color: #C8C8C8;
line-height: 18px;
}
/* blog button */
.button {
background-color: #3EDD84;
color: white;
width: 90px;
padding: 10px 18px;
border-radius: 3px;
text-align: center;
text-decoration: none;
display: block;
margin-top: 20px;
margin-left: 30px;
margin-right: 70px;
font-size: 12px;
cursor: pointer;
font-family: 'merriweather';
}
@import url('https://fonts.googleapis.com/css?family=Merriweather|Open+Sans');
/* responsive */
@media only screen and (max-width: 400px) {
img{
width: 240px;
}
.square{
height: 500px;
}
}