| 
									
										
										
										
											2019-06-12 14:11:35 -07:00
										 |  |  | code-example, | 
					
						
							|  |  |  | code-tabs { | 
					
						
							| 
									
										
										
										
											2017-05-09 23:53:32 +01:00
										 |  |  |     clear: both; | 
					
						
							|  |  |  |     display: block; | 
					
						
							| 
									
										
										
										
											2019-06-12 14:11:35 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |     ol { | 
					
						
							|  |  |  |       list-style: decimal; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2017-05-09 23:53:32 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-21 12:55:22 +01:00
										 |  |  | code-example { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-10 00:36:22 +01:00
										 |  |  |   &:not(.no-box) { | 
					
						
							| 
									
										
										
										
											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-27 15:37:11 -07:00
										 |  |  |     margin: 16px auto; | 
					
						
							| 
									
										
										
										
											2017-05-10 00:36:22 +01:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2017-03-31 16:36:21 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-10 00:36:22 +01:00
										 |  |  |   &.no-box { | 
					
						
							|  |  |  |     pre { | 
					
						
							|  |  |  |       margin: 0; | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2017-03-31 16:36:21 -07:00
										 |  |  |     code { | 
					
						
							| 
									
										
										
										
											2017-05-10 00:36:22 +01:00
										 |  |  |       background-color: transparent; | 
					
						
							| 
									
										
										
										
											2017-03-31 16:36:21 -07:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2017-05-10 00:36:22 +01:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   code { | 
					
						
							|  |  |  |     overflow: auto; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2017-03-15 08:19:19 +11:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-21 12:55:22 +01:00
										 |  |  | code-example, code-tabs { | 
					
						
							|  |  |  |   .mat-card { | 
					
						
							|  |  |  |     padding: 0; | 
					
						
							|  |  |  |     border-radius: 5px; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   code { | 
					
						
							|  |  |  |     overflow: auto; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-05 13:05:45 -07:00
										 |  |  | code-tabs { | 
					
						
							|  |  |  |   margin: 16px 0; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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; | 
					
						
							| 
									
										
										
										
											2019-06-18 13:36:02 -07:00
										 |  |  |   @include font-size(16); | 
					
						
							| 
									
										
										
										
											2017-04-14 12:28:39 -07:00
										 |  |  |   padding: 8px 16px; | 
					
						
							| 
									
										
										
										
											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, | 
					
						
							| 
									
										
										
										
											2017-10-13 13:02:27 -07:00
										 |  |  | code-tabs.avoid mat-tab-body, | 
					
						
							|  |  |  | code-tabs.avoidFile mat-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; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-13 13:02:27 -07:00
										 |  |  | code-tabs .mat-tab-body-wrapper mat-tab-body .mat-tab-body { | 
					
						
							| 
									
										
										
										
											2017-03-27 15:37:11 -07:00
										 |  |  |   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-04-11 18:50:44 -07:00
										 |  |  |     min-height: 32px; | 
					
						
							| 
									
										
										
										
											2018-02-08 15:00:53 +00:00
										 |  |  |     margin: 16px 24px; | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  |     code span { | 
					
						
							| 
									
										
										
										
											2019-06-18 13:36:02 -07:00
										 |  |  |       @include line-height(24); | 
					
						
							| 
									
										
										
										
											2017-03-31 16:36:21 -07:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2017-03-27 15:37:11 -07:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-28 17:15:02 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-01 17:57:47 -07:00
										 |  |  | .code-missing { | 
					
						
							|  |  |  |   color: $darkred; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-28 17:15:02 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | .copy-button { | 
					
						
							| 
									
										
										
										
											2017-04-26 21:51:21 +01:00
										 |  |  |   position: absolute; | 
					
						
							| 
									
										
										
										
											2018-05-30 19:20:05 +03:00
										 |  |  |   top: -7px; | 
					
						
							|  |  |  |   right: -19px; | 
					
						
							|  |  |  |   padding: 0; | 
					
						
							| 
									
										
										
										
											2017-04-26 21:51:21 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-15 18:03:56 -07:00
										 |  |  |   color: $blue-grey-200; | 
					
						
							| 
									
										
										
										
											2017-03-27 15:37:11 -07:00
										 |  |  |   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-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-07-18 12:30:01 +03:00
										 |  |  | .code-tab-group .mat-tab-label { | 
					
						
							| 
									
										
										
										
											2018-05-21 12:54:34 +01:00
										 |  |  |   &:hover { | 
					
						
							|  |  |  |     background: rgba(black, 0.04); | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2017-07-18 12:30:01 +03:00
										 |  |  |   white-space: nowrap; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .code-tab-group .mat-tab-body-content { | 
					
						
							| 
									
										
										
										
											2017-03-28 17:15:02 -07:00
										 |  |  |   height: auto; | 
					
						
							| 
									
										
										
										
											2017-04-03 11:16:33 -07:00
										 |  |  |   transform: none; | 
					
						
							| 
									
										
										
										
											2017-03-28 17:30:34 -07:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-26 13:32:29 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  | [role="tabpanel"] { | 
					
						
							|  |  |  |     transition: none; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2017-03-26 13:32:29 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  | .sidenav-content code a { | 
					
						
							|  |  |  |   color: inherit; | 
					
						
							|  |  |  |   font-size: inherit; | 
					
						
							| 
									
										
										
										
											2018-08-31 15:57:53 +01:00
										 |  |  |   font-weight: inherit; | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2017-03-26 13:32:29 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  | /* PRETTY PRINTING STYLES for prettify.js. */ | 
					
						
							| 
									
										
										
										
											2017-03-26 13:32:29 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  | .prettyprint { | 
					
						
							|  |  |  |   position: relative; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2017-03-26 13:32:29 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  | /* Specify class=linenums on a pre to get line numbering */ | 
					
						
							|  |  |  | ol.linenums { | 
					
						
							|  |  |  |   margin: 0; | 
					
						
							|  |  |  |   font-family: $main-font; | 
					
						
							|  |  |  |   color: #B3B6B7; | 
					
						
							| 
									
										
										
										
											2019-06-05 13:05:45 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  |   li { | 
					
						
							|  |  |  |     margin: 0; | 
					
						
							|  |  |  |     font-family: $code-font; | 
					
						
							|  |  |  |     font-size: 90%; | 
					
						
							| 
									
										
										
										
											2019-06-18 13:36:02 -07:00
										 |  |  |     @include line-height(24); | 
					
						
							| 
									
										
										
										
											2017-04-03 11:16:33 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  | /* The following class|color styles are derived from https://github.com/google/code-prettify/blob/master/src/prettify.css*/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* SPAN elements with the classes below are added by prettyprint. */ | 
					
						
							|  |  |  | .pln { color: #000 }  /* plain text */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @media screen { | 
					
						
							|  |  |  |   .str { color: #800 }  /* string content */ | 
					
						
							|  |  |  |   .kwd { color: #00f }  /* a keyword */ | 
					
						
							|  |  |  |   .com { color: #060 }  /* a comment */ | 
					
						
							|  |  |  |   .typ { color: red }  /* a type name */ | 
					
						
							|  |  |  |   .lit { color: #08c }  /* a literal value */ | 
					
						
							|  |  |  |   /* punctuation, lisp open bracket, lisp close bracket */ | 
					
						
							|  |  |  |   .pun, .opn, .clo { color: #660 } | 
					
						
							|  |  |  |   .tag { color: #008 }  /* a markup tag name */ | 
					
						
							|  |  |  |   .atn { color: #606 }  /* a markup attribute name */ | 
					
						
							|  |  |  |   .atv { color: #800 }  /* a markup attribute value */ | 
					
						
							|  |  |  |   .dec, .var { color: #606 }  /* a declaration; a variable name */ | 
					
						
							|  |  |  |   .fun { color: red }  /* a function name */ | 
					
						
							| 
									
										
										
										
											2017-04-03 11:16:33 -07:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  | /* Use higher contrast and text-weight for printable form. */ | 
					
						
							|  |  |  | @media print, projection { | 
					
						
							|  |  |  |   .str { color: #060 } | 
					
						
							|  |  |  |   .kwd { color: #006; font-weight: bold } | 
					
						
							|  |  |  |   .com { color: #600; font-style: italic } | 
					
						
							|  |  |  |   .typ { color: #404; font-weight: bold } | 
					
						
							|  |  |  |   .lit { color: #044 } | 
					
						
							|  |  |  |   .pun, .opn, .clo { color: #440 } | 
					
						
							|  |  |  |   .tag { color: #006; font-weight: bold } | 
					
						
							|  |  |  |   .atn { color: #404 } | 
					
						
							|  |  |  |   .atv { color: #060 } | 
					
						
							| 
									
										
										
										
											2017-05-02 22:39:14 -07:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2017-05-10 18:34:19 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  | /* SHELL / TERMINAL CODE BLOCKS */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | code-example.code-shell, code-example[language=sh], code-example[language=bash] { | 
					
						
							| 
									
										
										
										
											2018-04-25 13:47:14 +03:00
										 |  |  |   .pnk, .blk, .pln, .otl, .kwd, .typ, .tag, .str, .atv, .atn, .com, .lit, .pun, .dec { | 
					
						
							| 
									
										
										
										
											2017-06-06 16:16:08 -07:00
										 |  |  |     color: $codegreen; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2017-05-15 18:03:56 -07:00
										 |  |  | } |