Skip to content

Commit

Permalink
Change Dropdown menus max-height to 50% viewport height
Browse files Browse the repository at this point in the history
  • Loading branch information
picturepan2 committed Jun 13, 2017
1 parent 123cfa1 commit aba0d05
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
2 changes: 2 additions & 0 deletions docs/dist/spectre.css
Original file line number Diff line number Diff line change
Expand Up @@ -2117,6 +2117,8 @@ code {
animation: slide-down .15s ease 1;
display: none;
left: 0;
max-height: 50vh;
overflow-y: auto;
position: absolute;
top: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion docs/dist/spectre.min.css

Large diffs are not rendered by default.

17 changes: 3 additions & 14 deletions docs/elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -355,24 +355,13 @@ <h5>Korean</h5>
</section>
<div class="columns">
<div class="column col-xs-12">
<button class="btn">default normal</button>
<button class="btn">default button</button>
</div>
<div class="column col-xs-12">
<button class="btn btn-primary">primary normal</button>
<button class="btn btn-primary">primary button</button>
</div>
<div class="column col-xs-12">
<button class="btn btn-link">link normal</button>
</div>
</div>
<div class="columns">
<div class="column col-xs-12">
<button class="btn active">default active</button>
</div>
<div class="column col-xs-12">
<button class="btn btn-primary active">primary active</button>
</div>
<div class="column col-xs-12">
<button class="btn btn-link active">link active</button>
<button class="btn btn-link">link button</button>
</div>
</div>

Expand Down
2 changes: 2 additions & 0 deletions src/dropdowns.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
animation: slide-down .15s ease 1;
display: none;
left: 0;
max-height: 50vh;
overflow-y: auto;
position: absolute;
top: 100%;
}
Expand Down

0 comments on commit aba0d05

Please sign in to comment.