summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/components/styled/index.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-07-10 00:33:31 -0300
committerSebastian <sebasjm@gmail.com>2021-07-10 00:33:31 -0300
commit969951036905997f9df51845c0eeceb83b4c1e19 (patch)
treed9ed389094311971ea6eb9771c6df8e687e03dd9 /packages/taler-wallet-webextension/src/components/styled/index.tsx
parentd29499b80a992a0d107327c0dfbf31bb2d2ba6f7 (diff)
downloadwallet-core-969951036905997f9df51845c0eeceb83b4c1e19.tar.gz
wallet-core-969951036905997f9df51845c0eeceb83b4c1e19.tar.bz2
wallet-core-969951036905997f9df51845c0eeceb83b4c1e19.zip
refactored ui add provider
Diffstat (limited to 'packages/taler-wallet-webextension/src/components/styled/index.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/components/styled/index.tsx58
1 files changed, 53 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/components/styled/index.tsx b/packages/taler-wallet-webextension/src/components/styled/index.tsx
index 6e7e736a5..ffcafd70f 100644
--- a/packages/taler-wallet-webextension/src/components/styled/index.tsx
+++ b/packages/taler-wallet-webextension/src/components/styled/index.tsx
@@ -1,13 +1,14 @@
-// import { FunctionalComponent, JSX } from 'preact';
-// import styled from './preact-styled'
-// import { css } from '@linaria/core';
+// need to import linaria types, otherwise compiler will complain
+import type * as Linaria from '@linaria/core';
+
import { styled } from '@linaria/react';
export const PopupBox = styled.div`
height: calc(320px - 34px - 16px);
display: flex;
flex-direction: column;
+ justify-content: space-between;
& > section {
overflow: auto;
@@ -22,9 +23,14 @@ export const PopupBox = styled.div`
margin-left: 5px;
}
}
+
+ & > section > h1 {
+ margin-top: 0.3em;
+ margin-bottom: 0.3em;
+ }
`
-const Button = styled.button`
+export const Button = styled.button`
display: inline-block;
zoom: 1;
line-height: normal;
@@ -50,7 +56,7 @@ const Button = styled.button`
outline: 0;
}
- [disabled] {
+ &:disabled {
border: none;
background-image: none;
/* csslint ignore:start */
@@ -113,6 +119,10 @@ export const Row = styled.div`
padding: 0.5em;
`
+export const LightText = styled.div`
+ color: gray;
+`
+
export const SmallText = styled.div`
font-size: small;
margin-top: 0.5em;
@@ -133,3 +143,41 @@ export const CenteredTextBold = styled(CenteredText)`
font-weight: bold;
color: ${((props: any): any => String(props.color) as any) as any};
`
+export const Input = styled.div`
+ & label {
+ display: block;
+ padding: 5px;
+ }
+ & input {
+ display: block;
+ padding: 5px;
+ width: calc(100% - 4px - 10px);
+ }
+`
+
+export const ErrorBox = styled.div`
+ border: 2px solid #f5c6cb;
+ border-radius: 0.25em;
+ display: flex;
+ justify-content: space-between;
+ flex-direction: column;
+ /* margin: 0.5em; */
+ padding-left: 1em;
+ padding-right: 1em;
+ width: "100%";
+ color: #721c24;
+ background: #f8d7da;
+
+ & > div {
+ display: flex;
+ justify-content: space-between;
+
+ & > button {
+ align-self: center;
+ font-size: 100%;
+ padding: 0;
+ height: 28px;
+ width: 28px;
+ }
+ }
+`