2017-03-26 13:32:29 -07:00
|
|
|
code-example,
|
|
|
|
code-tabs md-tab-body {
|
2017-04-14 10:54:48 -07:00
|
|
|
background-color: rgba($backgroundgray, 0.2);
|
2017-03-26 13:32:29 -07:00
|
|
|
border: 0.5px solid $lightgray;
|
|
|
|
border-radius: 5px;
|
2017-03-15 08:19:19 +11:00
|
|
|
color: $darkgray;
|
2017-03-26 13:32:29 -07:00
|
|
|
display: block;
|
2017-03-31 11:00:02 -07:00
|
|
|
padding: 8px 16px;
|
2017-03-27 15:37:11 -07:00
|
|
|
margin: 16px auto;
|
2017-03-31 16:36:21 -07:00
|
|
|
|
|
|
|
code {
|
|
|
|
overflow: auto;
|
|
|
|
}
|
2017-03-15 08:19:19 +11:00
|
|
|
}
|
|
|
|
|
2017-03-31 11:00:02 -07:00
|
|
|
// TERMINAL / SHELL TEXT STYLES
|
|
|
|
|
|
|
|
code-example.code-shell, code-example[language=sh], code-example[language=bash] {
|
|
|
|
background-color: $darkgray;
|
|
|
|
}
|
|
|
|
|
2017-03-26 13:32:29 -07:00
|
|
|
code-example header {
|
2017-04-14 10:54:48 -07:00
|
|
|
background-color: $accentblue;
|
2017-03-26 13:32:29 -07:00
|
|
|
border-radius: 5px 5px 0 0;
|
|
|
|
color: $offwhite;
|
|
|
|
font-size: 16px;
|
2017-04-14 12:28:39 -07:00
|
|
|
padding: 8px 16px;
|
2017-04-03 11:16:33 -07:00
|
|
|
margin: -17px;
|
2017-03-23 11:58:59 -07:00
|
|
|
}
|
|
|
|
|
2017-05-02 22:39:14 -07:00
|
|
|
code-example.avoid header,
|
|
|
|
code-example.avoidFile header {
|
2017-03-26 13:32:29 -07:00
|
|
|
border: 2px solid $anti-pattern;
|
|
|
|
background: $anti-pattern;
|
2017-03-23 11:58:59 -07:00
|
|
|
}
|
|
|
|
|
2017-05-02 22:39:14 -07:00
|
|
|
code-example.avoid,
|
|
|
|
code-example.avoidFile,
|
|
|
|
code-tabs.avoid md-tab-body,
|
|
|
|
code-tabs.avoidFile md-tab-body {
|
2017-03-26 13:32:29 -07:00
|
|
|
border: 0.5px solid $anti-pattern;
|
2017-03-22 10:26:44 +11:00
|
|
|
}
|
|
|
|
|
2017-03-27 15:37:11 -07:00
|
|
|
code-tabs div .mat-tab-body-content {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
code-tabs .mat-tab-body-wrapper md-tab-body .mat-tab-body {
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
code-tabs mat-tab-body-content .fadeIn {
|
|
|
|
animation: opacity 2s ease-in;
|
|
|
|
}
|
|
|
|
|
2017-03-26 13:32:29 -07:00
|
|
|
aio-code pre {
|
|
|
|
display: flex;
|
2017-03-31 11:00:02 -07:00
|
|
|
padding: 0 48px 0 0;
|
2017-04-11 18:50:44 -07:00
|
|
|
min-height: 32px;
|
2017-03-15 08:19:19 +11:00
|
|
|
white-space: pre-wrap;
|
2017-04-11 18:50:44 -07:00
|
|
|
align-items: center;
|
2017-03-31 16:36:21 -07:00
|
|
|
|
|
|
|
code span, code ol li {
|
2017-04-03 11:16:33 -07:00
|
|
|
line-height: 24px;
|
2017-03-31 16:36:21 -07:00
|
|
|
}
|
2017-03-27 15:37:11 -07:00
|
|
|
}
|
|
|
|
|
2017-03-28 17:15:02 -07:00
|
|
|
code ol {
|
|
|
|
font-family: $main-font;
|
|
|
|
color: $lightgray;
|
2017-04-01 17:57:47 -07:00
|
|
|
|
2017-03-28 17:15:02 -07:00
|
|
|
li {
|
|
|
|
margin: 0;
|
|
|
|
font-family: $code-font;
|
|
|
|
font-size: 90%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-03 11:16:33 -07:00
|
|
|
aio-code.headed-code {
|
|
|
|
pre.prettyprint {
|
|
|
|
margin-top: 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-04-01 17:57:47 -07:00
|
|
|
.code-missing {
|
|
|
|
color: $darkred;
|
|
|
|
}
|
|
|
|
|
2017-03-28 17:15:02 -07:00
|
|
|
.prettyprint {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.copy-button {
|
2017-04-26 21:51:21 +01:00
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
|
|
|
right: 8px;
|
|
|
|
|
2017-03-27 15:37:11 -07:00
|
|
|
color: $lightgray;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
2017-04-24 21:19:40 +01:00
|
|
|
cursor: pointer;
|
2017-03-27 15:37:11 -07:00
|
|
|
&:hover {
|
|
|
|
color: $mediumgray;
|
|
|
|
}
|
2017-04-26 21:51:21 +01:00
|
|
|
|
2017-03-31 16:36:21 -07:00
|
|
|
@media (max-width: 480px) {
|
|
|
|
top: 0;
|
2017-04-26 21:51:21 +01:00
|
|
|
right: 0;
|
2017-03-31 16:36:21 -07:00
|
|
|
}
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
|
|
|
|
2017-03-31 11:00:02 -07:00
|
|
|
.lang-sh .copy-button, .lang-bash .copy-button {
|
|
|
|
color: $mediumgray;
|
|
|
|
&:hover {
|
|
|
|
color: $lightgray;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-28 17:15:02 -07:00
|
|
|
.code-tab-group div.mat-tab-body-content {
|
|
|
|
height: auto;
|
2017-04-03 11:16:33 -07:00
|
|
|
transform: none;
|
2017-03-28 17:30:34 -07:00
|
|
|
}
|
|
|
|
|
2017-03-31 11:00:02 -07:00
|
|
|
/* SCREEN COLORS */
|
2017-03-26 13:32:29 -07:00
|
|
|
|
|
|
|
.pnk,
|
|
|
|
.blk {
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 2px 4px;
|
|
|
|
}
|
|
|
|
.pnk {
|
|
|
|
background: $blue-grey-50;
|
|
|
|
color: $blue-grey-900;
|
|
|
|
}
|
|
|
|
.blk {
|
|
|
|
background: $blue-grey-900;
|
|
|
|
}
|
|
|
|
.otl {
|
|
|
|
outline: 1px solid rgba($blue-grey-700, .56);
|
|
|
|
}
|
|
|
|
.kwd {
|
2017-03-28 17:15:02 -07:00
|
|
|
color: $darkgray;
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
|
|
|
.typ,
|
|
|
|
.tag {
|
2017-03-28 17:15:02 -07:00
|
|
|
color: $darkred;
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
|
|
|
.str,
|
|
|
|
.atv {
|
2017-03-28 17:15:02 -07:00
|
|
|
color: $blue;
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
|
|
|
.atn {
|
2017-03-28 17:15:02 -07:00
|
|
|
color: $blue;
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
|
|
|
.com {
|
2017-03-28 17:15:02 -07:00
|
|
|
color: $mediumgray;
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
|
|
|
.lit {
|
2017-03-28 17:15:02 -07:00
|
|
|
color: $blue;
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
|
|
|
.pun {
|
|
|
|
color: $blue-grey-700;
|
|
|
|
}
|
|
|
|
.pln {
|
2017-03-28 17:15:02 -07:00
|
|
|
color: $green-800;
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
|
|
|
.dec {
|
2017-03-28 17:15:02 -07:00
|
|
|
color: $blue;
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
|
|
|
|
2017-03-31 11:00:02 -07:00
|
|
|
/* SHELL / TERMINAL CODE BLOCKS */
|
|
|
|
|
|
|
|
code-example.code-shell, code-example[language=sh], code-example[language=bash] {
|
|
|
|
& .pnk, .blk,.pln, .otl, .kwd, .typ, .tag, .str, .atv, .atn, .com, .lit, .pun, .dec {
|
|
|
|
color: $codegreen;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* PRINT COLORS */
|
2017-03-26 13:32:29 -07:00
|
|
|
|
|
|
|
|
2017-04-03 11:16:33 -07:00
|
|
|
@media print {
|
|
|
|
border: none;
|
|
|
|
box-shadow: none;
|
2017-03-26 13:32:29 -07:00
|
|
|
|
2017-04-03 11:16:33 -07:00
|
|
|
ol {
|
|
|
|
background: $white;
|
|
|
|
}
|
2017-03-26 13:32:29 -07:00
|
|
|
|
2017-04-03 11:16:33 -07:00
|
|
|
.kwd {
|
|
|
|
color: $darkgray;
|
|
|
|
}
|
|
|
|
.typ,
|
|
|
|
.tag {
|
|
|
|
color: $darkred;
|
2017-03-26 13:32:29 -07:00
|
|
|
}
|
2017-04-03 11:16:33 -07:00
|
|
|
.str,
|
|
|
|
.atv {
|
|
|
|
color: $blue;
|
|
|
|
}
|
|
|
|
.atn {
|
|
|
|
color: $blue;
|
|
|
|
}
|
|
|
|
.com {
|
|
|
|
color: $mediumgray;
|
|
|
|
}
|
|
|
|
.lit {
|
|
|
|
color: $blue;
|
|
|
|
}
|
|
|
|
.pun {
|
|
|
|
color: $blue-grey-700;
|
|
|
|
}
|
|
|
|
.pln {
|
|
|
|
color: $green-800;
|
|
|
|
}
|
|
|
|
.dec {
|
|
|
|
color: $blue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// REMOVE RIPPLE EFFECT FROM MATERIAL TABS
|
2017-04-20 14:52:02 -07:00
|
|
|
code-tabs md-tab-group *.mat-ripple-element, code-tabs md-tab-group *.mat-tab-body-active, code-tabs md-tab-group *.mat-tab-body-content, code-tabs md-tab-group *.mat-tab-body-content {
|
2017-04-03 11:16:33 -07:00
|
|
|
transform: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
[role="tabpanel"] {
|
|
|
|
transition: none;
|
2017-05-02 22:39:14 -07:00
|
|
|
}
|