feat(aio): terminal code styling and code mixin
This commit is contained in:
parent
53b89ec312
commit
c837b3dfb9
|
@ -21,4 +21,12 @@
|
||||||
|
|
||||||
.sidenav-content button {
|
.sidenav-content button {
|
||||||
min-width: 50px;
|
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 {
|
.code-example {
|
||||||
background-color: $backgroundgray;
|
@include codeblock($backgroundgray);
|
||||||
border-radius: 5px;
|
|
||||||
color: $darkgray;
|
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;
|
margin: 0px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
|
|
|
@ -14,6 +14,7 @@ $lightgray: #DBDBDB;
|
||||||
$mediumgray: #7E7E7E;
|
$mediumgray: #7E7E7E;
|
||||||
$darkgray: #333;
|
$darkgray: #333;
|
||||||
$black: #0A1014;
|
$black: #0A1014;
|
||||||
|
$codegreen: #17ff0b;
|
||||||
|
|
||||||
// GRADIENTS
|
// GRADIENTS
|
||||||
$bluegradient: linear-gradient(145deg,#0D47A1,#42A5F5);
|
$bluegradient: linear-gradient(145deg,#0D47A1,#42A5F5);
|
||||||
|
|
|
@ -6,4 +6,12 @@
|
||||||
transform: rotate($degrees);
|
transform: rotate($degrees);
|
||||||
transition: transform 150ms;
|
transition: transform 150ms;
|
||||||
transition-timing-function: ease-in-out;
|
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