This repository was archived by the owner on Feb 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +50
-24
lines changed
src/sass/app_2/_common/components Expand file tree Collapse file tree 1 file changed +50
-24
lines changed Original file line number Diff line number Diff line change 3
3
color : #333333 ; /* stylelint-disable-line color-no-hex */
4
4
font-size : 16px ;
5
5
border-collapse : collapse ;
6
+ table-layout : fixed ;
7
+ width : 100vw ;
6
8
7
9
& -row {
8
10
background-color : $COLOR_WHITE ;
9
11
border-bottom : 1px solid #d2d3da ; /* stylelint-disable-line color-no-hex */
10
12
}
11
- & -thead {
13
+ & -head {
12
14
min-height : 40px ;
15
+ background-color : #fafafb ; /* stylelint-disable-line color-no-hex */
13
16
14
- & th {
17
+ th {
15
18
padding : 12px ;
16
19
font-weight : 600 ;
17
20
text-align : left ;
18
21
border : none ;
19
22
background-color : #f4f4f6 ; /* stylelint-disable-line color-no-hex */
20
23
}
21
- & th :first-child {
22
- padding-left : 16px ;
23
- border-top-left-radius : 4px ;
24
- }
25
- & th :last-child {
26
- padding-right : 16px ;
27
- border-top-right-radius : 4px ;
28
- }
29
24
}
30
- & -tbody {
31
- & .table-row :hover {
32
- background-color : #fdf4ec ; /* stylelint-disable-line color-no-hex */
25
+ th :first-child , td :first-child {
26
+ padding-left : 32px ;
27
+ }
28
+ th :last-child , td :last-child {
29
+ padding-right : 32px ;
30
+ }
31
+ & -body {
32
+ .table-row :hover {
33
+ background-color : #e4e6f1 ; /* stylelint-disable-line color-no-hex */
33
34
}
34
- & td {
35
+ td {
35
36
padding : 12px ;
36
37
border : none ;
37
38
}
38
- & td :first-child {
39
- padding-left : 16 px ;
39
+ .profit {
40
+ color : #4caf50 ; /* stylelint-disable-line color-no-hex */
40
41
}
41
- & td :last-child {
42
- padding-right : 16 px ;
42
+ .loss {
43
+ color : #f44336 ; /* stylelint-disable-line color-no-hex */
43
44
}
44
- & .profit {
45
- color : #2e8836 ; /* stylelint-disable-line color-no-hex */
45
+ .amount {
46
+ font-weight : bold ;
46
47
}
47
- & .loss {
48
- color : #c03 ; /* stylelint-disable-line color-no-hex */
48
+ }
49
+ // column widths
50
+ .date , .ref {
51
+ width : 6.5em ;
52
+ }
53
+ .action {
54
+ width : 7em ;
55
+ text-align : right ;
56
+ }
57
+ .payout , .amount , .balance {
58
+ width : 6em ;
59
+ text-align : right ;
60
+ }
61
+ // styles for fixed table header
62
+ & .table-clone {
63
+ position : fixed ;
64
+ z-index : 100 ;
65
+ pointer-events : none ;
66
+
67
+ .table-head {
68
+ pointer-events : auto ;
69
+ visibility : visible ;
70
+ }
71
+ .table-body {
72
+ visibility : hidden ;
49
73
}
50
74
}
51
- & -pagination {
52
- margin-top : 16px ;
75
+ @media screen and (max-width : 980px ) {
76
+ .desc {
77
+ display : none ;
78
+ }
53
79
}
54
80
}
You can’t perform that action at this time.
0 commit comments