-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
160 lines (136 loc) · 2.6 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
/* Root */
:root {
--clr-accent-500: hsl(263, 55%, 52%);
--clr-accent-200: hsl(264, 82%, 70%);
--clr-primary-500: hsl(217, 19%, 35%);
--clr-secondary-500: hsl(219, 29%, 14%);
--clr-neutral-500: hsl(0, 0%, 81%);
--clr-neutral-200: hsl(210, 46%, 95%);
--clr-neutral-100: hsl(0, 0%, 100%);
}
/* Reset */
*,
*:before,
*:after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* General Styles */
body {
font-family: 'Barlow Semi Condensed', sans-serif;
font-size: 0.8rem;
background-color: var(--clr-neutral-200);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem 0;
}
img {
max-width: 100%;
object-fit: contain;
}
/* Typography */
.text {
opacity: 70%;
}
.accent-text {
opacity: 100%;
font-size: 1.25rem;
font-weight: 600;
margin-bottom: 1rem;
}
.social-function {
opacity: 50%;
}
/* Classes */
.container {
width: min(100% - 2rem, 70rem);
margin-inline: auto;
}
.social-profile {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
}
.social-avatar {
border-radius: 50%;
width: 30px;
height: 30px;
}
/* Utilities */
.text-neutral-100 {
color: var(--clr-neutral-100);
}
.text-primary-500 {
color: var(--clr-primary-500);
}
.text-neutral-200 {
color: var(--clr-neutral-200);
}
/* Components */
article {
border-radius: 8px;
padding: 1.6rem 2rem 2rem;
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
0 8px 10px -6px rgb(0 0 0 / 0.1);
}
article.quote {
background-image: url('/images/bg-pattern-quotation.svg');
background-repeat: no-repeat;
background-position: top right 10%;
}
article:nth-child(1) {
background-color: var(--clr-accent-500);
grid-area: one;
}
article:nth-child(1) .social-avatar {
border: 3px solid var(--clr-accent-200);
}
article:nth-child(2) {
background-color: var(--clr-primary-500);
grid-area: two;
}
article:nth-child(3) {
background-color: var(--clr-neutral-100);
grid-area: three;
}
article:nth-child(4) {
background-color: var(--clr-secondary-500);
grid-area: four;
}
article:nth-child(4) .social-avatar {
border: 3px solid var(--clr-accent-500);
}
article:nth-child(5) {
background-color: var(--clr-neutral-100);
grid-area: five;
}
.testimonial {
display: grid;
gap: 1rem;
grid-auto-columns: 1fr;
grid-template-areas:
'one'
'two'
'three'
'four'
'five';
}
@media (min-width: 30rem) {
.testimonial {
grid-template-areas:
'one one'
'two five'
'three five'
'four four';
}
}
@media (min-width: 40rem) {
.testimonial {
grid-template-areas:
'one one two five'
'three four four five';
}
}