Skip to content

Commit

Permalink
Shorten css classes
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelSzmarowski committed Sep 21, 2023
1 parent e3ed3a0 commit d2867e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
</script>

<div
class="legend-item-category"
class:refined
style="--cursor-style: {item.onClick ? 'pointer' : 'default'};"
on:click={() => {
Expand All @@ -41,11 +40,11 @@
</div>

<style>
.legend-item-category {
div {
display: inline-flex;
align-items: center;
}
.legend-item-category:hover {
div:hover {
cursor: var(--cursor-style);
}
.refined {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export let item: LineCategoryItem;
</script>

<div class:item-line-category-dashed={item.dashed} style="--border-color:{item.borderColor}" />
<div class:dashed={item.dashed} style="--border-color:{item.borderColor}" />

<style>
div {
Expand All @@ -15,7 +15,7 @@
2px;
background-position-x: calc(50% - 3px);
}
.item-line-category-dashed {
.dashed {
background: repeating-linear-gradient(
to right,
transparent 0 3px,
Expand Down

0 comments on commit d2867e0

Please sign in to comment.