Skip to content

Commit

Permalink
fix(toolbar): Fix toolbar margin for desktop (#887)
Browse files Browse the repository at this point in the history
Closes #786
  • Loading branch information
touficbatache authored and yeelan0319 committed Jul 1, 2017
1 parent 22b6af0 commit 0a8a75d
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion packages/mdc-toolbar/mdc-toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

align-self: center;
margin: 0;
margin-left: 16px;
margin-left: 24px;
padding: $mdc-toobar-element-vertical-padding 0;
line-height: 1.5rem;
text-overflow: ellipsis;
Expand All @@ -93,9 +93,33 @@
@include mdc-theme-prop(color, text-primary-on-primary);
}

&__icon:last-child {
padding-right: 16px;
}

&__icon--menu {
@include mdc-shared-icon-style(menu);
@include mdc-theme-prop(color, text-primary-on-primary);

padding: 16px 24px;
}
}

.mdc-toolbar__icon--menu + .mdc-toolbar__title {
margin-left: 8px;
}

@media (max-width: $mdc-toolbar-mobile-breakpoint) {
.mdc-toolbar__icon--menu {
padding: 16px;
}

.mdc-toolbar__icon:last-child {
padding: 16px 8px;
}

.mdc-toolbar__title {
margin-left: 16px !important;
}
}

Expand Down

0 comments on commit 0a8a75d

Please sign in to comment.