Skip to content

Commit 133b89f

Browse files
committed
Fix crash if palette.styl doesnt exist
1 parent 1eb4a5c commit 133b89f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

MeiliSearchBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default {
7979
</script>
8080

8181
<style lang="stylus">
82-
@require '~/.vuepress/styles/palette.styl'
82+
@require './styles/palette.styl'
8383
8484
.meilisearch-search-wrapper
8585
& > span

styles/palette.styl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
$accentDarkColor ?= $accentColor
3+
4+
$inputDarkBgColor ?= #444d52
5+
6+
$textDarkColor ?= #eaeaea
7+
8+
$borderDarkColor ?= lighten($inputDarkBgColor, 10%)

0 commit comments

Comments
 (0)