-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy patheditor.scss
More file actions
71 lines (60 loc) · 1.41 KB
/
editor.scss
File metadata and controls
71 lines (60 loc) · 1.41 KB
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
[data-type="stackable/map"] {
// Fixes Google Map displaying blank on the editor due to display flex applied
// on [data^=stackable/].
// display: block !important;
// Move resizer down a bit.
.stk-resizer-tooltip {
top: calc(50% + 40px);
}
iframe {
height: 100% !important;
width: 100%;
}
// Clicking on the map doesn't select the block.
.stk-block-map__canvas,
iframe {
pointer-events: none;
}
}
// This fixes first time height handler dragging.
.stk-block-map {
height: auto;
box-sizing: content-box;
}
.components-panel__body:not(.stk--uses-api-key) .stk--needs-api-key {
opacity: 0.3;
pointer-events: none;
}
.components-panel__body.stk--needs-api-key:not(.stk--uses-api-key) {
.editor-panel-toggle-settings__panel-title {
opacity: 0.3;
pointer-events: none;
}
}
.stk-control__location-control {
display: flex;
.stk-control__reset-button {
position: static;
margin-top: 2px;
margin-left: 4px;
margin-right: 2px;
}
.components-text-control__input {
width: 224px;
}
}
.stk-block-map__api-key-notice {
margin: 0 0 16px;
}
// Hide Google API errors that show up in the LocationControl dropdown when an
// API is not available from the provided API Key.
.pac-container > :not(.pac-item) {
display: none !important;
}
// When inside a row block.
.editor-styles-wrapper [data-type="core/group"] > [data-type="stackable/map"] {
.stk-block-map__canvas,
iframe {
width: 400px;
}
}