Skip to content

Commit

Permalink
Change style of settings submenu
Browse files Browse the repository at this point in the history
Remove weight of the submenu by not using default button styles
  • Loading branch information
bastimeyer committed Jul 11, 2016
1 parent aa40fbb commit c0465d4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/styles/routes/Settings.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,29 @@
display: flex;
margin: 0 0 2rem;
padding: 0;
list-style: none;

> li {
margin-left: .5rem;
padding: .2em .5em .4em;
border-bottom: transparent .25em solid;
font-size: .91em;
font-weight: bold;
opacity: .5;
transition: opacity .25s ease-out;
cursor: pointer;
transition: opacity .25s ease-out, border-bottom-color .25s ease-out;

.themed({
color: @themed-text-color-alt;
});

&:first-of-type {
margin-left: 0;
}

&.active {
border-bottom-color: @color-twitch-purple;
}
}

&:hover > li,
Expand Down
2 changes: 1 addition & 1 deletion src/templates/settings/Settings.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
notifications="Notifications"
channels="Channels"
) as |subroute name|}}
{{#link-to (concat "settings." subroute) tagName="li" classNames="btn" activeClass="btn-primary active" inactiveClass="btn-neutral"}}{{name}}{{/link-to}}
{{#link-to (concat "settings." subroute) tagName="li" activeClass="active" inactiveClass="btn-neutral"}}{{name}}{{/link-to}}
{{/each-in}}
</ul>
</header>
Expand Down

0 comments on commit c0465d4

Please sign in to comment.