Skip to content

Commit

Permalink
fix: jelu theme readability bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Jan 8, 2023
1 parent 21f96d7 commit 833e887
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 21 deletions.
22 changes: 11 additions & 11 deletions src/jelu-ui/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -348,18 +348,18 @@ watch(() => route.name, (newVal, oldVal) => {
</div>
</div>
<Transition>
<button
v-if="showAdvanced"
class="btn btn-circle btn-outline border-0 tooltip tooltip-bottom lowercase"
:data-tip="t('labels.advanced_search')"
>
<router-link
class="link-hover font-sans"
:to="{ name: 'search' }"
<button
v-if="showAdvanced"
class="btn btn-circle btn-outline border-0 tooltip tooltip-bottom lowercase"
:data-tip="t('labels.advanced_search')"
>
<span class="mdi mdi-magnify-plus-outline mdi-24 text-3xl" />
</router-link>
</button>
<router-link
class="link-hover font-sans"
:to="{ name: 'search' }"
>
<span class="mdi mdi-magnify-plus-outline mdi-24 text-3xl" />
</router-link>
</button>
</Transition>
</div>
<div class="navbar-end">
Expand Down
10 changes: 7 additions & 3 deletions src/jelu-ui/src/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
}

/* oruga customization with daisyui */
.o-chk__check {
@apply bg-none;
}

.o-chk .o-chk__check {
@apply checkbox checkbox-primary;
}

.o-btn.o-btn--success.o-btn--outlined-success {
@apply btn btn-success;
Expand All @@ -86,9 +93,6 @@
@apply radio radio-primary radio-sm bg-none;
}

.o-chk__check {
@apply bg-none;
}

.o-pag__link {
@apply btn text-neutral-content !important;
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/BookList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ try {
</div>
</template>
<template #filters>
<div class="field capitalize flex flex-col">
<div class="field capitalize flex flex-col gap-1">
<label class="label">{{ t('reading_events.last_event_type') }} : </label>
<o-checkbox
v-model="eventTypes"
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/Imports.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ watch(file, (newVal, oldVal) => {
<input
type="file"
accept=".csv,.tsv,.txt"
class="block w-full text-sm text-slate-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-gray-50 file:text-primary hover:file:bg-gray-300"
class="block w-full text-sm text-slate-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-accent file:text-accent-content hover:file:bg-gray-300"
@change="handleFileUpload($event)"
>
<br>
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/ToReadList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ getToRead()
</div>
</template>
<template #filters>
<div class="field flex flex-col capitalize">
<div class="field flex flex-col capitalize gap-1">
<label class="label">{{ t('reading_events.last_event_type') }} : </label>
<o-checkbox
v-model="eventTypes"
Expand Down
8 changes: 4 additions & 4 deletions src/jelu-ui/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ module.exports = {
jelu: {
primary: "#f7f5d1",
secondary: "#aaaaaa",
accent: "#f7f5d1",
accent: "#8D795B",
neutral: "#404040",
"base-100": "#262429",
"info": "#3ABFF8",
"success": "#36D399",
"warning": "#FBBD23",
"info": "#6191c2",
"success": "#CEB035",
"warning": "#ffad48",
"error": "#F87272",
"--rounded-box": "0rem", // border radius rounded-box utility class, used in card and other large boxes
"--rounded-btn": "0rem", // border radius rounded-btn utility class, used in buttons and similar element
Expand Down

0 comments on commit 833e887

Please sign in to comment.