feat(aio): set “avoid” class by convention (filename has “.avoid.”)
Most important for StyleGuide which lost example css class in migration. Also hides copy for “avoid” files.
This commit is contained in:

committed by
Matias Niemelä

parent
673d8ae583
commit
9ca2b4c967
@ -28,13 +28,16 @@ code-example header {
|
||||
margin: -17px;
|
||||
}
|
||||
|
||||
code-example.is-anti-pattern header {
|
||||
code-example.avoid header,
|
||||
code-example.avoidFile header {
|
||||
border: 2px solid $anti-pattern;
|
||||
background: $anti-pattern;
|
||||
}
|
||||
|
||||
code-example.is-anti-pattern,
|
||||
code-tabs.is-anti-pattern md-tab-body {
|
||||
code-example.avoid,
|
||||
code-example.avoidFile,
|
||||
code-tabs.avoid md-tab-body,
|
||||
code-tabs.avoidFile md-tab-body {
|
||||
border: 0.5px solid $anti-pattern;
|
||||
}
|
||||
|
||||
@ -223,4 +226,4 @@ code-tabs md-tab-group *.mat-ripple-element, code-tabs md-tab-group *.mat-tab-bo
|
||||
|
||||
[role="tabpanel"] {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user