Skip to content

Commit 24fcaeb

Browse files
committed
fix(editor): place trait titles above form element
1 parent 451bebc commit 24fcaeb

File tree

1 file changed

+16
-153
lines changed

1 file changed

+16
-153
lines changed

packages/editor/src/index.scss

Lines changed: 16 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@
4444
width: 20%;
4545
}
4646
}
47+
48+
.gjs-trt-trait {
49+
display: block;
50+
.gjs-label {
51+
width: 100%;
52+
}
53+
.gjs-field {
54+
width: 100%;
55+
}
56+
}
57+
58+
.gjs-block {
59+
width: auto;
60+
height: auto;
61+
min-height: auto;
62+
}
4763
}
4864

4965
.gjs-pega-editor-panels-buttons {
@@ -66,156 +82,3 @@
6682
}
6783
}
6884
}
69-
70-
.site {
71-
max-width: 1000px;
72-
margin: 0 auto;
73-
}
74-
75-
.box {
76-
width: 100%;
77-
height: 350px;
78-
background-color: #ccc;
79-
}
80-
81-
.space {
82-
padding: 5px;
83-
border: dotted 1px #ccc;
84-
85-
&__panel {
86-
&--top {
87-
display: flex;
88-
justify-content: space-between;
89-
position: initial;
90-
width: 100%;
91-
padding: 0;
92-
}
93-
}
94-
95-
&__actions {
96-
&--basic {
97-
position: initial;
98-
}
99-
}
100-
101-
&__editor {
102-
// flex-grow: 1;
103-
// background-image: linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%), linear-gradient(-45deg, rgb(230, 230, 230) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgb(230, 230, 230) 75%), linear-gradient(-45deg, transparent 75%, rgb(230, 230, 230) 75%);
104-
105-
display: flex;
106-
flex-wrap: nowrap;
107-
justify-content: space-between;
108-
align-items: stretch;
109-
height: 300px;
110-
111-
&-canvas {
112-
flex-grow: 1;
113-
114-
&-inner {}
115-
}
116-
117-
&__panel {
118-
flex-basis: 230px;
119-
position: relative;
120-
overflow-y: auto;
121-
122-
text-align: left;
123-
}
124-
}
125-
126-
&__blocks {}
127-
}
128-
129-
// .gjs-cv-canvas {
130-
// top: 0;
131-
// width: 100%;
132-
// height: 100%;
133-
// }
134-
135-
// .gjs-block {
136-
// width: auto;
137-
// height: auto;
138-
// min-height: auto;
139-
// }
140-
141-
// .space__editor {}
142-
143-
// .editor-canvas {}
144-
145-
// .panel__right {
146-
// flex-basis: 230px;
147-
// position: relative;
148-
// overflow-y: auto;
149-
// }
150-
151-
// /* Let's highlight canvas boundaries */
152-
// #gjs {
153-
// border: 3px solid #444;
154-
// }
155-
156-
// /* Reset some default styling */
157-
// .gjs-cv-canvas {
158-
// top: 0;
159-
// width: 100%;
160-
// height: 100%;
161-
// }
162-
163-
// Needed to properly style block buttons
164-
.gjs-block.gjs-block {
165-
width: auto;
166-
height: auto;
167-
min-height: auto;
168-
}
169-
170-
// .u-row {
171-
// width: 100%;
172-
// display: flex;
173-
// justify-content: space-between;
174-
// flex-wrap: wrap;
175-
// }
176-
177-
// .panel__switcher {
178-
// position: initial;
179-
// }
180-
181-
// .editor-row {
182-
// display: flex;
183-
// justify-content: flex-start;
184-
// align-items: stretch;
185-
// flex-wrap: nowrap;
186-
// height: 300px;
187-
// }
188-
189-
// .editor-canvas {
190-
// flex-grow: 1;
191-
// }
192-
193-
.space__editor__panel.space__editor__panel {
194-
flex-basis: 230px;
195-
position: relative;
196-
overflow-y: auto;
197-
}
198-
199-
// .panel__top {
200-
// padding: 0;
201-
// width: 100%;
202-
// display: flex;
203-
// position: initial;
204-
// justify-content: center;
205-
// justify-content: space-between;
206-
// }
207-
208-
// .panel__basic-actions {
209-
// position: initial;
210-
// }
211-
212-
// .panel__right {
213-
// //width: 100%;
214-
// }
215-
216-
///////!!
217-
// Shame code, remove this before production
218-
///////!!
219-
bolt-band {
220-
height: unset;
221-
}

0 commit comments

Comments
 (0)