forked from Automattic/_s
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia-text.scss
49 lines (41 loc) · 1.09 KB
/
media-text.scss
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
@use "../abstracts" as *;
.wp-block-media-text {
margin-block-start: $space-9;
clear: both;
&.alignfull + :not(.alignfull) {
margin-block-start: $space-9 !important;
}
}
.wp-block-media-text__content {
@include flow;
}
/* No outer padding by default*/
.wp-block-media-text .wp-block-media-text__content {
padding: 0;
padding-block-start: $space-8;
}
@include mq($bp--blocks) {
.wp-block-media-text .wp-block-media-text__content {
padding-block-start: 0;
padding-inline-start: $space-8;
padding-inline-end: 0;
}
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
padding-block-start: 0;
padding-inline-start: 0;
padding-inline-end: $space-8;
}
}
/* Restore padding for background or no-background fullwidth */
.is-root-container
> .wp-block-media-text.has-background
> .wp-block-media-text__content,
.is-root-container
> .wp-block-media-text.alignfull
> .wp-block-media-text__content {
padding: $space-8;
}
/* Taller min-height than default styles when cropped image */
.wp-block-media-text.is-image-fill .wp-block-media-text__media {
min-height: 21rem;
}