forked from AlariCode/1-mini-flexbox-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
91 lines (78 loc) · 1.28 KB
/
index.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
* {
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
:root {
--primary: #0018ED;
--mainFont: #2D2E3A;
--greyFont: #696C74;
}
body {
font-family: 'Source Sans Pro', sans-serif;
color: var(--mainFont);
}
.card {
display: flex;
justify-content: space-between;
align-items: center;
padding: 32px;
border: 1px solid #D1D6E9;
border-radius: 12px;
max-width: 1440px;
margin: 0 auto;
flex-wrap: wrap;
gap: 20px;
}
.card__name {
display: flex;
align-items: center;
gap: 0 24px;
}
.card__title {
color: var(--mainFont);
font-weight: 600;
font-size: 24px;
line-height: 120%;
}
.card__school {
color: var(--greyFont);
font-weight: 400;
font-size: 20px;
line-height: 120%;
}
.card__stats {
display: flex;
gap: 0 24px;
}
.card__stat {
display: flex;
flex-direction: column;
gap: 8px;
}
.card__stat > div:first-child {
color: var(--greyFont);
font-weight: 400;
font-size: 20px;
line-height: 120%;
}
.card__stat>div:last-child {
font-weight: 600;
font-size: 20px;
line-height: 120%;
}
@media screen and (max-width: 600px) {
.card__stats {
flex-wrap: wrap;
row-gap: 20px;
flex: 1;
}
.card__stat {
flex: 0 1 calc(100% / 2 - 12px);
}
}
@media screen and (max-width: 360px) {
.card__stat {
flex: 0 1 100%;
}
}