Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(snackbar): Sort CSS so there is no descending specificity #1936

Merged
merged 2 commits into from
Jan 11, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions packages/mdc-snackbar/mdc-snackbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,6 @@
flex-direction: column;
}

.mdc-snackbar--action-on-bottom .mdc-snackbar__text {
margin-right: inherit;
}

.mdc-snackbar--action-on-bottom .mdc-snackbar__action-wrapper {
@include mdc-rtl-reflexive-box(margin, left, auto);

flex-direction: column;
justify-content: flex-start;
margin-top: -12px;
margin-bottom: 8px;
}

.mdc-snackbar__text {
@include mdc-typography(body1);
@include mdc-rtl-reflexive-box(margin, right, auto, ".mdc-snackbar");
Expand All @@ -128,15 +115,22 @@
}
}

.mdc-snackbar--multiline .mdc-snackbar__text {
height: 80px;
.mdc-snackbar--action-on-bottom .mdc-snackbar__text {
margin-right: inherit;
}

/* stylelint-disable plugin/selector-bem-pattern */
.mdc-snackbar--multiline.mdc-snackbar--action-on-bottom .mdc-snackbar__text {
margin: 0;
.mdc-snackbar--action-on-bottom .mdc-snackbar__action-wrapper {
@include mdc-rtl-reflexive-box(margin, left, auto);

flex-direction: column;
justify-content: flex-start;
margin-top: -12px;
margin-bottom: 8px;
}

.mdc-snackbar--multiline .mdc-snackbar__text {
height: 80px;
}
/* stylelint-enable plugin/selector-bem-pattern */

.mdc-snackbar__action-button {
@include mdc-typography(button);
Expand Down Expand Up @@ -175,4 +169,10 @@
opacity: 1;
}

/* stylelint-disable plugin/selector-bem-pattern */
.mdc-snackbar--multiline.mdc-snackbar--action-on-bottom .mdc-snackbar__text {
margin: 0;
}
/* stylelint-enable plugin/selector-bem-pattern */

/* postcss-bem-linter: end */