-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathfigma.css
104 lines (90 loc) · 1.45 KB
/
figma.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
/* css reset */
*,
*::before,
*::after {
box-sizing: border-box;
font-family: 'Lato', sans-serif;
}
* {
margin: 0;
}
body {
line-height: 1.5; /** 150% of font-size **/
-webkit-font-smoothing: antialiased;
}
/* replaced element */
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/* main css */
h2 {
line-height: 1.2;
}
p {
margin-block-end: 16px;
font-size: 1.25rem;
}
strong {
color: hsl(160, 100%, 30%)
}
section.top {
margin: 0 auto;
max-width: 800px;
padding-inline: 24px;
padding-block-end: 64px;
> h2 {
padding-block-start: 96px;
padding-block-end: 48px;
font-size: 2rem;
}
> p {
max-width: 415px
}
}
section.bottom {
background-color: hsla(0, 0%, 40%, 1);
border-top: 8px solid hsla(0, 0%, 60%, 1);
padding-block-start: 72px;
padding-block-end: 60px;
> h2 {
}
}
.card {
margin: 0 auto;
max-width: 800px;
background-color: hsla(0, 0%, 100%, 1);
padding-inline: 24px;
padding-block-end: 24px;
border-bottom: 6px solid hsla(0, 0%, 60%, 1);
padding-block-start: 8px;
> h2 {
/* width: max-content; */
background-color: hsla(45, 100%, 50%, 1);
padding-inline: 32px;
padding-block-start: 16px;
padding-block-end: 15px;
margin-inline-start: -32px;
border-bottom: 8px solid hsla(45, 100%, 40%, 1);
margin-block-end: 16px;
}
}