primevue-mirror/assets/styles/layout/_code.scss

146 lines
2.8 KiB
SCSS
Raw Normal View History

2022-02-23 11:42:11 +00:00
code[class*="language-"],
pre[class*="language-"] {
background: none;
font-family: ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,Liberation Mono,monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
2023-10-10 16:11:58 +00:00
div.code-toolbar > .toolbar {
display: none;
2022-02-23 11:42:11 +00:00
}
pre[class*="language-"] {
position: relative;
2023-10-10 16:11:58 +00:00
background: transparent;
margin: 0;
2022-02-23 11:42:11 +00:00
padding: 0;
2023-10-15 09:38:39 +00:00
max-height: 40rem;
2023-10-15 04:50:22 +00:00
overflow: auto;
2022-02-23 11:42:11 +00:00
&:before, &:after {
display: none !important;
}
code {
2023-10-10 16:11:58 +00:00
border-left: 1rem solid transparent;
box-shadow: none;
2022-02-23 11:42:11 +00:00
margin: 0;
font-size: 14px;
2023-10-06 14:00:02 +00:00
border-radius: 10px;
2023-10-10 16:11:58 +00:00
color: #ffffff;
max-height: inherit;
height: inherit;
padding: 0 1rem;
display: block;
overflow: auto;
.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: #bbf7d0;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.token.punctuation {
color: #bfdbfe;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.function-name,
.token.constant,
.token.symbol,
.token.deleted {
color: #93c5fd;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.function,
.token.builtin,
.token.inserted {
color: #eff6ff;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.token.operator,
.token.entity,
.token.url,
.token.variable {
color: #ffffff;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.token.atrule,
.token.attr-value,
.token.keyword,
.token.class-name {
color: #bbf7d0;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.token.regex,
.token.important {
color: #fde68a;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.language-css .token.string,
.style .token.string {
color: #fde68a;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.token.important {
font-weight: normal;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.token.entity {
cursor: help;
}
2023-10-07 14:34:18 +00:00
2023-10-10 16:11:58 +00:00
.token.namespace {
opacity: .7;
2023-10-07 14:34:18 +00:00
}
2022-02-23 11:42:11 +00:00
}
2023-10-07 14:34:18 +00:00
}
2023-02-28 08:29:30 +00:00
.copy-to-clipboard-button {
display: none;
2023-10-07 14:59:09 +00:00
}
2023-10-14 19:15:16 +00:00
pre[class*="language-"] {
code {
2023-10-15 06:00:52 +00:00
background: var(--demo-code-bg);
2023-10-07 14:59:09 +00:00
}
}
2023-10-10 08:38:49 +00:00
.layout-light {
2023-10-17 21:53:21 +00:00
&[data-p-theme^="md"] {
2023-10-13 09:33:49 +00:00
pre[class*="language-"] {
code {
2023-10-15 06:00:52 +00:00
background: var(--surface-900);
2023-10-13 09:33:49 +00:00
}
}
}
2022-02-23 11:42:11 +00:00
}