diff --git a/assets/images/icons.png b/assets/images/icons.png index 70038ca5..8aba11bb 100644 Binary files a/assets/images/icons.png and b/assets/images/icons.png differ diff --git a/assets/images/icons@2x.png b/assets/images/icons@2x.png index 43838d4d..a2766399 100644 Binary files a/assets/images/icons@2x.png and b/assets/images/icons@2x.png differ diff --git a/assets/javascripts/templates/path_tmpl.coffee b/assets/javascripts/templates/path_tmpl.coffee index b8247b8c..17e1c602 100644 --- a/assets/javascripts/templates/path_tmpl.coffee +++ b/assets/javascripts/templates/path_tmpl.coffee @@ -1,5 +1,7 @@ +arrow = """""" + app.templates.path = (doc, type, entry) -> html = """#{doc.fullName}""" - html += """#{type.name}""" if type - html += """#{$.escape entry.name}""" if entry + html += """#{arrow}#{type.name}""" if type + html += """#{arrow}#{$.escape entry.name}""" if entry html diff --git a/assets/javascripts/templates/sidebar_tmpl.coffee b/assets/javascripts/templates/sidebar_tmpl.coffee index 2b0a873a..21c1e090 100644 --- a/assets/javascripts/templates/sidebar_tmpl.coffee +++ b/assets/javascripts/templates/sidebar_tmpl.coffee @@ -1,5 +1,7 @@ templates = app.templates +arrow = """""" + templates.sidebarDoc = (doc, options = {}) -> link = """ if options.disabled link += """Enable""" else - link += """""" + link += arrow link += """#{doc.release}""" if doc.release link += """#{doc.name}""" link += " #{doc.version}" if options.fullName or options.disabled and doc.version link + "" templates.sidebarType = (type) -> - """#{type.count}#{$.escape type.name}""" + """#{arrow}#{type.count}#{$.escape type.name}""" templates.sidebarEntry = (entry) -> """#{$.escape entry.name}""" @@ -47,16 +49,16 @@ templates.sidebarLabel = (doc, options = {}) -> templates.sidebarVersionedDoc = (doc, versions, options = {}) -> html = """
#{doc.name}
#{versions}
""" + html + """" tabindex="0">#{arrow}#{doc.name}
#{versions}
""" templates.sidebarDisabled = (options) -> - """
Disabled (#{options.count})
""" + """
#{arrow}Disabled (#{options.count})
""" templates.sidebarDisabledList = (html) -> """
#{html}
""" templates.sidebarDisabledVersionedDoc = (doc, versions) -> - """#{doc.name}
#{versions}
""" + """#{arrow}#{doc.name}
#{versions}
""" templates.docPickerNote = """
Tip: for faster and better search results, select only the docs you need.
diff --git a/assets/javascripts/views/list/list_fold.coffee b/assets/javascripts/views/list/list_fold.coffee index af1ed17f..ab8ad12e 100644 --- a/assets/javascripts/views/list/list_fold.coffee +++ b/assets/javascripts/views/list/list_fold.coffee @@ -55,6 +55,7 @@ class app.views.ListFold extends app.View return if event.which isnt 1 or event.metaKey or event.ctrlKey return unless event.pageY # ignore fabricated clicks el = event.target + el = el.parentElement if el.parentElement.tagName.toUpperCase() is 'SVG' if el.classList.contains @constructor.handleClass $.stopEvent(event) diff --git a/assets/stylesheets/components/_path.scss b/assets/stylesheets/components/_path.scss index b1c3b471..1d68936f 100644 --- a/assets/stylesheets/components/_path.scss +++ b/assets/stylesheets/components/_path.scss @@ -23,7 +23,6 @@ position: relative; display: inline-block; vertical-align: top; - margin: 0 1rem 0 0; padding: 0 .375rem; color: $textColor; text-decoration: none; @@ -36,16 +35,13 @@ margin: .5rem .375rem 0 0; @extend %doc-icon; } +} - & + &:after { - content: ''; - position: absolute; - top: 50%; - right: 100%; - width: 1rem; - height: 1rem; - margin: -.5rem 0 0 0; - pointer-events: none; - @extend %icon, %icon-path; - } +._path-arrow { + display: inline-block; + vertical-align: top; + width: .75rem; + height: .75rem; + margin: .625rem .25rem; + fill: #888; } diff --git a/assets/stylesheets/components/_sidebar.scss b/assets/stylesheets/components/_sidebar.scss index 32527986..239cab05 100644 --- a/assets/stylesheets/components/_sidebar.scss +++ b/assets/stylesheets/components/_sidebar.scss @@ -162,7 +162,7 @@ ._list-dir:not(._list-rdir), %_list-dir { - padding-left: 2.25rem; + padding-left: 2.125rem; } ._list-disabled { @@ -176,10 +176,15 @@ position: absolute; top: 0; left: .25rem; - padding: .5rem; + padding: .5rem .375rem .5rem .5rem; + width: 1rem; + height: 1rem; cursor: pointer; + fill: black; opacity: .4; + @if $style == 'dark' { fill: white; } + &:hover { opacity: .65; } ._list-rdir > & { @@ -187,18 +192,10 @@ right: .25rem; } - &:before { - @if $style == 'dark' { - @extend %icon, %icon-dir-white; - } @else { - @extend %icon, %icon-dir; - } - - .open > &, .open-title > & { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); - } - } + .open > &, .open-title > & { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); + } } ._list-sub { diff --git a/assets/stylesheets/global/_icons.scss b/assets/stylesheets/global/_icons.scss index 0f5601c5..63a3a471 100644 --- a/assets/stylesheets/global/_icons.scss +++ b/assets/stylesheets/global/_icons.scss @@ -4,7 +4,7 @@ width: 1rem; height: 1rem; background-image: image-url('icons.png'); - background-size: 4rem 3rem; + background-size: 4rem 2rem; } %doc-icon { @@ -33,17 +33,14 @@ } } -%icon-dir { background-position: 0 0; } +%icon-clipboard { background-position: 0 0; } %icon-search { background-position: -1rem 0; } %icon-link { background-position: -2.25rem -.25rem; } %icon-clear { background-position: -3rem 0; } -%icon-path { background-position: 0 -1rem; } +%icon-clipboard-white { background-position: 0 -1rem; } %icon-search-white { background-position: -1rem -1rem; } -%icon-dir-white { background-position: -2rem -1rem; } +%icon-close-white { background-position: -2rem -1rem; } %icon-link-white { background-position: -3.25rem -1.25rem; } -%icon-clipboard { background-position: 0 -2rem; } -%icon-clipboard-white { background-position: -1rem -2rem; } -%icon-close-white { background-position: -2rem -2rem; } ._icon-jest:before { background-position: 0 0; } ._icon-liquid:before { background-position: -1rem 0; } diff --git a/public/icons/ui/dir-white/SOURCE b/public/icons/ui/dir-white/SOURCE deleted file mode 100644 index fa3cf541..00000000 --- a/public/icons/ui/dir-white/SOURCE +++ /dev/null @@ -1 +0,0 @@ -http://gemicon.net/ diff --git a/public/icons/ui/dir-white/dir-white.png b/public/icons/ui/dir-white/dir-white.png deleted file mode 100644 index 0da24520..00000000 Binary files a/public/icons/ui/dir-white/dir-white.png and /dev/null differ diff --git a/public/icons/ui/dir-white/dir-white@2x.png b/public/icons/ui/dir-white/dir-white@2x.png deleted file mode 100644 index 7486a520..00000000 Binary files a/public/icons/ui/dir-white/dir-white@2x.png and /dev/null differ diff --git a/public/icons/ui/dir/SOURCE b/public/icons/ui/dir/SOURCE deleted file mode 100644 index fa3cf541..00000000 --- a/public/icons/ui/dir/SOURCE +++ /dev/null @@ -1 +0,0 @@ -http://gemicon.net/ diff --git a/public/icons/ui/dir/dir.png b/public/icons/ui/dir/dir.png deleted file mode 100644 index 65fd86c5..00000000 Binary files a/public/icons/ui/dir/dir.png and /dev/null differ diff --git a/public/icons/ui/dir/dir@2x.png b/public/icons/ui/dir/dir@2x.png deleted file mode 100644 index 5509cf96..00000000 Binary files a/public/icons/ui/dir/dir@2x.png and /dev/null differ diff --git a/public/icons/ui/path/16.png b/public/icons/ui/path/16.png deleted file mode 100644 index ffefdca9..00000000 Binary files a/public/icons/ui/path/16.png and /dev/null differ diff --git a/public/icons/ui/path/16@2x.png b/public/icons/ui/path/16@2x.png deleted file mode 100644 index 3834fe0d..00000000 Binary files a/public/icons/ui/path/16@2x.png and /dev/null differ diff --git a/views/app.erb b/views/app.erb index 411f1e5f..509859fe 100644 --- a/views/app.erb +++ b/views/app.erb @@ -30,7 +30,7 @@ @@ -55,6 +55,9 @@ + + +