Skip to content

Commit

Permalink
[#83] add styles to card lock icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Dec 3, 2023
1 parent dcb67b1 commit 49505d5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/shared/ui/preview-card/preview-card-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const isVisibleTags = computed(() => props.tags.length > 0);
<button
class="preview-card-header__button preview-card-header__button--lock"
:class="{
'preview-card-header__button--unlock': isLocked,
'preview-card-header__button--locked': isLocked,
}"
@click="lockEvent"
>
Expand Down Expand Up @@ -213,14 +213,18 @@ $eventTypeColorsMap: (
}
.preview-card-header__button--lock {
@apply text-gray-700 bg-gray-200 hover:bg-blue-700 hover:text-white;
@apply text-gray-700 dark:bg-gray-400 bg-gray-200 hover:bg-green-700 hover:text-white;
}
.preview-card-header__button--unlock {
@apply dark:text-white dark:bg-blue-700;
.preview-card-header__button--locked {
@apply text-white dark:text-white bg-green-700 dark:bg-green-700 ring-2 ring-green-700 hover:bg-green-800 dark:hover:bg-green-500;
}
.preview-card-header__button-icon {
@apply p-1 dark:fill-white;
.preview-card-header__button--lock & {
@apply p-0.5;
}
}
</style>

0 comments on commit 49505d5

Please sign in to comment.