-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle2.css
102 lines (101 loc) · 1.66 KB
/
style2.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
*{
padding: 0;
margin: 0;
}
body{
background-color: #f2f2f2;
}
.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;
color: #000;
margin-bottom: 25px;
position: relative;
}
.heading h1::after{
content: "";
position: absolute;
width: 100%;
height: 4px;
display: block;
margin: 0 auto;
background-color: #4caf50;
}
.heading p{
font-size: 18px;
color: #666;
margin-bottom: 35px;
}
.contained{
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: 40px;
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: 15px;
color: #333;
}
.about-content p{
font-size: 18px;
line-height: 1.5;
color: #666;
}
@media screen and (max-width: 768px){
.heading{
padding: 0px 20px;
}
.heading h1{
font-size: 36px;
}
.heading p{
font-size: 17px;
margin-bottom: 0px;
}
.contained{
padding: 0px;
}
.about{
padding: 20px;
flex-direction: column;
}
.about-image{
margin-right: 0px;
margin-bottom: 20px;
}
.about-content p{
padding: 0px;
font-size: 16px;
}
}