Skip to content

display descriptions with ellipses #809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/resources/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ dd.callable, dd.constant, dd.property {

dd p {
margin-top: 4px;
white-space: nowrap;
overflow-x: hidden;
text-overflow: ellipsis;
}

section.summary h2 {
Expand Down Expand Up @@ -503,6 +506,7 @@ span.top-level-variable-type {
padding: 16px;
}

.sidebar h5,
.sidebar ol li {
text-overflow: ellipsis;
overflow: hidden;
Expand Down Expand Up @@ -553,7 +557,7 @@ button {
}

#overlay-under-drawer.active {
opacity: 0.7;
opacity: 0.4;
height: 100%;
z-index: 1999;
position: fixed;
Expand Down
20 changes: 11 additions & 9 deletions lib/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
{{>head}}

<div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
<h5>{{self.name}}</h5>

<ol>
<li class="section-title"><a href="{{package.href}}#libraries">Libraries</a></li>
{{#package.libraries}}
<li><a href="{{href}}">{{name}}</a></li>
{{/package.libraries}}
</ol>
</div>

<div class="col-xs-12 col-sm-9 col-md-8 main-content">

{{#package}}
Expand All @@ -25,15 +36,6 @@ <h2>Libraries</h2>

<div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">

<h5>{{self.name}}</h5>

<ol>
<li class="section-title"><a href="{{package.href}}#libraries">Libraries</a></li>
{{#package.libraries}}
<li><a href="{{href}}">{{name}}</a></li>
{{/package.libraries}}
</ol>

</div><!--/.sidebar-offcanvas-right-->

{{>footer}}