-
Notifications
You must be signed in to change notification settings - Fork 39
/
navigation-menu.css
180 lines (145 loc) · 5.1 KB
/
navigation-menu.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/* ------------------------ Navigation Menu ------------------------------------------ */
.h5p-documentation-tool .h5p-navigation-menu {
max-width: 224px;
vertical-align: top;
background-color: #f7f7f7;
color: #666;
font-size: 0.875em;
}
/* --------------------------- Header ---------------------------------------------- */
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-header {
padding: 0.85em 1em 0;
margin-bottom: 1em;
}
/* ----------------------------- Entries -------------------------------------------- */
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry {
padding: 0 1em 1em 3em;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
position: relative;
}
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry span {
position: relative;
top: -2px;
}
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry.required-inputs-not-filled span {
color: red;
border-bottom: 1px solid red;
display: block;
}
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry:before {
content: "";
position: absolute;
left: 20px;
top: 5px;
z-index: 1;
height: 10px;
width: 10px;
background: #888;
border-radius: 50%;
box-shadow: 0 0 0px 5px #ddd;
}
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry:after {
content: '';
position: absolute;
left: 24px;
bottom: 0;
top: 20px;
z-index: 1;
height: 100%;
width: 2px;
background: #ddd;
}
/* Do not display the navigation menu "chain" for last child */
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry:last-child:after {
display: none;
}
/* Ignore paragraph browser margins */
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry > p {
margin: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/* Current entry */
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry.current:before {
background: #fff;
box-shadow: 0 0 0 5px #666;
}
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry.current {
color: #333;
}
/* Hover entry */
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry:hover:before {
background: #fff;
box-shadow: 0 0 0 5px #666;
}
.h5p-documentation-tool .h5p-navigation-menu .h5p-navigation-menu-entry:hover {
color: #333;
}
/* -------------------------- Responsive layout ------------------------------*/
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive .h5p-navigation-menu .h5p-navigation-menu-header span {
display: none;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive .h5p-navigation-menu {
width: 32px;
position: absolute;
height: 100%;
border-right: 1px solid #eee;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive .h5p-navigation-menu .h5p-navigation-menu-entry {
padding-right: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive .h5p-navigation-menu .h5p-navigation-menu-entry:before {
left: 11px;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive .h5p-navigation-menu .h5p-navigation-menu-entry:after {
left: 15px;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive .h5p-navigation-menu .h5p-navigation-menu-header {
padding: 0.75em 0 0.5em 0;
cursor: pointer;
margin-left: 7px;
color: #666;
}
/* Hover effect header */
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive .h5p-navigation-menu .h5p-navigation-menu-header:hover {
color: #333;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive .h5p-navigation-menu .h5p-navigation-menu-header:before {
font-family: "H5PFontAwesome4";
content: "\f0c9";
font-size: 1.5em;
}
/* ---------------------- Responsive layout expanded -------------------------*/
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive.expanded .h5p-navigation-menu {
position: absolute;
width: auto;
max-width: 80%;
z-index: 1;
padding-right: 1em;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive.expanded .h5p-navigation-menu .h5p-navigation-menu-header span {
display: inline-block;
position: relative;
margin-left: 1em;
font-size: 1.2em;
bottom: 0.1em;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive.expanded .h5p-navigation-menu .h5p-navigation-menu-entry span {
visibility: visible;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive.expanded .h5p-navigation-menu .h5p-navigation-menu-header {
color: #ccc;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive.expanded .h5p-navigation-menu .h5p-navigation-menu-header span {
color: #666;
}
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive.expanded .h5p-navigation-menu .h5p-navigation-menu-header:hover,
.h5p-documentation-tool .h5p-documentation-tool-main-content.responsive.expanded .h5p-navigation-menu .h5p-navigation-menu-header:hover span {
color: #333;
}