-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
79 lines (66 loc) · 1.36 KB
/
styles.css
File metadata and controls
79 lines (66 loc) · 1.36 KB
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
/* 1rem = 10px */
}
body {
font-family: 'Times New Roman', Times, serif;
background-color: lightgray;
}
.main-container {
margin: 0 auto;
max-width: 1200px;
width: 90%;
}
.reviews-grid {
display: grid;
grid-template-columns: 1fr 1fr;
max-width: 1200px;
gap: 2rem;
margin: 10rem auto ;
justify-content: center;
align-content: center;
}
.review-card {
background-color: white;
padding: 2rem;
border: 1px solid darkgray;
border-radius: 8px;
}
.review-heading {
font-size: 4rem;
font-weight: 700;
margin-bottom: 2rem;
}
.review-text {
font-size: 2rem;
font-weight: 400;
margin-bottom: 1rem;
}
.review-person {
font-size: 1.8rem;
font-weight: 700;
}
@media (max-width: 62.5rem) { /* 1000px (1000/16px = 62.5rem)since it is not taking 10px html set but the browser default set.*/
html {
font-size: 50%; /* 1rem = 8px */
}
.review-card {
padding: 3rem;
}
}
@media (max-width: 31.25rem) { /* 500px (500/16px = 31.25rem) */
html {
font-size: 37.5%;
}
.review-card {
padding: 4rem;
}
.reviews-grid {
grid-template-columns: 1fr;
}
}