summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/components/styled
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-07-12 14:47:13 -0300
committerSebastian <sebasjm@gmail.com>2021-07-12 14:48:59 -0300
commit0cf52a2812dd0cfab9bfdf2dcd81fe4787f4dcb0 (patch)
tree79b4049999cadd4e324b54a177990bc1ea4d09d6 /packages/taler-wallet-webextension/src/components/styled
parent1c0cce3f5812cd2796ab9693b47f035427ca5340 (diff)
downloadwallet-core-0cf52a2812dd0cfab9bfdf2dcd81fe4787f4dcb0.tar.gz
wallet-core-0cf52a2812dd0cfab9bfdf2dcd81fe4787f4dcb0.tar.bz2
wallet-core-0cf52a2812dd0cfab9bfdf2dcd81fe4787f4dcb0.zip
styles for provider detail page
Diffstat (limited to 'packages/taler-wallet-webextension/src/components/styled')
-rw-r--r--packages/taler-wallet-webextension/src/components/styled/index.tsx36
1 files changed, 30 insertions, 6 deletions
diff --git a/packages/taler-wallet-webextension/src/components/styled/index.tsx b/packages/taler-wallet-webextension/src/components/styled/index.tsx
index ffcafd70f..434e3350a 100644
--- a/packages/taler-wallet-webextension/src/components/styled/index.tsx
+++ b/packages/taler-wallet-webextension/src/components/styled/index.tsx
@@ -4,6 +4,13 @@ import type * as Linaria from '@linaria/core';
import { styled } from '@linaria/react';
+export const PaymentStatus = styled.span<{color:string}>`
+ padding: 5px;
+ border-radius: 5px;
+ color: white;
+ background-color: ${p => p.color};
+`
+
export const PopupBox = styled.div`
height: calc(320px - 34px - 16px);
display: flex;
@@ -11,23 +18,40 @@ export const PopupBox = styled.div`
justify-content: space-between;
& > section {
+ // this margin will send the section up when used with a header
+ margin-bottom: auto;
overflow: auto;
+
+ table td {
+ padding: 5px 10px;
+ }
+ table tr {
+ border-bottom: 1px solid black;
+ border-top: 1px solid black;
+ }
+ }
+
+ & > header {
+ flex-direction: row;
+ justify-content: space-between;
+ display: flex;
+ margin-bottom: 5px;
+
+ & > div {
+ align-self: center;
+ }
}
& > footer {
padding-top: 5px;
flex-direction: row;
- justify-content: flex-end;
+ justify-content: space-between;
display: flex;
- & > button {
+ & button {
margin-left: 5px;
}
}
- & > section > h1 {
- margin-top: 0.3em;
- margin-bottom: 0.3em;
- }
`
export const Button = styled.button`