-
Notifications
You must be signed in to change notification settings - Fork 4k
/
editor.scss
70 lines (57 loc) · 1.32 KB
/
editor.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
.editor-block-list__block[data-type="core/button"] {
&[data-align="center"] {
text-align: center;
}
&[data-align="right"] {
/*!rtl:ignore*/
text-align: right;
}
}
.wp-block-button {
display: inline-block;
margin-bottom: 0;
position: relative;
.editor-rich-text__tinymce {
cursor: text;
line-height: 1;
}
&:not(.has-text-color) .editor-rich-text__tinymce[data-is-placeholder-visible="true"] + .editor-rich-text__tinymce {
color: $white;
opacity: 0.8;
}
}
.block-library-button__inline-link {
background: $white;
display: flex;
flex-wrap: wrap;
align-items: center;
font-family: $default-font;
font-size: $default-font-size;
line-height: $default-line-height;
$blocks-button__link-input-width: 280px;
width: $blocks-button__link-input-width;
.editor-url-input {
width: auto;
}
.editor-url-input__suggestions {
width: $blocks-button__link-input-width - $icon-button-size - $icon-button-size;
z-index: z-index(".block-library-button__inline-link .editor-url-input__suggestions");
}
> .dashicon {
width: $icon-button-size;
}
.dashicon {
color: $dark-gray-100;
}
.editor-url-input input[type="text"]::placeholder {
color: $dark-gray-100;
}
[data-align="center"] & {
margin-left: auto;
margin-right: auto;
}
[data-align="right"] & {
margin-left: auto;
margin-right: 0;
}
}