feat(aio): display “code sample missing” message when no code sample
Not having code in a `<code-example>` or `<code-tabs>` is presumed to be an error. Hides the copy button as well.
This commit is contained in:

committed by
Pete Bacon Darwin

parent
ae70293df3
commit
309bae0a0b
@ -56,7 +56,7 @@ aio-code pre {
|
||||
code ol {
|
||||
font-family: $main-font;
|
||||
color: $lightgray;
|
||||
|
||||
|
||||
li {
|
||||
margin: 0;
|
||||
font-family: $code-font;
|
||||
@ -64,6 +64,10 @@ code ol {
|
||||
}
|
||||
}
|
||||
|
||||
.code-missing {
|
||||
color: $darkred;
|
||||
}
|
||||
|
||||
.prettyprint {
|
||||
position: relative;
|
||||
}
|
||||
|
Reference in New Issue
Block a user