diff --git a/resources/js/components/FormToggle.vue b/resources/js/components/FormToggle.vue new file mode 100644 index 00000000..39f54b09 --- /dev/null +++ b/resources/js/components/FormToggle.vue @@ -0,0 +1,55 @@ + + + \ No newline at end of file diff --git a/resources/js/components/index.js b/resources/js/components/index.js index 3712f26f..68f69b4b 100644 --- a/resources/js/components/index.js +++ b/resources/js/components/index.js @@ -6,6 +6,7 @@ import FormWrapper from './FormWrapper' import FormField from './FormField' import FormSelect from './FormSelect' import FormSwitch from './FormSwitch' +import FormToggle from './FormToggle' import FormCheckbox from './FormCheckbox' import FormButtons from './FormButtons' import VueFooter from './Footer' @@ -20,6 +21,7 @@ import Kicker from './Kicker' FormField, FormSelect, FormSwitch, + FormToggle, FormCheckbox, FormButtons, VueFooter, diff --git a/resources/sass/app.scss b/resources/sass/app.scss index ecf717af..817e99fa 100644 --- a/resources/sass/app.scss +++ b/resources/sass/app.scss @@ -366,6 +366,11 @@ figure.no-icon { color: hsl(0, 0%, 48%); } +.is-toggle.buttons, +.is-toggle.buttons a.button { + margin-bottom: 0 !important; +} + .control.has-icons-left .icon, .control.has-icons-right .icon { color: inherit; }