Skip to content

Commit

Permalink
add scrollbars to sidebars
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWoodward committed Aug 15, 2013
1 parent 7cd4116 commit d83c3f4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 13 deletions.
11 changes: 10 additions & 1 deletion styles/workspace/sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
border-left: 1px solid #999;
}

#workspace > *,
#sidebar > * {
height: 100%;
}

#greenpicker {
position: absolute;
left: 0;
Expand Down Expand Up @@ -186,6 +191,10 @@
// Root nodes in the sidebar should have no left margin
> ol { margin: 0; }

overflow-x: hidden;
overflow-y: auto;
height: 100%;

li { white-space: nowrap; }

li {
Expand Down Expand Up @@ -241,4 +250,4 @@
#workspace .edit-settings, .body-above {
display:none;
visibility: visible;
}
}
12 changes: 9 additions & 3 deletions templates/workspace/menu/toolbar-aloha.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<button class="btn action strong" rel="tooltip" title="Bold"><i class="icon-bold"></i></button>
<button class="btn action emphasis" rel="tooltip" title="Italics"><i class="icon-italic"></i></button>
<button class="btn action underline" rel="tooltip" title="Underline"><i class="icon-underline"></i></button>
<button class="btn action superscript" rel="tooltip" title="Superscript"><i class="icon-superscript"></i></button>
<button class="btn action subscript" rel="tooltip" title="Subscript"><i class="icon-subscript"></i></button>
<button class="btn action superscript" rel="tooltip" title="Superscript">A<sup>S</sup></button>
<button class="btn action subscript" rel="tooltip" title="Subscript">A<sub>S</sub></button>
</div>

<div class="btn-group">
Expand Down Expand Up @@ -67,8 +67,14 @@
<li class="disabled"><a href="#" class="action deletecolumn">Delete Column</a></li>
<li class="disabled"><a href="#" class="action deletetable">Delete Table</a></li>
</ul>
<button class="btn action insertMath" rel="tooltip" title="Insert Math">x<sup>2</sup></button>
<button class="btn action insertMath" rel="tooltip" title="Insert Math">x<sup>2+1</sup></button>
</div>

<div class="btn-group">
<button class="btn action copy" style="display: none" title="Bold">Copy Section</button>
</div>
<div class="btn-group">
<button class="btn action paste" style="display: none" title="Italics">Paste</button>
</div>
<!-- / ".btn-toolbar" -->
</span>
17 changes: 8 additions & 9 deletions templates/workspace/sidebar/toc.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{{#if mediaType}}
<h3 data-media-type="{{mediaType}}">
<i class="icon-content"></i>
<span title="Click to Change Title" class="editor-content-title">{{title}}</span>
</h3>
{{else}}
<h3><span class="go-workspace">My Workspace</span></h3>
{{/if}}

<nav id="workspace-sidebar-toc" data-type="toc">
{{#if mediaType}}
<h3 data-media-type="{{mediaType}}">
<i class="icon-content"></i>
<span title="Click to Change Title" class="editor-content-title">{{title}}</span>
</h3>
{{else}}
<h3><span class="go-workspace">My Workspace</span></h3>
{{/if}}
<ol></ol>
</nav>

0 comments on commit d83c3f4

Please sign in to comment.