Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
// SPDX-License-Identifier: BSD-3-Clause
import { css } from 'styled-components';
import SlideLeftIn from '../../../assets/theme/shared/animations/SlideLeftIn';
const animationRuleSlideLeftIn = css`
animation-name: ${SlideLeftIn}; /* required */
animation-duration: 0.25s; /* required */
animation-timing-function: ease-in;
animation-delay: 0s;
animation-iteration-count: 1;
animation-direction: normal;
animation-fill-mode: normal;
animation-play-state: playing;
`;
const DivTxFormStyles = css`
${animationRuleSlideLeftIn};
border-radius: 0.25rem;
background: rgba(${props => props.theme.faint}, 0.25);
margin: 0.5rem 0;
position: relative;
`;
const LabelTextareaTxDetailsStyles = css`
color: ${props => props.theme.black};
display: block;
font-size: 0.7rem;
font-weight: 600;
opacity: 0.75;
padding: 0.5rem 0.5rem 0;
`;
const TextareaTxDetailsStyles = css`
background: transparent;
border: 0;
color: ${props => props.theme.darkGrey};
font-family: ${props => props.theme.mono};
font-size: 0.6rem;
font-weight: 400;
height: 4.75rem;
line-height: 1.3rem;
margin-top: -0.25rem;
opacity: 0.75;
overflow: hidden;
padding: 0.5rem;
resize: none;
width: calc(100% - 1rem);
word-wrap: break-word;
`;
export {
DivTxFormStyles,
LabelTextareaTxDetailsStyles,
TextareaTxDetailsStyles
};