-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathStyledComponents.js
103 lines (84 loc) · 1.71 KB
/
StyledComponents.js
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
95
96
97
98
99
100
101
102
/* eslint-disable no-confusing-arrow */
import styled, { css } from 'styled-components';
const hoverStyle = css`
background-color: gray;
color: gray;
button:first-child {
border-bottom-width: 0;
}
> div {
border-left-width: 0;
}
h4 {
color: gray;
}
`;
export const StyledCollection = styled.div`
padding-left: 0;
padding-right: 0;
padding-bottom: 0;
${props => props.isDragging && hoverStyle}
.panel-default {
background-color: red;
}
.panel-heading li {
width: 48%;
text-align: center;
cursor: pointer;
padding-bottom: 5px;
}
.panel-heading li.active {
border-bottom: 3px solid #c8c4c4;
border-color: inherit;
font-weight: bold;
}
`;
export const StyledCollectionHeader = styled.span`
h3, form {
display: inline;
cursor: pointer;
}
input {
width: 130px;
}
i.fa {
margin-right: 4px;
transition: 0.25s ease transform;
}
`;
export const StyledRequest = styled.div`
.list-group-item {
display: flex;
padding: 0;
${props => props.isDragging && hoverStyle}
}
`;
const asideWidth = 32;
export const RequestButtons = styled.div`
max-width: ${asideWidth}px;
flex: 1;
border-color: inherit;
button {
height: ${props => props.compact ? 100 : 50}%;
}
button:first-child {
border-bottom: 1px solid #ddd;
border-color: inherit;
color: inherit;
}
`;
export const MainContentDiv = styled.div`
padding: 10px;
word-break: break-all;
border-left: 1px solid #ddd;
border-color: inherit;
width: calc(100% - ${asideWidth}px);
input {
width: calc(100% - 36px);
}
${props => props.compact && css`
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
`}
`;