Skip to content

Commit

Permalink
fix(#3380): styling AlgoliaSearch component
Browse files Browse the repository at this point in the history
  • Loading branch information
RVitaly1978 committed Apr 28, 2023
1 parent 5b58752 commit bfad562
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/docs/components/AlgoliaSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script lang="ts" setup>
import docsearch from '@docsearch/js'
import { useI18n } from 'vue-i18n'
import { onMounted, unref as _unref } from 'vue'
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
const { locale } = useI18n()
Expand Down Expand Up @@ -120,10 +120,12 @@ onMounted(() => {
flex-grow: 1;
display: flex;
@include xs(flex-grow, 0);
.DocSearch-Button {
margin-left: 0;
flex-grow: 1;
max-width: 320px;
max-width: 20rem;
border-radius: var(--va-input-border-radius);
background-color: var(--va-background-element);
Expand All @@ -136,11 +138,10 @@ onMounted(() => {
}
.DocSearch-Button-Placeholder {
color: v-bind(placeholderColor);
@include md(display, block);
@include xs(display, none);
// TODO: This Vbind breaks build !
color: v-bind(placeholderColor);
}
.DocSearch-Button-Keys {
Expand All @@ -153,10 +154,6 @@ onMounted(() => {
@include sm(color, var(--va-primary));
}
}
@media screen and (max-width: $break_xs) {
flex-grow: 0;
}
}
.DocSearch-Modal {
Expand Down

0 comments on commit bfad562

Please sign in to comment.