make left sidebar tabs more responsive

This commit is contained in:
Lisa Passing 2015-03-19 12:56:44 +01:00
parent ea9e9d81c1
commit aedd0d97fb
2 changed files with 21 additions and 6 deletions

View File

@ -60,10 +60,11 @@ $sb-font-size: 14px
border-bottom: solid 2px $sb-grey border-bottom: solid 2px $sb-grey
width: 90% width: 90%
margin: auto margin: auto
ul
height: 1.7em .active a:after,
li.float-right a:hover:after
padding-right: 0 bottom: -4px
.icon--plus .icon--plus
&:after &:after
transform: translateX(35%) transform: translateX(35%)
@ -73,7 +74,21 @@ $sb-font-size: 14px
.icon--plus:after .icon--plus:after
color: $teal1 color: $teal1
&:after &:after
bottom: 0.05em bottom: 0
@media (min-width: #{upper-bound($large-range)})
ul
height: 1.7em
li
padding-right: 1.5em
@media (max-width: #{upper-bound($large-range)})
li
display: block !important
float: none
a
padding: 0 0 .35em
margin-bottom: .8em
.sidebar-list .sidebar-list

View File

@ -16,7 +16,7 @@
</li> </li>
{{/if}} {{/if}}
<li id="tab_new" {{bind-attr class="view.classNew :float-right"}}> <li id="tab_new" {{bind-attr class="view.classNew"}}>
{{#link-to "profile" trackEvent="add-repository-from-list" title="Add New Repository"}} {{#link-to "profile" trackEvent="add-repository-from-list" title="Add New Repository"}}
<span class="icon icon--plus"></span> <span class="icon icon--plus"></span>
{{/link-to}} {{/link-to}}