forked from Shopify/dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsection-rich-text.css
75 lines (61 loc) · 1.28 KB
/
section-rich-text.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
.rich-text {
margin: auto;
max-width: 110rem;
text-align: center;
/* 1.5rem margin on left & right */
width: calc(100% - 3rem);
}
.rich-text.rich-text--full-width {
max-width: initial;
width: 100%;
}
.rich-text__blocks {
margin: auto;
/* 2.5rem margin on left & right */
width: calc(100% - 5rem);
}
.rich-text__blocks * {
overflow-wrap: break-word;
}
.rich-text--full-width .rich-text__blocks {
/* 4rem (1.5rem + 2.5rem) margin on left & right */
width: calc(100% - 8rem);
}
.rich-text:not(.rich-text--full-width),
.rich-text--full-width.color-background-1 {
margin-top: 5rem;
margin-bottom: 5rem;
}
.rich-text:not(.color-background-1) {
padding-top: 5rem;
padding-bottom: 5rem;
}
@media screen and (min-width: 750px) {
.rich-text {
/* 5rem margin on left & right */
width: calc(100% - 10rem);
}
.rich-text__blocks {
max-width: 50rem;
}
.rich-text--full-width .rich-text__blocks {
/* 7.5rem (5rem + 2.5rem) margin on left & right */
width: calc(100% - 15rem);
}
}
@media screen and (min-width: 990px) {
.rich-text__blocks {
max-width: 78rem;
}
}
/* Blocks */
.rich-text__blocks > * {
margin-top: 0;
margin-bottom: 0;
}
.rich-text__blocks > * + * {
margin-top: 2rem;
}
.rich-text__blocks > * + a {
margin-top: 3rem;
}