feat(aio): display code-tabs in a Material Design "card" (#24027)
This helps to connect the "content" of the tab to its label. Closes #23985 PR Close #24027
This commit is contained in:

committed by
Matias Niemelä

parent
96a0e131bf
commit
ddd6124802
@ -3,8 +3,9 @@ code-example, code-tabs {
|
||||
display: block;
|
||||
}
|
||||
|
||||
code-example,
|
||||
code-tabs mat-tab-body {
|
||||
code-example {
|
||||
|
||||
|
||||
&:not(.no-box) {
|
||||
background-color: rgba($backgroundgray, 0.2);
|
||||
border: 0.5px solid $lightgray;
|
||||
@ -27,6 +28,16 @@ code-tabs mat-tab-body {
|
||||
}
|
||||
}
|
||||
|
||||
code-example, code-tabs {
|
||||
.mat-card {
|
||||
padding: 0;
|
||||
border-radius: 5px;
|
||||
}
|
||||
code {
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
||||
// TERMINAL / SHELL TEXT STYLES
|
||||
|
||||
code-example.code-shell, code-example[language=sh], code-example[language=bash] {
|
||||
|
Reference in New Issue
Block a user