Skip to content

Commit

Permalink
fix(layout): toggleable layout title now aligns with persistent layouts
Browse files Browse the repository at this point in the history
The toggleable layouts had the title 1.5rem instead of 1rem from the
left of the "drawer"/sheet.
  • Loading branch information
mlaursen committed Feb 13, 2021
1 parent 9309985 commit 8b8efb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/layout/src/_mixins.scss
Expand Up @@ -106,11 +106,11 @@

.rmd-layout-nav-toggle {
&--offset {
$title-margin: $rmd-app-bar-title-nav-margin -
($rmd-app-bar-lr-margin * 2);
$nav-size: rmd-layout-theme-var(nav-width);
$icon-size: rmd-button-theme-var(icon-size);
$distance: calc(
#{$rmd-app-bar-title-nav-margin} + #{$nav-size} - #{$icon-size}
);
$distance: calc(#{$title-margin} + #{$nav-size} - #{$icon-size});

@include rmd-utils-rtl-auto(
margin-right,
Expand Down

0 comments on commit 8b8efb2

Please sign in to comment.