-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.scss
84 lines (74 loc) · 1.59 KB
/
index.scss
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
.o-table-sortable {
&__th {
&__flexcontainer {
display: flex;
flex-direction: row;
align-items: center;
}
&__arrow {
margin-left: 5px;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
width: 0;
height: 0;
font-size: 0;
line-height: 0;
content: '';
border-style: solid;
}
&__arrowup {
border-bottom-width: 4px;
border-bottom-color: $color-silver;
border-top: none;
}
&__arrowdown {
margin-top: 3px;
border-top-width: 4px;
border-top-color: $color-silver;
border-bottom: none;
}
}
th:not([aria-sort='none']) {
cursor: pointer;
}
th[aria-sort='none']
> div.o-table-sortable__th__flexcontainer
> div.o-table-sortable__th__arrow-wrapper {
display: none;
}
[tabindex] {
cursor: pointer;
}
th[aria-sort='ascending'] {
&:active,
&:focus {
.o-table-sortable__th__arrow {
border-top-color: $color-axa-blue;
}
}
&.o-table-sortable__th--selected {
.o-table-sortable__th__arrow {
border-bottom-color: $color-axa-blue;
}
.o-table-sortable__th__arrowdown {
display: none;
}
}
}
th[aria-sort='descending'] {
&:active,
&:focus {
.o-table-sortable__th__arrow {
border-bottom-color: $color-axa-blue;
}
}
&.o-table-sortable__th--selected {
.o-table-sortable__th__arrow {
border-top-color: $color-axa-blue;
}
.o-table-sortable__th__arrowup {
display: none;
}
}
}
}