Skip to content

Commit f26f449

Browse files
authored
Merge pull request #225 from WhitestormJS/#195b
#195b
2 parents 09ae0a6 + cfe7187 commit f26f449

File tree

13 files changed

+2751
-8
lines changed

13 files changed

+2751
-8
lines changed

examples/assets/css/style.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body {
1212
a {
1313
text-decoration: none;
1414
}
15-
* {
15+
*:not(.icon) {
1616
font-family: 'Inconsolata', monospace !important;
1717
}
1818
/*
@@ -42,6 +42,7 @@ div.ui.sidebar.vertical.inverted.menu.left.overlay.visible {
4242
width: calc(100% - 270px);
4343
float: right;
4444
height: 100%;
45+
position: relative;
4546
}
4647
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
4748
#panel {
@@ -121,6 +122,15 @@ body {
121122
width: 100%;
122123
height: 100%;
123124
}
125+
#sidebar {
126+
background: #fafafa;
127+
}
128+
#sidebar #top-nav {
129+
background: #262C38;
130+
}
131+
#sidebar #path {
132+
padding: 16px;
133+
}
124134
#sidebar.slideout-menu {
125135
position: fixed;
126136
top: 0;
@@ -138,6 +148,11 @@ body {
138148
#sidebar.slideout-menu-right {
139149
right: 0;
140150
}
151+
#sidebar input[type='text'] {
152+
border-radius: 0;
153+
background: #fafafa;
154+
border: none;
155+
}
141156
.slideout-open #sidebar.slideout-menu {
142157
display: block;
143158
}

examples/assets/css/vendor.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11188,8 +11188,7 @@ a.ui.inverted.grey.header:hover {
1118811188
*******************************/
1118911189
@font-face {
1119011190
font-family: 'Icons';
11191-
src: url("../../themes/default/assets/fonts/icons.eot");
11192-
src: url("../../themes/default/assets/fonts/icons.eot?#iefix") format('embedded-opentype'), url("../../themes/default/assets/fonts/icons.woff2") format('woff2'), url("../../themes/default/assets/fonts/icons.woff") format('woff'), url("../../themes/default/assets/fonts/icons.ttf") format('truetype'), url("../../themes/default/assets/fonts/icons.svg#icons") format('svg');
11191+
src: url('/assets/fonts/icons.ttf');
1119311192
font-style: normal;
1119411193
font-weight: normal;
1119511194
font-variant: normal;

examples/assets/fonts/icons.eot

162 KB
Binary file not shown.

examples/assets/fonts/icons.svg

Lines changed: 2671 additions & 0 deletions
Loading

examples/assets/fonts/icons.ttf

162 KB
Binary file not shown.

examples/assets/fonts/icons.woff

95.7 KB
Binary file not shown.

examples/assets/fonts/icons.woff2

75.4 KB
Binary file not shown.

examples/assets/js/script.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,26 @@ if (isMobile) {
1515
tolerance: 70
1616
});
1717
}
18+
19+
// Filter
20+
21+
const filter = document.getElementById('filter');
22+
const items = document.querySelectorAll('#sidebar .item .minor');
23+
const categories = document.querySelectorAll('#sidebar .item.category');
24+
25+
filter.addEventListener('keyup', function (e) {
26+
items.forEach(item => {
27+
if (
28+
item.innerText.indexOf(e.target.value) > -1
29+
|| e.target.value === ''
30+
) item.style.display = 'block';
31+
else item.style.display = 'none';
32+
});
33+
34+
categories.forEach(function (cat) {
35+
const isHidden = [].slice.call(cat.querySelectorAll('.minor')).every(item => item.style.display === 'none');
36+
37+
if (isHidden) cat.style.display = 'none';
38+
else cat.style.display = 'block';
39+
});
40+
});

examples/assets/less/SemanticUI/definitions/elements/icon.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
@font-face {
2727
font-family: 'Icons';
28-
src: @fallbackSRC;
29-
src: @src;
28+
src: url('/assets/fonts/icons.ttf');
29+
src: url('/assets/fonts/icons.ttf');
3030
font-style: normal;
3131
font-weight: normal;
3232
font-variant: normal;

examples/assets/less/style.less

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ a {
1414
text-decoration: none;
1515
}
1616

17-
* {
17+
*:not(.icon) {
1818
font-family: 'Inconsolata', monospace !important;
1919
}
2020

@@ -50,6 +50,7 @@ div.ui.sidebar.vertical.inverted.menu.left.overlay.visible {
5050
width: calc(~"100% - 270px");
5151
float: right;
5252
height: 100%;
53+
position: relative;
5354

5455
@media only screen
5556
and (min-device-width: 320px)
@@ -154,6 +155,16 @@ body {
154155
}
155156

156157
#sidebar {
158+
background: #fafafa;
159+
160+
#top-nav {
161+
background: #262C38;
162+
}
163+
164+
#path {
165+
padding: 16px;
166+
}
167+
157168
&.slideout-menu {
158169
position: fixed;
159170
top: 0;
@@ -173,6 +184,12 @@ body {
173184
&.slideout-menu-right {
174185
right: 0;
175186
}
187+
188+
input[type='text'] {
189+
border-radius: 0;
190+
background: #fafafa;
191+
border: none;
192+
}
176193
}
177194

178195
.slideout-open #sidebar.slideout-menu {

0 commit comments

Comments
 (0)