You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
420 B
12 lines
420 B
// This mixin provides the correct offset for an inset divider based on the
|
|
// size of the parent class (e.g. avatar vs icon)
|
|
@mixin inset-divider-offset($offset, $padding) {
|
|
$mat-inset-divider-offset: #{(2 * $padding) + $offset};
|
|
margin-left: $mat-inset-divider-offset;
|
|
width: calc(100% - #{$mat-inset-divider-offset});
|
|
|
|
[dir='rtl'] & {
|
|
margin-left: auto;
|
|
margin-right: $mat-inset-divider-offset;
|
|
}
|
|
}
|