forked from benmvp/react-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmailListItem.css
More file actions
49 lines (42 loc) · 996 Bytes
/
Copy pathEmailListItem.css
File metadata and controls
49 lines (42 loc) · 996 Bytes
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
.email-list-item {
background: #fff;
border: 1px solid #e5e5e5;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px 0 rgba(0, 0, 0, .12);
box-sizing: border-box;
cursor: pointer;
display: flex;
justify-content: space-between;
padding: 10px;
transition: border 150ms;
&:hover {
border-color: #888;
}
}
.email-list-item--selected {
border: 3px solid #888;
border-left: 15px solid #888;
}
.email-list-item--unread {
font-weight: bold;
}
.email-list-item__from {
flex: 0 0 25%;
overflow: hidden;
text-overflow: ellipsis;
transition: flex-basis 150ms;
.email-list-item--selected & {
flex-basis: calc(25% - 15px);
}
}
.email-list-item__subject {
flex-basis: 100%;
margin-left: 10px;
}
.email-list-item__status {
display: flex;
flex: 0 0 25%;
flex-direction: column;
justify-content: center;
margin-left: 10px;
text-align: right;
}