This commit is contained in:
Jeremy Thomas 2017-04-02 16:41:05 +01:00
parent ca20384d9e
commit 410fd187be
4 changed files with 27 additions and 47 deletions

View File

@ -15,6 +15,7 @@
* Fix #484 icon alignment * Fix #484 icon alignment
* Fix #506 bold nav menu * Fix #506 bold nav menu
* Fix #581 nav container * Fix #581 nav container
* Fix #512 nav grouped buttons
## 0.4.0 ## 0.4.0

View File

@ -39,8 +39,9 @@
Blog Blog
</a> </a>
{% if page.route != 'nothing' %} <div class="nav-item">
<span class="nav-item"> <div class="field is-grouped">
<p class="control">
<a id="twitter" <a id="twitter"
class="button" class="button"
data-social-network="Twitter" data-social-network="Twitter"
@ -53,32 +54,16 @@
</span> </span>
<span>Tweet</span> <span>Tweet</span>
</a> </a>
</p>
<p class="control">
<a class="button is-primary" href="{{ site.download }}"> <a class="button is-primary" href="{{ site.download }}">
<span class="icon"> <span class="icon">
<i class="fa fa-download"></i> <i class="fa fa-download"></i>
</span> </span>
<span>Download</span> <span>Download</span>
</a> </a>
</span> </p>
{% else %} </div>
<span class="nav-item"> </div>
<a class="button is-primary is-inverted is-outlined"
data-social-network="Twitter"
data-social-action="tweet"
data-social-target="http://bulma.io/"
href="https://twitter.com/intent/tweet?text={{ 'Bulma: a modern CSS framework based on Flebox' | urlencode }}&url=http://bulma.io/&via=jgthms">
<span class="icon">
<i class="fa fa-twitter"></i>
</span>
<span>Tweet</span>
</a>
<a class="button is-primary is-inverted" href="{{ site.download }}">
<span class="icon">
<i class="fa fa-download"></i>
</span>
<span>Download</span>
</a>
</span>
{% endif %}
</div> </div>
</nav> </nav>

View File

@ -4174,10 +4174,6 @@ input[type="submit"].button {
max-height: 1.75rem; max-height: 1.75rem;
} }
.nav-item .button + .button {
margin-left: 0.75rem;
}
.nav-item .tag:first-child:not(:last-child) { .nav-item .tag:first-child:not(:last-child) {
margin-right: 0.5rem; margin-right: 0.5rem;
} }

View File

@ -22,8 +22,6 @@ $nav-height: 3.25rem !default
flex-shrink: 0 flex-shrink: 0
img img
max-height: 1.75rem max-height: 1.75rem
.button + .button
margin-left: 0.75rem
.tag .tag
&:first-child:not(:last-child) &:first-child:not(:last-child)
margin-right: 0.5rem margin-right: 0.5rem