Skip to content

Commit

Permalink
🔧 inputitem darkmode
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo committed Jun 15, 2023
1 parent e89d366 commit 577a33a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
3 changes: 3 additions & 0 deletions components/rmrk/Create/AttributeTagInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
item-class="my-3"
:autocomplete-classes="{
'item-class': 'p-2',
inputClasses: {
inputClass: 'neo-input',
},
}"
aria-close-label="Delete this tag"
icon="tag"
Expand Down
43 changes: 32 additions & 11 deletions libs/ui/src/components/NeoInputitems/NeoInputitems.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@import '@oruga-ui/oruga/src/scss/utilities/animations.scss';
@import '@oruga-ui/oruga/src/scss/utilities/helpers.scss';

$inputitems-border-width: 0;
$inputitems-border-radius: 0;
$inputitems-item-border-radius: 0;
$autocomplete-menu-border-radius: 0;
Expand All @@ -12,19 +13,39 @@ $autocomplete-menu-border-radius: 0;
@import '@oruga-ui/oruga/src/scss/components/inputitems.scss';

.o-inputit__container {
outline: none;
box-shadow: none;
@include ktheme() {
border: 1px solid theme('k-grey-fix');
background-color: theme('background-color');
color: theme('text-color');
padding-top: 0;
@include ktheme() {
background-color: theme('background-color');
}
.o-input.neo-input {
outline: none;
box-shadow: none;
@include ktheme() {
border: 1px solid theme('k-grey-fix');
background-color: theme('background-color');
color: theme('text-color');

&:focus {
border: 1px solid theme('text-color');
}
}
&:focus {
border: 1px solid theme('text-color');
}
}
}
}

.o-acp__menu {
width: 100%!important;
width: 100% !important;
@include ktheme() {
box-shadow: theme('primary-shadow');
border: 1px solid theme('border-color');
background: theme('background-color');
}

.o-acp__item {
color: inherit;
&:hover {
@include ktheme() {
color: theme('k-hovergrey');
}
}
}
}

0 comments on commit 577a33a

Please sign in to comment.