-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
100 lines (82 loc) · 1.85 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
/* =======GOOGLE FONTS======= */
@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&family=Lexend+Deca&family=Montserrat:wght@400;500;600&display=swap");
/* =======CSS VARIABLES======= */
/* =======Colors (hsl)======= */
:root {
--bright-orange: hsl(31, 77%, 52%);
--dark-cyan: hsl(184, 100%, 22%);
--very-dark-cyan: hsl(179, 100%, 13%);
--transparent-white: hsla(0, 0%, 100%, 0.75);
--very-light-gray: hsl(0, 0%, 95%);
}
/* ======= BODY ======= */
body {
font-family: "Lexend Deca", sans-serif;
}
/* ======= MAIN ======= */
.grid-container {
display: grid;
grid: 1fr 1fr 1fr / 1fr;
max-width: 315px;
margin: 10rem auto;
color: var(--very-light-gray);
}
.box {
padding: 2rem;
min-height: 450px;
position: relative;
}
.article__header {
font-family: "Big Shoulders Display", cursive;
text-transform: uppercase;
padding: 1rem 0;
}
.article__para {
color: var(--transparent-white);
line-height: 1.8rem;
}
.article__btn {
border: none;
background-color: var(--very-light-gray);
border-radius: 2rem;
padding: 0.8rem 2rem;
margin: 1rem 0;
position: absolute;
bottom: 1rem;
}
.sedans_btn {
color: var(--bright-orange);
}
.suv_btn {
color: var(--dark-cyan);
}
.luxury_btn {
color: var(--very-dark-cyan);
}
.sedans {
background-color: var(--bright-orange);
border-radius: 1rem 1rem 0 0;
}
.suv {
background-color: var(--dark-cyan);
}
.luxury {
background-color: var(--very-dark-cyan);
border-radius: 0 0 1rem 1rem;
}
@media screen and (min-width: 704px) {
.grid-container {
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr;
min-width: 680px;
max-width: 870px;
}
.sedans {
background-color: var(--bright-orange);
border-radius: 1rem 0 0 1rem;
}
.luxury {
background-color: var(--very-dark-cyan);
border-radius: 0 1rem 1rem 0;
}
}