Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
chore: remove the cursor and opacity for avatar and background select…
Browse files Browse the repository at this point in the history
…ion (#1893)
  • Loading branch information
brenopolanski authored Apr 9, 2020
1 parent ab96104 commit 5069a12
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/renderer/pages/Profile/ProfileEdition.vue
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,18 @@ export default {
.ProfileEdition__name .ListDividedItem__value .InputText .InputField__wrapper {
height: 0;
}
.ProfileEdition__avatar .InputGrid__container {
grid-template-columns: repeat(4, 4rem) !important;
grid-gap: 1rem !important;
}
.ProfileEdition__avatar .SelectionAvatar .InputGrid__container button:first-child,
.ProfileEdition__avatar .SelectionAvatar .InputGrid__container button:first-child .InputGridItem {
@apply .cursor-default .opacity-100;
}
.ProfileEdition__background .SelectionBackgroundGrid .InputGrid__container button:first-child,
.ProfileEdition__background .SelectionBackgroundGrid .InputGrid__container button:first-child .InputGridItem {
@apply .cursor-default .opacity-100;
}
</style>
16 changes: 14 additions & 2 deletions src/renderer/pages/Profile/ProfileNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
/>
</div>

<div class="flex items-center justify-between mt-5 pt-5 mb-2 border-t border-theme-line-separator border-dashed">
<div class="ProfileNew__avatar flex items-center justify-between mt-5 pt-5 mb-2 border-t border-theme-line-separator border-dashed">
<div class="mr-2">
<h5 class="mb-2">
{{ $t('COMMON.AVATAR') }}
Expand Down Expand Up @@ -169,7 +169,7 @@
/>
</div>

<div class="flex items-center justify-between">
<div class="ProfileNew__background flex items-center justify-between">
<div>
<h5 class="mb-2">
{{ $t('COMMON.BACKGROUND') }}
Expand Down Expand Up @@ -447,3 +447,15 @@ export default {
}
}
</script>

<style lang="postcss">
.ProfileNew__avatar .SelectionAvatar .InputGrid__container button:first-child,
.ProfileNew__avatar .SelectionAvatar .InputGrid__container button:first-child .InputGridItem {
@apply .cursor-default .opacity-100;
}
.ProfileNew__background .SelectionBackgroundGrid .InputGrid__container button:first-child,
.ProfileNew__background .SelectionBackgroundGrid .InputGrid__container button:first-child .InputGridItem {
@apply .cursor-default .opacity-100;
}
</style>

0 comments on commit 5069a12

Please sign in to comment.