-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
125 lines (122 loc) · 2.29 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Roboto';
}
body{
background-color: #f2f2f2;
overflow-x: hidden;
}
.heading{
width: 90%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
margin: 20px auto;
}
.heading h1{
font-size: 50px;
margin-bottom: 25px;
position: relative;
}
.heading h1::after{
content: "";
position: absolute;
width: 100%;
height: 4px;
display: block;
margin: 0 auto;
background-color: red;
}
.heading p{
font-size: 18px;
color: #666;
margin-bottom: 35px;
}
.container{
width: 90%;
margin: 0 auto;
padding: 10px 20px;
}
.about{
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
.about-image{
flex: 1;
margin-right: 30px;
overflow: hidden;
}
.about-image img{
max-width: 100%;
height: auto;
display: block;
transition: 0.5s ease;
}
.about-image:hover img{
transform: scale(1.2);
}
.about-content{
flex: 1;
}
.about-content h2{
font-size: 23px;
margin-bottom: 20px;
color: #333;
position: relative;
}
.about-content p{
font-size: 18px;
line-height: 1.5;
color: #666;
}
.about-content .read-more{
display: inline-block;
padding: 7px 20px;
background-color: red;
color: white;
font-size: 19px;
text-decoration: none;
border-radius: 5px;
margin-top: 10px;
transition: 0.3s ease;
}
.about-content .read-more:hover{
background-color: darkred;
}
@media screen and (max-width:768px){
.heading{
padding: 0px 20px;
}
.heading h1{
font-size: 36px;
}
.heading p{
font-size: 17px;
margin-bottom: 0;
}
.container{
padding: 0;
}
.about{
padding: 20px;
flex-direction: column;
}
.about-image{
margin-right: 0px;
margin-bottom: 20px;
}
.about-content p{
padding: 0;
font-size: 16px;
}
.about-content .read-more{
font-size: 16px;
}
}