-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
189 lines (157 loc) · 3.35 KB
/
styles.css
File metadata and controls
189 lines (157 loc) · 3.35 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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
:root {
--clr-white: hsl(0, 0, 100%);
--clr-slate-300: hsl(212, 45%, 89%);
--clr-slate-500: hsl(216, 15%, 48%);
--clr-slate-900: hsl(218, 44%, 22%);
--fs-normal: 0.938rem;
--ff-outfit: "Outfit", sans-serif;
--fw-normal: 400;
--fw-bold: 700;
--shadow-color: 199deg 10% 66%;
--shadow-elevation: 0px 1px 1.3px hsl(var(--shadow-color) / 0.23),
0px 2.8px 3.5px -0.8px hsl(var(--shadow-color) / 0.23),
0px 6.7px 8.4px -1.7px hsl(var(--shadow-color) / 0.23),
0px 16px 20px -2.5px hsl(var(--shadow-color) / 0.23);
--shadow-elevation-hover: 0px 1px 0.65px hsl(var(--shadow-color) / 0.23),
0px 2.8px 3.5px -0.4px hsl(var(--shadow-color) / 0.23),
0px 6.7px 8.4px -0.8px hsl(var(--shadow-color) / 0.23),
0px 16px 20px -1.25px hsl(var(--shadow-color) / 0.23);
}
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Prevent font size inflation */
html {
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
margin-block-end: 0;
}
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
list-style: none;
}
/* Set core body defaults */
body {
min-height: 100vh;
line-height: 1.5;
}
/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
line-height: 1.1;
}
/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
text-wrap: balance;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
color: currentColor;
}
/* Make images easier to work with */
img,
picture {
max-width: 100%;
display: block;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font-family: inherit;
font-size: inherit;
}
/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
min-height: 10em;
}
/* Anything that has been anchored to should have extra scroll margin */
:target {
scroll-margin-block: 5ex;
}
/* utilities */
.flex-row {
display: flex;
justify-content: center;
align-items: center;
}
.flex-col {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
/* general styling */
body {
background-color: var(--clr-slate-300);
font-size: var(--fs-normal);
font-weight: var(--fw-normal);
font-family: var(--ff-outfit);
}
/* animations */
.card {
will-change: transform;
transition: transform 850ms;
}
.card-wrapper:hover .card {
transition: transform 500ms;
transform: translateY(-10px);
box-shadow: var(--shadow-elevation-hover);
}
/* card styling */
.card {
background-color: white;
max-width: calc(310rem / 16);
padding: calc(16rem / 16) calc(16rem / 16) calc(22rem / 16);
border-radius: 17px;
box-shadow: var(--shadow-elevation);
}
.card__img-wrapper {
max-width: calc(279rem / 16);
min-height: calc(279rem / 16);
}
.card__img {
border-radius: 10px;
}
.card__content {
text-align: center;
padding: calc(10rem / 16);
color: var(--clr-slate-500);
}
h1 {
font-weight: var(--fw-bold);
color: var(--clr-slate-900);
}
@media (prefers-reduced-motion: reduce) {
.card-wrapper:hover,
.card {
transition: none;
}
}