UNPKG

420 BSCSSView Raw
1// This mixin provides the correct offset for an inset divider based on the
2// size of the parent class (e.g. avatar vs icon)
3@mixin inset-divider-offset($offset, $padding) {
4 $mat-inset-divider-offset: #{(2 * $padding) + $offset};
5 margin-left: $mat-inset-divider-offset;
6 width: calc(100% - #{$mat-inset-divider-offset});
7
8 [dir='rtl'] & {
9 margin-left: auto;
10 margin-right: $mat-inset-divider-offset;
11 }
12}