diff --git a/src/assets/components/inputs.less b/src/assets/components/inputs.less new file mode 100644 index 0000000..963e976 --- /dev/null +++ b/src/assets/components/inputs.less @@ -0,0 +1,39 @@ +@import '../_mixins'; +@import '../_theme'; + +input[type='checkbox'] { + -webkit-appearance: none; + appearance: none; + padding: 0.6rem; + .themed(background-color, @light-background, @dark-background); + border: none; + border-radius: 1rem; + display: inline-block; + transition: all 0.2s ease; + display: inline-block; + position: relative; + + &:checked { + .themed(background-color, @light-primary-500, @dark-primary); + .themed(color, @light-background, @dark-background); + transition: all 0.2s ease; + } +} + +input[type='text'] { + -webkit-appearance: none; + appearance: none; + background-color: transparent; + padding: 1rem; + border: none; + border-bottom: solid 1px; + .themed(border-bottom-color, @light-gray-10, @dark-gray-10); + outline: none; + transition: all 0.2s ease; + + &:focus { + .themed(background-color, @light-primary-300, @dark-primary-300); + outline: none; + transition: all 0.2s ease; + } +} diff --git a/src/assets/main.less b/src/assets/main.less index a4f373a..0573825 100644 --- a/src/assets/main.less +++ b/src/assets/main.less @@ -10,6 +10,7 @@ @import 'components/cards'; @import 'components/highlight'; @import 'components/links'; +@import 'components/inputs'; body { font-family: 'Roboto', sans-serif; diff --git a/src/views/CreateCampaignView.vue b/src/views/CreateCampaignView.vue index 49ac516..c9c36af 100644 --- a/src/views/CreateCampaignView.vue +++ b/src/views/CreateCampaignView.vue @@ -1,20 +1,23 @@