This repository was archived by the owner on May 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 292
Expand file tree
/
Copy pathstyle.module.scss
More file actions
101 lines (84 loc) · 1.39 KB
/
style.module.scss
File metadata and controls
101 lines (84 loc) · 1.39 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
95
96
97
98
99
100
101
@import 'theme/variables';
.budgetGrid {
display: flex;
flex-flow: column;
flex: 1;
border: 1px solid $gray;
border-collapse: collapse;
font-size: 0.8em;
tr {
width: 100%;
display: flex;
align-items: stretch;
height: inherit;
padding: 8px;
}
th,
td {
text-align: left;
overflow: hidden;
&:last-child {
text-align: right;
}
&:nth-child(1),
&:nth-child(3) {
flex: 1;
min-width: 120px;
}
&:nth-child(2) {
flex: 3;
}
}
thead,
tfoot {
background-color: $verylightgray;
}
thead {
border-bottom: 1px solid $gray;
}
tbody {
overflow-y: scroll;
display: block;
flex: 1;
tr {
border-bottom: 1px solid $lightgray;
&:hover {
cursor: pointer;
background-color: $verylightgray;
}
}
td {
vertical-align: top;
text-overflow: ellipsis;
}
}
tfoot {
display: flex;
flex-wrap: nowrap;
border-top: 1px solid $gray;
}
@media only screen and (max-width: $screen-small) {
table,
thead,
tbody,
tbody tr {
display: block;
}
thead {
display: none;
}
tbody {
tr {
padding: 12px 8px;
}
td {
display: flex;
margin-bottom: 12px;
&:last-child {
text-align: left;
margin-bottom: 0;
}
}
}
}
}