forked from react/react-native-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.module.css
More file actions
74 lines (64 loc) · 1.29 KB
/
Copy pathstyles.module.css
File metadata and controls
74 lines (64 loc) · 1.29 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
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.cardContainer {
display: grid;
gap: 2rem;
margin: 2rem auto;
grid-template-columns: repeat(3, 1fr);
}
.card {
border: 1px solid var(--home-border);
border-radius: 12px;
overflow: hidden;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.03);
background-color: var(--home-background);
display: flex;
flex-direction: column;
}
.cardContent {
padding: 16px 24px;
}
.cardTitle {
margin-top: 10px;
margin-bottom: 5px;
font-size: 20px;
line-height: 140%;
}
.cardDescription {
margin-top: 0;
color: var(--home-secondary-text);
font-size: 16px;
line-height: 150%;
}
@media only screen and (max-width: 900px) {
.cardContainer {
display: flex;
flex-direction: column;
}
.card {
flex-direction: row;
text-align: start;
}
.cardImage {
width: auto;
height: 150px;
margin: 1rem;
border-radius: 0.5rem;
border: 1px solid var(--home-border);
}
}
@media only screen and (max-width: 650px) {
.card {
flex-direction: column;
text-align: center;
align-items: center;
}
.cardImage {
margin-bottom: 0;
max-width: calc(100% - 2rem);
}
}