-
Notifications
You must be signed in to change notification settings - Fork 6
/
priority-navigation.css
76 lines (66 loc) · 1.57 KB
/
priority-navigation.css
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
/* base Priority-Navigation styling */
.toPrioritize {
font-size: 0;
padding: 0;
white-space: nowrap;
list-style-type: none;
}
.toPrioritize > li {
font-size: 1rem;
display: inline-block;
white-space: nowrap;
text-align: center;
list-style-type: none;
vertical-align: middle;
}
.toPrioritize > li a{
display: block;
text-decoration: none;
padding: .75em;
position: relative;
line-height: 1em;
}
.toPrioritize > li a:focus,
.toPrioritize > li a:hover{
text-decoration: underline;
}
.toPrioritize li[data-priority="more"],
.toPrioritize li[data-priority="more"],
.toPrioritize.prioritized:not(.opened) > li[data-priority="less"],
.toPrioritize.prioritized:not(.opened) > li[data-priority="0"]{
display: none;
}
.toPrioritize.prioritized.truncated > li[data-priority="more"]{
display: inline-block;
}
.toPrioritize:not(.opened) > li[data-priority="0"],
.toPrioritize.prioritized:not(.opened) > li.demoted,
.toPrioritize.prioritized:not(.opened) > li[data-priority="less"] {
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
}
.toPrioritize.prioritized.opened,
.toPrioritize:not(.prioritized){
white-space: normal;
}
.toPrioritize.prioritized.opened li,
.toPrioritize:not(.prioritized) li{
white-space: normal;
}
.toPrioritize.prioritized.opened > li,
.toPrioritize.prioritized.opened > li.demoted,
.toPrioritize:not(.prioritized) > li {
width: 50%;
height: auto;
position: static;
}
.toPrioritize.prioritized.opened > li[data-priority="more"]{
position: absolute;
display: none !important;
}