Skip to content

Commit

Permalink
fix: 样式微调
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleneJiang committed Feb 2, 2023
1 parent faaf421 commit 78aaa01
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions frontend/components/Navs/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ defineProps({
<style scoped>
.nav-item {
line-height: 1;
@apply h-full flex items-center text-[15px] border-b-2 border-transparent;
@apply relative opacity-85 whitespace-nowrap;
@apply text-black dark:text-[#e8ecfa];
Expand All @@ -29,9 +30,9 @@ defineProps({
@apply opacity-100;
}
.nav-item::after {
@apply absolute left-2/3 top-0.5 md:(top-2);
@apply absolute left-2/3 top-[0.3rem] md:(top-[0.8rem]);
@apply bg-red-500 text-white;
@apply rounded-full px-1.5 py-0.4 whitespace-nowrap;
@apply rounded-full px-1.5 py-0.5 whitespace-nowrap;
@apply transform-gpu scale-60 origin-top-left;
content: attr(data-badge);
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Navs/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const [isMobileNavShown, toggleMobileNavShown] = useToggle()
}

.logo{
@apply flex items-center mr-4 ml-6 h-[2.2rem] w-auto inline-block;
@apply flex items-center mr-4 ml-6 w-auto inline-block;

}
.nav-list{
Expand Down
5 changes: 2 additions & 3 deletions frontend/components/Uno/DarkToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ function toggleDark() {
</script>

<template>
<button class="!outline-none flex" @click="toggleDark">
<span>切换主题</span>
<div class="dark:i-carbon-moon i-carbon-sun" />
<button class="!outline-none flex lt-md:mr-5" @click="toggleDark">
<div class="dark:i-carbon-moon i-carbon-sun text-6 text-black dark:text-[#e8ecfa] opacity-85 hover:opacity-100" />
</button>
</template>

0 comments on commit 78aaa01

Please sign in to comment.