feat(aio): terminal code styling and code mixin
This commit is contained in:
parent
53b89ec312
commit
c837b3dfb9
|
@ -21,4 +21,12 @@
|
|||
|
||||
.sidenav-content button {
|
||||
min-width: 50px;
|
||||
}
|
||||
|
||||
.l-sub-section {
|
||||
color: $blue;
|
||||
margin: 0px 0px 10px 0px;
|
||||
padding: 10px;
|
||||
background: $offwhite;
|
||||
border-left: 4px solid $blue;
|
||||
}
|
|
@ -1,13 +1,14 @@
|
|||
.code-example {
|
||||
background-color: $backgroundgray;
|
||||
border-radius: 5px;
|
||||
@include codeblock($backgroundgray);
|
||||
color: $darkgray;
|
||||
padding: 20px;
|
||||
margin: 24px auto;
|
||||
border: 0.5px solid $lightgray;
|
||||
}
|
||||
|
||||
.code-example pre {
|
||||
.code-shell code {
|
||||
@include codeblock($darkgray);
|
||||
color: $codegreen;
|
||||
}
|
||||
|
||||
.code-example pre, code-example pre {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
white-space: pre-wrap;
|
||||
|
|
|
@ -14,6 +14,7 @@ $lightgray: #DBDBDB;
|
|||
$mediumgray: #7E7E7E;
|
||||
$darkgray: #333;
|
||||
$black: #0A1014;
|
||||
$codegreen: #17ff0b;
|
||||
|
||||
// GRADIENTS
|
||||
$bluegradient: linear-gradient(145deg,#0D47A1,#42A5F5);
|
||||
|
|
|
@ -6,4 +6,12 @@
|
|||
transform: rotate($degrees);
|
||||
transition: transform 150ms;
|
||||
transition-timing-function: ease-in-out;
|
||||
}
|
||||
|
||||
@mixin codeblock($bgcolor) {
|
||||
background-color: $bgcolor;
|
||||
border-radius: 5px;
|
||||
padding: 20px;
|
||||
margin: 24px auto;
|
||||
border: 0.5px solid $lightgray;
|
||||
}
|
Loading…
Reference in New Issue