-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathStyledWrapper.js
More file actions
94 lines (82 loc) · 2.3 KB
/
StyledWrapper.js
File metadata and controls
94 lines (82 loc) · 2.3 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
89
90
91
92
93
94
import styled from 'styled-components';
const StyledWrapper = styled.div`
div.tabs {
padding: 12px;
min-width: 160px;
div.tab {
display: flex;
align-items: center;
gap: 8px;
width: 100%;
padding: 6px 10px;
border: none;
border-radius: ${(props) => props.theme.border.radius.sm};
color: ${(props) => props.theme.colors.text.muted};
cursor: pointer;
transition: background-color 0.15s ease;
.beta-badge {
display: inline-block;
font-size: ${(props) => props.theme.font.size.xxs};
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.03em;
padding: 0.0625rem 0.25rem;
border-radius: 0.1875rem;
background-color: ${(props) => props.theme.colors.text.yellow};
color: ${(props) => props.theme.bg};
margin-left: auto;
}
&:focus,
&:active,
&:focus-within,
&:focus-visible,
&:target {
outline: none !important;
box-shadow: none !important;
}
&.active {
color: ${(props) => props.theme.text} !important;
background: ${(props) => props.theme.tabs.secondary.active.bg};
&:hover {
background: ${(props) => props.theme.tabs.secondary.active.bg} !important;
}
}
}
}
section.tab-panel {
min-height: 70vh;
overflow-y: auto;
flex-grow: 1;
padding: 12px;
}
input[type="checkbox"],
input[type="radio"] {
accent-color: ${(props) => props.theme.workspace.accent};
cursor: pointer;
}
.textbox {
line-height: 1.5;
padding: 0.45rem;
border-radius: ${(props) => props.theme.border.radius.sm};
background-color: ${(props) => props.theme.input.bg};
border: 1px solid ${(props) => props.theme.input.border};
color: ${(props) => props.theme.text};
&:focus {
border: solid 1px ${(props) => props.theme.input.focusBorder} !important;
outline: none !important;
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
.section-header {
font-size: ${(props) => props.theme.font.size.sm};
color: ${(props) => props.theme.colors.text.muted};
font-weight: 500;
margin: 6px 0 8px 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
`;
export default StyledWrapper;