/
style.scss
79 lines (67 loc) · 1.5 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
77
78
79
// The button element easily inherits styles that are meant for the editor style.
// These rules enhance the specificity to reduce that inheritance.
// This is duplicated in visual-editor.
.edit-site-block-editor__editor-styles-wrapper .components-button {
font-family: $default-font;
font-size: $default-font-size;
padding: 6px 12px;
&.is-tertiary,
&.has-icon {
padding: 6px;
}
}
.edit-site-visual-editor {
position: relative;
background-color: $gray-800;
// Centralize the editor horizontally (flex-direction is column).
align-items: center;
&.is-focus-mode {
padding: $grid-unit-60;
.edit-site-visual-editor__editor-canvas {
border-radius: $radius-block-ui;
}
}
}
.edit-site-visual-editor__back-button {
position: absolute;
top: $grid-unit-10;
left: $grid-unit-10;
color: $white;
&:active:not([aria-disabled="true"]),
&:focus:not([aria-disabled="true"]),
&:hover {
color: $gray-100;
}
}
.components-resizable-box__container {
margin: 0 auto;
}
.resizable-editor__drag-handle {
$height: 100px;
position: absolute;
top: 0;
bottom: 0;
padding: 0;
margin: auto 0;
width: $grid-unit-05;
height: $height;
appearance: none;
cursor: ew-resize;
outline: none;
background: $gray-600;
border-radius: 2px;
border: 0;
&.is-left {
left: -$grid-unit-20;
}
&.is-right {
right: -$grid-unit-20;
}
&:hover,
&:active {
background: $gray-400;
}
&:focus {
box-shadow: 0 0 0 1px $gray-800, 0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color);
}
}