diff --git a/web-app/src/assets/main.css b/web-app/src/assets/main.css index 810c5d6..3fd31ba 100644 --- a/web-app/src/assets/main.css +++ b/web-app/src/assets/main.css @@ -1,3 +1,5 @@ +@import url('styles/text.css'); + :root { --theme-primary: #01bbff; --theme-secondary: #00759f; @@ -5,6 +7,11 @@ --bg-primary: #00131a; --bg-secondary: #003447; --bg-page: #000b0f; + + --text: rgb(247, 247, 247); + --text-muted: gray; + --positive: rgb(30, 197, 14); + --negative: rgb(253, 28, 28); } @font-face { diff --git a/web-app/src/assets/styles/text.css b/web-app/src/assets/styles/text.css new file mode 100644 index 0000000..48695f4 --- /dev/null +++ b/web-app/src/assets/styles/text.css @@ -0,0 +1,43 @@ +.text-normal { + color: var(--text); +} + +.text-muted { + color: var(--text-muted); +} + +.text-positive { + color: var(--positive); +} + +.text-negative { + color: var(--negative); +} + +.font-mono { + font-family: monospace; +} + +.font-bold { + font-weight: bold; +} + +.font-size-normal { + font-size: 1rem; +} + +.font-size-small { + font-size: 0.85rem; +} + +.font-size-xsmall { + font-size: 0.75rem; +} + +.align-right { + text-align: right; +} + +.align-left { + text-align: left; +} diff --git a/web-app/src/components/TransactionCard.vue b/web-app/src/components/TransactionCard.vue index 0b149a8..f01d774 100644 --- a/web-app/src/components/TransactionCard.vue +++ b/web-app/src/components/TransactionCard.vue @@ -32,23 +32,23 @@ function goToTransaction() {
-
Transaction #{{ tx.id }}
-
+
Transaction #{{ tx.id }}
+
{{ new Date(tx.timestamp).toLocaleString() }}
-
{{ formatMoney(tx.amount, tx.currency) }}
- @@ -83,44 +83,6 @@ function goToTransaction() { justify-content: space-between; } -.transaction-card-id { - font-size: 0.8rem; - color: white; -} - -.transaction-card-timestamp { - font-size: 0.75rem; - font-family: monospace; - font-weight: 400; - color: gray; -} - -.transaction-card-money { - font-size: 0.9rem; - font-family: monospace; - color: white; - text-align: right; -} - -.transaction-card-money-positive { - color: green; -} - -.transaction-card-money-negative { - color: red; -} - -.transaction-card-account-label { - font-size: 0.75rem; - color: gray; - text-align: right; -} - -.transaction-card-account-badge { - color: white; - font-weight: 600; -} - .transaction-card-description { margin: 0.25rem 0; font-size: 0.9rem;