Language editor refactoring part 4 (backend + frontend)

This commit is contained in:
Peter Papp
2021-04-01 10:40:48 +02:00
parent 5130082111
commit 7772ef6b40
32 changed files with 288 additions and 161 deletions

View File

@@ -9,10 +9,10 @@
<input
v-model="query"
@input="$emit('input', query)"
class="query"
class="query focus-border-theme"
type="text"
name="searchInput"
placeholder="Search Language Strings..."
:placeholder="$t('search_translations')"
/>
</div>
</template>
@@ -34,7 +34,6 @@ export default {
methods: {
clearInput() {
this.query = undefined
this.$emit('reset-query')
},
},
@@ -74,13 +73,13 @@ export default {
}
&:focus {
border: 1px solid $theme;
box-shadow: 0 0 7px rgba($theme, 0.3);
border-width: 1px;
border-style: solid;
}
&:focus + .icon {
path {
fill: $theme;
color: inherit;
}
}
}
@@ -105,4 +104,12 @@ export default {
}
}
@media (prefers-color-scheme: dark) {
.search-bar {
input {
background: $dark_mode_foreground;
}
}
}
</style>