source: trip-planner-front/node_modules/@angular/material/divider/_divider-offset.scss@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 420 bytes
Line 
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}
Note: See TracBrowser for help on using the repository browser.