mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-14 11:14:24 +00:00
Added .is-up modifier for dropdown. (#1254)
This commit is contained in:
parent
fc5ddd473c
commit
9e294874a2
@ -192,6 +192,26 @@ variables:
|
|||||||
</div>
|
</div>
|
||||||
{% endcapture %}
|
{% endcapture %}
|
||||||
|
|
||||||
|
{% capture dropdown_up_example %}
|
||||||
|
<div class="dropdown is-up is-active">
|
||||||
|
<div class="dropdown-trigger">
|
||||||
|
<button class="button is-info" aria-haspopup="true" aria-controls="dropdown-menu7">
|
||||||
|
<span>Dropup button</span>
|
||||||
|
<span class="icon is-small">
|
||||||
|
<i class="fa fa-angle-up" aria-hidden="true"></i>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div class="dropdown-menu" id="dropdown-menu7" role="menu">
|
||||||
|
<div class="dropdown-content">
|
||||||
|
<div class="dropdown-item">
|
||||||
|
<p>You can add the <code>is-up</code> modifier to have a dropdown menu that appears above the dropdown button.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endcapture %}
|
||||||
|
|
||||||
{% include subnav-components.html %}
|
{% include subnav-components.html %}
|
||||||
|
|
||||||
<section class="section">
|
<section class="section">
|
||||||
@ -329,6 +349,23 @@ variables:
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% include anchor.html name="Dropup" %}
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
<p>
|
||||||
|
You can add the <code>is-up</code> modifier to have a dropdown menu that appears above the dropdown button.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="columns">
|
||||||
|
<div class="column is-half" style="display: flex; align-items: flex-end;">
|
||||||
|
{{dropdown_up_example}}
|
||||||
|
</div>
|
||||||
|
<div class="column is-half">
|
||||||
|
{% highlight html %}{{dropdown_up_example}}{% endhighlight %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% include variables.html %}
|
{% include variables.html %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,6 +25,12 @@ $dropdown-divider-background-color: $border !default
|
|||||||
.dropdown-menu
|
.dropdown-menu
|
||||||
left: auto
|
left: auto
|
||||||
right: 0
|
right: 0
|
||||||
|
&.is-up
|
||||||
|
.dropdown-menu
|
||||||
|
top: auto
|
||||||
|
bottom: 100%
|
||||||
|
padding-top: unset
|
||||||
|
padding-bottom: $dropdown-content-offset
|
||||||
|
|
||||||
.dropdown-menu
|
.dropdown-menu
|
||||||
display: none
|
display: none
|
||||||
|
Loading…
Reference in New Issue
Block a user