-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
138 lines (135 loc) · 3.07 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
126
127
128
129
130
131
132
133
134
135
136
137
138
:root{
/* Colors * /
/* Primary */
--moderate-violet: hsl(263, 55%, 52%);
--very-dark-grayish-blue: hsl(217, 19%, 35%);
--very-dark-blackish-blue: hsl(219, 29%, 14%);
--white: hsl(0, 0%, 100%);
--black: hsl(0, 0%, 0%);
/* Neutral */
--light-gray: hsl(0, 0%, 81%);
--light-grayish-blue: hsl(210, 46%, 95%);
/* font */
--font-family: 'Barlow Semi Condensed', sans-serif;
}
*{
box-sizing: border-box;
margin: 0;
padding: 0;
font-size: 13px;
font-weight: 600;
}
body{
background-color: var(--light-grayish-blue);
font-family: var(--font-family);
min-height: 100vh;
display:flex ;
align-items: center;
justify-content: center;
}
.main{
display: flex;
flex-direction: column;
text-align: center;
margin: 70px 20px 70px 20px;
}
.testimonial{
padding: 30px 30px 25px 30px;
border-radius: 10px;
text-align: left;
box-shadow: 0px 10px 17px -2px rgba(215,226,238,1);
}
.first_testimonial_profile_text p, .second_testimonial_profile_text p, .fourth_testimonial_profile_text p{
opacity: 70%;
}
.text p{
color: var(--light-gray);
}
.testimonial p{
font-weight: 500;
font-size: 12px;
}
.description p{
opacity: 70%;
}
.first_testimonial,.second_testimonial,.third_testimonial,.fourth_testimonial{
margin-bottom: 20px;
}
.third_testimonial,.fifth_testimonial{
background-color: var(--white);
color: var(--black);
}
.third_testimonial ,.fifth_testimonial {
background-color: var(--white);
color: var(--black);
}
.first_testimonial,.second_testimonial,.fourth_testimonial{
color: var(--white);
}
.first_testimonial{
background:var(--moderate-violet) url("images/bg-pattern-quotation.svg") no-repeat top right;
}
.second_testimonial{
background-color: var(--very-dark-grayish-blue);
}
.fourth_testimonial{
background-color: var(--very-dark-blackish-blue);
}
.profile{
display: flex;
align-items: center;
margin-bottom: 15px;
}
.img img{
border-radius: 50%;
margin-right: 15px;
}
.first_testimonial_profile_img img{
border: 2px solid rgba(215,226,238,0.3);
}
.fourth_testimonial_profile_img img{
border: 2px solid var(--moderate-violet);
}
.description h2{
margin-bottom: 20px;
font-size: 20px;
}
@media screen and (min-width: 1100px){
.main{
display: grid;
justify-content: center;
gap: 25px 25px;
grid-template-columns: repeat(4,250px);
grid-template-areas:
"first first second fifth"
"third fourth fourth fifth"
;
}
.first_testimonial,.second_testimonial,.third_testimonial,.fourth_testimonial{
margin-bottom: 0;
}
.first_testimonial{
grid-area: first;
background-position: top right 21%;
}
.second_testimonial{
grid-area: second;
}
.third_testimonial{
grid-area: third;
flex-grow: 1;
}
.fourth_testimonial{
grid-area: fourth;
}
.fifth_testimonial{
grid-area: fifth;
flex-grow: 1;
}
.fifth_testimonial_description h2{
margin-bottom: 30px;
}
.fifth_testimonial_description p{
line-height: 17px;
}
}