-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathstyle.scss
76 lines (66 loc) · 1.61 KB
/
style.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
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
.blocks-embed,
.blocks-embed-video {
margin: 0;
clear: both; // necessary because we use responsive trickery to set width/height, and therefore the video doesn't intrinsically clear floats like an img does
&.is-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1em;
min-height: 200px;
text-align: center;
background: $light-gray-100;
p {
font-family: $default-font;
font-size: $default-font-size;
}
}
}
.blocks-embed-video > div:first-child {
position: relative;
width: 100%;
height: 0;
padding-bottom: 56.25%; /* 16:9 */
}
.blocks-embed-video > div > iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
div[data-type="core/embed"] {
&[data-align="left"],
&[data-align="right"] {
// Without z-index, won't be clickable as "above" adjacent content
z-index: z-index( '.editor-visual-editor__block {core/image aligned left or right}' );
width: 370px;
}
&[data-align="left"] {
float: left;
margin-right: $block-padding;
}
&[data-align="right"] {
float: right;
margin-left: $block-padding;
}
&[data-align="wide"] {
padding-left: 0;
padding-right: 0;
margin-right: -#{ $block-padding + $block-mover-margin }; /* Compensate for .editor-visual-editor centering padding */
&:before {
left: 0;
border-left-width: 0;
border-right-width: 0;
}
.editor-block-mover {
display: none;
}
.editor-visual-editor__block-controls {
max-width: #{ $visual-editor-max-width - $block-padding - ( $block-padding * 2 + $block-mover-margin ) };
margin-left: auto;
margin-right: auto;
}
}
}