PluginProbe
Tableberg – Simple Gutenberg Table Block / 1.1.5
Tableberg – Simple Gutenberg Table Block v1.1.5
1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 trunk 0.0.2 0.2.1 0.3.2 0.3.3 0.4.1 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 All 42 releases
tableberg / src / components / DynamicDataPanel / styles.scss

styles.scss in Tableberg – Simple Gutenberg Table Block 1.1.5, at src/components/DynamicDataPanel/styles.scss

176 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Dynamic Data Panel Styles
3 */
4
5 // Indicator for dynamically bound content in editor
6 .tableberg-dynamic-content {
7 position: relative;
8
9 &::after {
10 content: "";
11 position: absolute;
12 top: -2px;
13 right: -2px;
14 bottom: -2px;
15 left: -2px;
16 border: 1px dashed #007cba;
17 border-radius: 2px;
18 pointer-events: none;
19 }
20 }
21
22 .tableberg-dynamic-data-row {
23 border: 1px solid #ddd;
24 border-radius: 4px;
25 background: #fff;
26 margin-bottom: 12px;
27 overflow: hidden;
28
29 &:last-child {
30 margin-bottom: 0;
31 }
32
33 &__header {
34 display: flex;
35 justify-content: space-between;
36 align-items: center;
37 width: 100%;
38 padding: 10px 12px;
39 border: none;
40 background: none;
41 cursor: pointer;
42 text-align: left;
43 font-size: 13px;
44 line-height: 1.4;
45 color: #1e1e1e;
46 gap: 8px;
47 transition: background-color 0.1s;
48
49 &:hover {
50 background-color: #f0f0f0;
51 }
52 }
53
54 &__label {
55 font-weight: 600;
56 flex-shrink: 0;
57 }
58
59 &__summary {
60 color: #757575;
61 font-size: 12px;
62 font-family: monospace;
63 text-align: right;
64 word-break: break-all;
65 min-width: 0;
66 }
67
68 &__config {
69 background-color: #f6f7f7;
70 padding: 12px;
71 border-top: 1px solid #ddd;
72
73 .components-base-control {
74 margin-bottom: 12px;
75
76 &:last-of-type {
77 margin-bottom: 0;
78 }
79 }
80 }
81
82 &__preview {
83 margin-top: 12px;
84 padding: 8px;
85 background-color: #fff;
86 border: 1px solid #ddd;
87 border-radius: 3px;
88 font-size: 13px;
89
90 strong {
91 margin-right: 4px;
92 }
93
94 span {
95 word-break: break-all;
96 }
97 }
98
99 &__actions {
100 display: flex;
101 align-items: center;
102 gap: 8px;
103 margin-top: 12px;
104 }
105
106 &__field-autocomplete {
107 position: relative;
108 margin-bottom: 12px;
109 }
110
111 &__suggestions {
112 position: absolute;
113 z-index: 100;
114 left: 0;
115 right: 0;
116 max-height: 200px;
117 overflow-y: auto;
118 background: #fff;
119 border: 1px solid #949494;
120 border-top: none;
121 border-radius: 0 0 4px 4px;
122 box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
123 }
124
125 &__suggestions-group {
126 padding: 6px 10px 4px;
127 font-size: 11px;
128 font-weight: 600;
129 text-transform: uppercase;
130 color: #757575;
131 letter-spacing: 0.5px;
132 }
133
134 &__suggestion {
135 display: flex;
136 justify-content: space-between;
137 align-items: center;
138 width: 100%;
139 padding: 6px 10px;
140 border: none;
141 background: none;
142 cursor: pointer;
143 text-align: left;
144 font-size: 13px;
145 line-height: 1.4;
146 color: #1e1e1e;
147
148 &:hover,
149 &.is-selected {
150 background-color: #007cba;
151 color: #fff;
152
153 .tableberg-dynamic-data-row__suggestion-key {
154 color: rgba(255, 255, 255, 0.7);
155 }
156 }
157 }
158
159 &__suggestion-label {
160 flex: 1;
161 min-width: 0;
162 }
163
164 &__suggestion-key {
165 flex-shrink: 0;
166 margin-left: 8px;
167 font-size: 11px;
168 color: #757575;
169 font-family: monospace;
170 }
171 }
172
173 .tableberg-dynamic-data__add {
174 margin-top: 8px;
175 }
176