-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
style.scss
80 lines (66 loc) · 1.88 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
80
// Hack to hide when the media modal is open
// Otherwise in Firefox the popover remains visible on top of the modal
// Changing the z-index of Popovers have wider implications.
.modal-open .block-editor-media-replace-flow__options {
display: none;
}
.block-editor-media-replace-flow__indicator {
margin-left: 4px;
}
.block-editor-media-flow__url-input {
margin-right: -$grid-unit-10;
margin-left: -$grid-unit-10;
padding: $grid-unit-20;
&.has-siblings {
border-top: $border-width solid $gray-900;
margin-top: $grid-unit-10;
padding-bottom: $grid-unit-10;
}
.block-editor-media-replace-flow__image-url-label {
display: block;
top: $grid-unit-20;
margin-bottom: $grid-unit-10;
}
.block-editor-link-control {
width: 300px; // Hardcoded width avoids resizing of control when switching between preview/edit.
.block-editor-url-input {
padding: 0; // Cancel unnecessary default 1px padding in this case.
margin: 0; // Reset default LinkControl margins.
}
.block-editor-link-control__search-item-title,
.block-editor-link-control__search-item-info {
max-width: 200px;
white-space: nowrap;
}
.block-editor-link-control__tools {
justify-content: flex-end;
padding: $grid-unit-20 var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus);
}
.block-editor-link-control__search-item.is-current {
width: auto;
padding: 0;
}
.block-editor-link-control__search-input.block-editor-link-control__search-input input[type="text"] {
margin: 0;
width: 100%;
}
.block-editor-link-control__search-actions {
padding: $grid-unit-10 0 0;
}
}
}
.block-editor-media-flow__error {
padding: 0 20px 20px 20px;
max-width: 255px;
.components-with-notices-ui {
max-width: 255px;
.components-notice__content {
overflow: hidden;
word-wrap: break-word;
}
.components-notice__dismiss {
position: absolute;
right: 10px;
}
}
}