2019-12-18 04:14:33 +03:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
.swcSnippet {
|
2021-11-05 05:15:46 +03:00
|
|
|
margin: 4px 0; // override user agent
|
|
|
|
padding-right: 4px; // Override the 2px from _platformCommon.scss so the ClipboardButton looks right.
|
2019-12-18 04:14:33 +03:00
|
|
|
font-size: 12px;
|
2021-11-05 05:15:46 +03:00
|
|
|
overflow: hidden;
|
|
|
|
position: relative; // For gradient
|
2019-12-18 04:14:33 +03:00
|
|
|
display: flex; // For line number column.
|
|
|
|
|
2021-05-10 07:39:47 +03:00
|
|
|
code {
|
|
|
|
font-family: SFMono-Regular, monospace;
|
|
|
|
} // Override UA default 'monospace'.
|
2019-12-18 04:14:33 +03:00
|
|
|
|
|
|
|
&.clipped {
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
width: 100%;
|
2023-04-20 00:49:52 +03:00
|
|
|
height: 108px; // 108px is a 6-line snippet which is very common.
|
2019-12-18 04:14:33 +03:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
background: linear-gradient(transparent 75px, var(--palette-black-alpha-6));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.swcRegion {
|
|
|
|
background-color: rgba(255, 230, 0, 0.5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
code.lineNumber {
|
|
|
|
width: 36px;
|
|
|
|
color: hsl(0, 0%, 60%);
|
|
|
|
flex: 0 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.swcSnippet .hljs {
|
|
|
|
color: inherit;
|
|
|
|
display: initial;
|
2021-11-05 05:15:46 +03:00
|
|
|
overflow-x: initial;
|
2019-12-18 04:14:33 +03:00
|
|
|
padding: initial;
|
|
|
|
background: initial;
|
|
|
|
}
|