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

161 lines
3.2 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
overflow: visible;
padding: 0;
&: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
.doc-section-code-buttons {
button {
outline: 0 none;
outline-offset: 0;
background-color: transparent;
transition: background-color .2s, box-shadow .2s;
border: 0 none;
color: var(--demo-code-button-color);
cursor: pointer;
&:hover {
background-color: var(--demo-code-button-hover-bg);
color: var(--demo-code-button-hover-color);
2023-10-10 15:46:53 +00:00
}
}
2023-10-14 19:15:16 +00:00
}
pre[class*="language-"] {
code {
background: var(--demo-code-bg) !important;
2023-10-07 14:59:09 +00:00
}
}
2023-10-10 08:38:49 +00:00
.layout-light {
2023-10-13 09:33:49 +00:00
&[data-p-theme^="md-"] {
pre[class*="language-"] {
code {
background: var(--surface-900) !important;
}
}
}
2022-02-23 11:42:11 +00:00
}