Skip to content

Commit b32ff55

Browse files
authored
⭐ Merge pull request #29 from icebob/extract-styles
Extract styles to a separated css file. Remove bootstrap, font-awesome stylesheets from examples.
2 parents 66d201d + da5d8cc commit b32ff55

30 files changed

+1777
-2217
lines changed

dev/app.vue

+12-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
.row(v-show="model")
77
.col-md-5.col-md-offset-1
8-
.buttons.text-center
8+
.control-buttons.text-center
99
button.btn.btn-default.new(@click="newModel")
1010
i.fa.fa-plus
1111
| New
@@ -222,7 +222,7 @@
222222
.key { color: green; }
223223
}
224224
225-
.buttons {
225+
.control-buttons {
226226
button {
227227
margin: 0.2em 0.3em;
228228
padding: 6px 20px;
@@ -249,14 +249,18 @@
249249
}
250250
}
251251
252-
.form-group.half-width {
253-
width: 50%;
254-
}
252+
fieldset.vue-form-generator {
255253
256-
.half-width + .half-width {
257-
&:not(.first) {
258-
padding-left: 0.5rem;
254+
.form-group.half-width {
255+
width: 50%;
259256
}
257+
258+
.half-width + .half-width {
259+
&:not(.first) {
260+
padding-left: 0.5rem;
261+
}
262+
}
263+
260264
}
261265
262266

dev/schema.js

+9
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,15 @@ module.exports = {
198198
styleClasses: "half-width",
199199
validator: validators.required
200200
}, {
201+
type: "color",
202+
label: "Color (basic)",
203+
model: "favoriteColor",
204+
required: true,
205+
colorOptions: {
206+
//preferredFormat: "rgb"
207+
},
208+
validator: validators.required
209+
}, {
201210
type: "spectrum",
202211
label: "Color (spectrum field)",
203212
model: "favoriteColor",

0 commit comments

Comments
 (0)