-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
173 lines (154 loc) · 3.43 KB
/
styles.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root{
--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%);
--Light-gray: hsl(0, 0%, 81%);
--Light-grayish-blue: hsl(210, 46%, 95%);
--Font-size: 13px;
}
body{
margin-top: 0;
padding: 0;
box-sizing: border-box;
font-family: "Barlow Semi Condensed", sans-serif;
background-color: var(--Light-grayish-blue);
color: var(--White);
}
.main{
width: 90%;
padding: 50px 10px;
display: grid;
margin: auto;
gap: 10px;
grid-template-columns: repeat(4, 1fr);
}
.testimonial{
padding: 30px 40px 10px 40px;
border-radius: 10px;
position: relative;
}
.profile-picture{
width: 35px;
margin-right: 15px;
border: 2px solid var(--Light-gray);
border-radius: 50%;
}
.person{
display: flex;
align-items: center;
z-index: -1;
}
.person h4{
margin: 0;
}
.person span{
font-size: var(--Font-size);
}
.text{
position: relative;
z-index: 1;
}
.text p{
font-size: 14px;
opacity: 50%;
font-weight: 500;
width: 100%;
line-height: 25px;
}
.testimonial h3{
font-size: 21px;
font-weight: 600;
margin-top: 12px;
}
.quotation{
position: absolute;
height: 109px;
top: 0;
left: 61%;
z-index: 0;
}
.testimonial-1{
background-color: var(--Moderate-violet);
grid-column: span 2;
}
.testimonial-2{
background-color: var(--Very-dark-grayish-blue);
}
.testimonial-3{
background-color: var(--White);
color: var(--Very-dark-grayish-blue);
}
.testimonial-4{
background-color: var(--Very-dark-blackish-blue);
grid-column: span 2;
}
.testimonial-5{
background-color: var(--White);
color: var(--Very-dark-grayish-blue);
grid-column: 4;
grid-row: 1 / 3;
}
@media (max-width: 1200px){
.main{
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.testimonial{
padding: 30px 20px 10px 20px;
}
.testimonial-1{
grid-column: span 2;
}
.testimonial-5{
background-color: var(--White);
color: var(--Very-dark-grayish-blue);
grid-row: 3;
grid-column: 1 / 4;
}
}
/* Mobile Styles */
@media(max-width: 855px) {
.main {
max-width: 600px;
padding: 20px 10px;
grid-template-columns: 1fr;
gap: 15px;
}
.testimonial {
padding: 25px 20px;
grid-column: 1 ;
grid-row: auto;
}
.text p {
font-size: 13px;
line-height: 22px;
}
.person {
margin-bottom: 5px;
}
}
/* Small Mobile Styles */
@media (max-width: 375px) {
.main {
min-width: 340px;
padding: 15px 5px;
grid-template-columns: 1fr;
padding: 15px 5px;
}
.testimonial {
min-width: 262px;
padding: 30px 40px 10px 40px;
padding: 25px 15px;
grid-column: auto;
grid-row: auto;
}
.testimonial h3 {
font-size: 20px;
}
.quotation {
height: 110px;
left: 60%;
}
}