Skip to content

Commit fc744bb

Browse files
New widget icons
1 parent f7110c7 commit fc744bb

File tree

26 files changed

+691
-258
lines changed

26 files changed

+691
-258
lines changed

bin/themes/default/assets/css/main.css

Lines changed: 106 additions & 52 deletions
Large diffs are not rendered by default.
1.5 KB
Loading
648 Bytes
Loading

bin/themes/default/assets/js/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/themes/default/layouts/default.hbs

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="table-wrap">
1919
<div class="table-cell" id="tsd-search" data-index="{{relativeURL "assets/js/search.js"}}" data-base="{{relativeURL "./"}}">
2020
<div class="field">
21-
<label for="tsd-search-field">Search</label>
21+
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
2222
<input id="tsd-search-field" type="text" />
2323
</div>
2424

@@ -30,20 +30,27 @@
3030
<a href="{{relativeURL "index.html"}}" class="title">{{project.name}}</a>
3131
</div>
3232

33-
<div class="table-cell" id="tsd-filter">
34-
<input type="checkbox" id="tsd-filter-inherited" checked />
35-
<label for="tsd-filter-inherited">Inherited</label>
33+
<div class="table-cell" id="tsd-widgets">
34+
<div id="tsd-filter">
35+
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
36+
<div class="tsd-filter-group">
37+
<input type="checkbox" id="tsd-filter-inherited" checked />
38+
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
3639

37-
<input type="checkbox" id="tsd-filter-private" checked />
38-
<label for="tsd-filter-private">Private</label>
40+
<input type="checkbox" id="tsd-filter-private" checked />
41+
<label class="tsd-widget" for="tsd-filter-private">Private</label>
3942

