Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(aio): fix print styles #23538

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion aio/src/styles/1-layouts/_layouts-dir.scss
Expand Up @@ -12,4 +12,3 @@
@import 'sidenav';
@import 'table-of-contents';
@import 'top-menu';
@import 'print-layout';
2 changes: 1 addition & 1 deletion aio/src/styles/2-modules/_code.scss
Expand Up @@ -179,7 +179,7 @@ ol.linenums {
/* 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 {
.pnk, .blk, .pln, .otl, .kwd, .typ, .tag, .str, .atv, .atn, .com, .lit, .pun, .dec {
color: $codegreen;
}
}
Expand Up @@ -5,6 +5,10 @@
box-shadow: none !important;
}

body, mat-sidenav-container {
background: none !important;
}

h1 {
height: 40px !important;
color: $darkgray !important;
Expand All @@ -16,7 +20,7 @@

ul, ol, img, code-example, table, tr, .alert, .l-subsection, .feature {
page-break-inside: avoid;
}
}

table tbody tr:last-child td {
border-bottom: 1px solid $lightgray !important;
Expand Down Expand Up @@ -66,21 +70,22 @@
}

code-example {
pre.lang-bash code span {
color: $mediumgray !important;
}
&.code-shell, &[language=sh], &[language=bash] {
background: none;

pre.lang-sh code span {
color: $darkgray !important;
.pnk, .blk, .pln, .otl, .kwd, .typ, .tag, .str, .atv, .atn, .com, .lit, .pun, .dec {
color: $darkgray;
}
}

header {
background: none;
border: 0.5px solid $lightgray;
color: $darkgray;
}
}

.content code {
.content code {
border: 0.5px solid $lightgray;
}

Expand All @@ -96,7 +101,7 @@
}
}

.api-header label {
.api-header label {
color: $darkgray !important;
font-weight: bold !important;
margin: 2px !important;
Expand All @@ -107,4 +112,4 @@
.feature-section img {
max-width: 70px !important;
}
}
}
3 changes: 3 additions & 0 deletions aio/src/styles/main.scss
Expand Up @@ -12,3 +12,6 @@
@import './0-base/base-dir';
@import './1-layouts/layouts-dir';
@import './2-modules/modules-dir';

// import print styles
@import './print';