Skip to content

Commit

Permalink
update style source
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzl committed Jul 16, 2024
1 parent 40baa18 commit bbeb13d
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/vinywaji/gui/static_src/src/styles.css

This file was deleted.

84 changes: 84 additions & 0 deletions src/vinywaji/gui/static_src/src/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type=number] {
-moz-appearance: textfield;
}
}


span[data-icon] {
display: inline-block;
vertical-align: text-top;
width: 1em;
height: 1em;
mask-size: contain;
mask-position: center;
mask-repeat: no-repeat;
background-color: currentColor;
flex-shrink: 0;

&.size-m {
font-size: 1.2rem
}

&.size-l {
font-size: 1.5rem
}

&.size-xl {
font-size: 2rem
}

&[data-icon="user"] {
mask-image: url(/static/icons/user-solid.svg);
}

&[data-icon="login"] {
mask-image: url(/static/icons/right-to-bracket-solid.svg);
}

&[data-icon="logout"] {
mask-image: url(/static/icons/right-from-bracket-solid.svg);
}

&[data-icon="system"] {
mask-image: url(/static/icons/circle-half-stroke-solid.svg);
}

&[data-icon="dark"] {
mask-image: url(/static/icons/moon-solid.svg);
}

&[data-icon="light"] {
mask-image: url(/static/icons/sun-solid.svg);
}

&[data-icon="delete"] {
mask-image: url(/static/icons/trash-solid.svg);
}

&[data-icon="copy"] {
mask-image: url(/static/icons/copy-solid.svg);
}

&[data-icon="purchase"] {
mask-image: url(/static/icons/cart-shopping-solid.svg);
}

&[data-icon="deposit"] {
mask-image: url(/static/icons/money-bill-solid.svg);
}

&[data-icon="add"] {
mask-image: url(/static/icons/plus-solid.svg);
}
}

0 comments on commit bbeb13d

Please sign in to comment.