40-
{{#unless settings.excludeExternals}}
41-
<input type="checkbox" id="tsd-filter-externals" checked />
42-
<label for="tsd-filter-externals">Externals</label>
43-
{{/unless}}
43+
{{#unless settings.excludeExternals}}
44+
<input type="checkbox" id="tsd-filter-externals" checked />
45+
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
46+
{{/unless}}
4447

45-
<input type="checkbox" id="tsd-filter-only-exported" />
46-
<label for="tsd-filter-only-exported">Only exported</label>
48+
<input type="checkbox" id="tsd-filter-only-exported" />
49+
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
50+
</div>
51+
</div>
52+
53+
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
4754
</div>
4855
</div>
4956
</div>
@@ -143,6 +150,7 @@
143150
</div>
144151
{{/unless}}
145152

153+
<div class="overlay"></div>
146154
<script src="{{relativeURL "assets/js/main.js"}}"></script>
147155
<script>if (location.protocol == 'file:') document.write('<script src="{{relativeURL "assets/js/search.js"}}"><' + '/script>');</script>
148156

bin/themes/default/partials/member.signature.body.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
{{> comment}}
33

44
{{#if children}}
5-
<h4>Parameters</h4>
6-
<ul>
5+
<h4 class="tsd-parameters-title">Parameters</h4>
6+
<ul class="tsd-parameters">
77
{{#each children}}
88
<li>
99
<h5>{{#compact}}
@@ -24,7 +24,7 @@
2424
{{/if}}
2525

2626
{{#if type}}
27-
<h4>Returns {{#with type}}{{>type}}{{/with}}</h4>
27+
<h4 class="tsd-returns-title">Returns {{#with type}}{{>type}}{{/with}}</h4>
2828
{{#if comment.returns}}
2929
{{#markdown}}{{{comment.returns}}}{{/markdown}}
3030
{{/if}}

bin/themes/minimal/layouts/default.hbs

Lines changed: 107 additions & 53 deletions
Large diffs are not rendered by default.
Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,39 @@
1-
// Toolbar
1+
// Fonts
22
//
3-
%TOOLBAR_SHADOW
4-
box-shadow: 0 0 4px rgba(#000, 0.5)
3+
$FONT_FAMILY: 'Segoe UI', sans-serif
4+
$FONT_FAMILY_MONO: Menlo, Monaco, Consolas, 'Courier New', monospace
55

6-
$TOOLBAR_COLOR: #fff
7-
$TOOLBAR_TEXT_COLOR: #333
8-
$TOOLBAR_HEIGHT: 40px
6+
$FONT_SIZE: 16px
7+
$FONT_SIZE_MONO: 14px
8+
9+
$LINE_HEIGHT: 1.333em
910

1011

11-
$COLOR_SECTION: #fff
12+
// Colors
13+
//
1214
$COLOR_BACKGROUND: #fdfdfd
1315
$COLOR_TEXT: #222
16+
$COLOR_TEXT_ASIDE: #808080
17+
$COLOR_LINK: #4da6ff
18+
19+
$COLOR_MENU_DIVIDER: #eee
20+
$COLOR_MENU_DIVIDER_FOCUS: #000
21+
$COLOR_MENU_LABEL: #808080
22+
23+
$COLOR_PANEL: #fff
24+
$COLOR_PANEL_DIVIDER: #eee
1425

15-
$FONT-FAMILY: 'Segoe UI', sans-serif
16-
$FONT_SIZE: 16px
26+
$COLOR_COMMENT_TAG: #808080
27+
$COLOR_COMMENT_TAG_TEXT: #fff
28+
29+
$COLOR_CODE_BACKGROUND: rgba(#000, 0.04)
30+
31+
$COLOR_TS: #9600ff
32+
$COLOR_TS_INTERFACE: #7da01f
33+
$COLOR_TS_ENUM: #cc9900
34+
$COLOR_TS_CLASS: #4da6ff
35+
$COLOR_TS_PRIVATE: #808080
36+
37+
$TOOLBAR_COLOR: #fff
38+
$TOOLBAR_TEXT_COLOR: #333
39+
$TOOLBAR_HEIGHT: 40px

themes/default/assets/css/elements/_comment.sass

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ dl.tsd-comment-tags
1818
padding: 1px 5px
1919
margin: 0 10px 0 0
2020
border-radius: 4px
21-
border: 1px solid #999
22-
color: #999
21+
border: 1px solid $COLOR_COMMENT_TAG
22+
color: $COLOR_COMMENT_TAG
2323
font-size: 0.8em
2424
font-weight: normal
2525

@@ -41,7 +41,7 @@ dl.tsd-comment-tags
4141
//
4242
.tsd-panel.tsd-comment .lead
4343
font-size: 1.1em
44-
line-height: 1.333em
44+
line-height: $LINE_HEIGHT
4545
margin-bottom: 2em
4646

4747
&:last-child

themes/default/assets/css/elements/_filter.sass

Lines changed: 30 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -29,49 +29,44 @@
2929
// </div>
3030
//
3131
#tsd-filter
32-
display: table-cell
33-
font-size: 0
34-
line-height: 0
32+
position: relative
33+
display: inline-block
34+
height: $TOOLBAR_HEIGHT
35+
vertical-align: bottom
3536

3637
.no-filter &
3738
display: none
3839

39-
input
40-
display: none
41-
42-
label
43-
transition: color 0.2s, background-color 0.2s, opacity 0.2s
40+
.tsd-filter-group
4441
display: inline-block
4542
height: $TOOLBAR_HEIGHT
46-
margin: 0 0 0 1px
47-
padding: 0 10px
48-
color: $TOOLBAR_TEXT_COLOR
49-
background-color: transparent
50-
font-size: $FONT_SIZE
51-
line-height: $TOOLBAR_HEIGHT
52-
cursor: pointer
53-
opacity: 0.75
43+
vertical-align: bottom
44+
white-space: nowrap
45+
46+
input
47+
display: none
5448

55-
&:hover
56-
opacity: 1
49+
+size-xs-sm
50+
.tsd-filter-group
51+
display: block
52+
position: absolute
53+
top: $TOOLBAR_HEIGHT
54+
right: 20px
55+
height: auto
56+
background-color: $COLOR_PANEL
57+
visibility: hidden
58+
transform: translate(50%,0)
59+
box-shadow: 0 0 4px rgba(#000, 0.25)
5760

58-
&:before
59-
content: ''
60-
display: inline-block
61-
width: 11px
62-
height: 11px
63-
margin: 0 4px 3px 0
64-
border: 1px solid $TOOLBAR_TEXT_COLOR
65-
vertical-align: middle
66-
border-radius: 2px
61+
.has-options &
62+
visibility: visible
6763

68-
input:checked + label
69-
&:before
70-
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAg0lEQVR42mP8//8/A7GAiYEEwAIiTExM8KlpBmK1M2fOhLMQMKwKiGuA+B6yM5yBOBRNIUhRKxDfAmI3ZMWTgXgVEEcgKQRZfxuIPYH4LrLiRCB+B8SLgHgtVCHIRA+YE5AVnwRiPyD+DsRB2BSiB91RIA4G4oNA7AXE99F9y0izSAEAi5sfuLrn8xgAAAAASUVORK5CYII=)
71-
background-size: 11px 11px
64+
.to-has-options &
65+
animation: fade-in 0.2s
7266

73-
+retina
74-
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAMAAADzapwJAAAAbFBMVEX///8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMGjw0YAAAAI3RSTlMAAHd5drsP6/x6EXg5HQa9tHTD6qM0ewSp5jcHsgu/EMG+fFYgEsoAAAB3SURBVHhetc1HFsMgDEVRf+PaS3ov2v8eDRKEE5Ipb6Y7+Erihu9U3vzhmWj85YyIKuZQqRYeeqepUQXmYio70VZUeCHasCujLSxv9VHugD3vwvHhqP105m8pPozLVUNl1TNuuSannlHcRQPG48kaMprXG56jtgI0cQrrsMDSOQAAAABJRU5ErkJggg==)
67+
.from-has-options &
68+
animation: fade-out 0.2s
7569

76-
&:hover
77-
opacity: 1
70+
label
71+
display: block
72+
padding-right: 20px

0 commit comments

Comments
 (0)