Skip to content

Commit

Permalink
Update pill styling
Browse files Browse the repository at this point in the history
  • Loading branch information
johanbissemattsson committed Feb 28, 2024
1 parent fe733b0 commit baf62f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions lxl-web/src/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ see https://tailwindcss.com/docs/customizing-colors#using-css-variables */
--bg-positive: var(--color-accent-light);
--bg-positive-inv: var(--color-primary);
--bg-cards: var(--color-white);
--bg-pill: var(--color-brown);
}

/* Dark mode */
Expand Down
10 changes: 9 additions & 1 deletion lxl-web/src/lib/components/DecoratedData.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@
{/if}

<style>
a {
color: inherit;
}
.definition {
text-decoration: underline;
text-decoration-style: dotted;
Expand All @@ -148,6 +151,11 @@
}
.pill {
@apply inline-block rounded-md border border-accent-dark p-1 no-underline;
@apply mr-1 inline-block rounded-full bg-pill/8 px-3 py-1 no-underline;
&:hover,
&:focus {
@apply bg-pill/16;
}
}
</style>
3 changes: 2 additions & 1 deletion lxl-web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default {
head: 'rgb(var(--bg-head) / 1)',
positive: 'rgb(var(--bg-positive) / 1)',
'positive-inv': 'rgb(var(--bg-positive-inv) / 1)',
cards: 'rgb(var(--bg-cards) / 1)'
cards: 'rgb(var(--bg-cards) / 1)',
pill: 'rgb(var(--bg-pill) / <alpha-value>)'
},
opacity: {
80: '.80',
Expand Down

0 comments on commit baf62f7

Please sign in to comment.