styles.js
1.66 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import styled, { createGlobalStyle, css } from "styled-components";
import Teleprompter from "./components/Teleprompter";
export const GlobalStyles = createGlobalStyle`
* {
box-sizing: border-box;
}
html,
body,
#root {
height: 100%;
font-family: sans-serif;
margin: 0;
overflow: hidden;
background: #282828;
}
`;
export const StyledApp = styled.div`
font-family: sans-serif;
text-align: center;
height: 100%;
height: 100vh;
margin: 1rem;
`;
export const StyledTeleprompter = styled(Teleprompter)`
display: flex;
flex-direction: column;
justify-content: space-around;
height: 100%;
`;
export const Controls = styled.div`
display: flex;
flex-direction: column;
margin-bottom: 1rem;
`;
export const Buttons = styled.div`
display: flex;
justify-content: flex-start;
`;
export const Input = styled.textarea`
height: 5rem;
border: 1px solid rgb(0, 0, 0, 0.25);
padding: 0.5rem;
font-family: Tahoma, sans-serif;
background: transparent;
margin-bottom: 1rem;
width: 100%;
`;
export const Button = styled.button`
display: inline-block;
border: none;
padding: 0.5rem 1rem;
margin: 0;
text-decoration: none;
background: #666ba5;
border: 1px solid rgb(0, 0, 0, 0.25);
color: white;
font-size: 1rem;
cursor: pointer;
text-align: center;
transition: background 250ms ease-in-out, transform 150ms ease;
margin-right: 1rem;
min-width: 5rem;
${(p) =>
p.secondary &&
css`
background: #666;
`}
&:last-child {
margin-right: 0;
}
&:hover,
&:focus {
transform: scale(1.1);
}
&:focus {
outline: 1px solid #fff;
}
&:active {
transform: scale(0.99);
}
`;