-
Notifications
You must be signed in to change notification settings - Fork 59
/
greedynav.css
75 lines (72 loc) · 1.29 KB
/
greedynav.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
nav.greedy {
position: relative;
height: 60px;
display: flex;
align-items: center;
background: #e0e0e0;
}
nav.greedy h1 {
display: flex;
align-self: stretch;
align-items: center;
background: #c6c6c6;
padding: 0 1rem;
font-weight: bold;
}
nav.greedy button {
align-self: stretch;
transition: all .4s ease-out;
padding: 0 1rem 0 1.5rem;
outline: 0;
border: 0;
font-size: 0.9rem;
font-weight: bold;
background: #c8c8c8;
}
nav.greedy button.hidden {
transition: none;
border-right: 0.5rem solid #b6b6b6;
width: 0;
padding: 0;
overflow: hidden;
}
nav.greedy button::after {
content: attr(count);
display: inline-flex;
width: 25px;
height: 25px;
align-items: center;
justify-content: center;
background: #9f9f9f;
color: #f2f2f2;
border-radius: 50%;
font-size: 14px;
line-height: 14px;
margin-left: 1rem;
margin-right: calc(-1rem + -8px);
}
nav.greedy ul.links {
display: flex;
justify-content: flex-end;
flex: 1;
overflow: hidden;
}
nav.greedy ul.links li {
flex: none;
padding: 1rem;
}
nav.greedy ul.links li a {
color: #404040;
}
nav.greedy ul.hidden-links {
position: absolute;
background: #d8d8d8;
right: 0;
top: 100%;
}
nav.greedy ul.hidden-links.hidden {
display: none;
}
nav.greedy ul.hidden-links li {
padding: 1rem;
}