forked from Shopify/dawn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent-image-with-text.css
131 lines (106 loc) · 2.32 KB
/
component-image-with-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
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
.image-with-text {
margin-top: 5rem;
}
.image-with-text:not(.color-scheme-background-1) {
margin-bottom: 5rem;
}
@media screen and (min-width: 750px) {
.image-with-text {
margin-bottom: 5rem;
}
}
.image-with-text .grid {
margin-left: 0;
margin-bottom: 0;
}
.image-with-text__grid {
overflow: hidden;
}
@media screen and (min-width: 750px) {
.image-with-text__grid--reverse {
flex-direction: row-reverse;
}
}
.image-with-text__media {
background-color: transparent;
min-height: 100%;
}
.image-with-text__media--small {
height: 19.4rem;
}
.image-with-text__media--large {
height: 43.5rem;
}
@media screen and (min-width: 750px) {
.image-with-text__media--small {
height: 31.4rem;
}
.image-with-text__media--large {
height: 69.5rem;
}
}
.image-with-text__media--placeholder {
background-color: rgba(var(--color-foreground), 0.04);
position: relative;
overflow: hidden;
}
.image-with-text__media--placeholder.image-with-text__media--adapt {
height: 20rem;
}
@media screen and (min-width: 750px) {
.image-with-text__media--placeholder.image-with-text__media--adapt {
height: 30rem;
}
}
.image-with-text__media--placeholder > svg {
position: absolute;
left: 50%;
max-width: 80rem;
top: 50%;
transform: translate(-50%, -50%);
width: 100%;
fill: currentColor;
}
.image-with-text__content {
display: flex;
flex-direction: column;
align-items: flex-start;
height: 100%;
justify-content: center;
padding: 4rem 4rem 5rem;
}
@media screen and (min-width: 750px) {
.image-with-text__grid--reverse .image-with-text__content {
margin-left: auto;
}
}
@media screen and (min-width: 990px) {
.image-with-text__content {
padding: 6rem 7rem 7rem;
}
}
.image-with-text__content > * + * {
margin-top: 2rem;
}
.image-with-text__content > .image-with-text__text:empty ~ a {
margin-top: 2rem;
}
.image-with-text__content > :first-child:is(.image-with-text__heading) {
margin-top: 0;
}
.image-with-text__content :last-child:is(.image-with-text__heading) {
margin-bottom: 0;
}
.image-with-text__content .button + .image-with-text__text {
margin-top: 2rem;
}
.image-with-text__content .image-with-text__text + .button {
margin-top: 3rem;
}
.image-with-text__heading {
margin-bottom: 0;
}
.image-with-text__text p {
margin-top: 0;
margin-bottom: 1rem;
}