0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/examples/with-markdown/public/global.css

235 lines
3.2 KiB
CSS
Raw Normal View History

pre,
code {
2021-08-25 13:52:22 -05:00
color: #d4d4d4;
font-size: 14px;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
line-height: 1.5;
direction: ltr;
white-space: pre;
text-align: left;
text-shadow: none;
word-break: normal;
word-spacing: normal;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre::selection,
code::selection {
2021-08-25 13:52:22 -05:00
text-shadow: none;
background: #b3d4fc;
}
@media print {
2021-08-25 13:52:22 -05:00
pre,
code {
2021-08-25 13:52:22 -05:00
text-shadow: none;
}
}
pre {
2021-08-25 13:52:22 -05:00
margin: 0.5rem 0 16px;
padding: 0.8rem 1rem 0.9rem;
overflow: auto;
background: #282a36;
border-radius: 4px;
}
:not(pre) > code {
2021-08-25 13:52:22 -05:00
padding: 0.1em 0.3em;
color: #db4c69;
background: #f9f2f4;
border-radius: 0.3em;
white-space: pre-wrap;
}
/*********************************************************
* Tokens
*/
.namespace {
2021-08-25 13:52:22 -05:00
opacity: 0.7;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
2021-08-25 13:52:22 -05:00
color: #6a9955;
}
.token.punctuation {
2021-08-25 13:52:22 -05:00
color: #d4d4d4;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
2021-08-25 13:52:22 -05:00
color: #b5cea8;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
2021-08-25 13:52:22 -05:00
color: #ce9178;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
2021-08-25 13:52:22 -05:00
color: #d4d4d4;
background: #2d3748;
}
.token.atrule,
.token.attr-value,
.token.keyword {
2021-08-25 13:52:22 -05:00
color: #c586c0;
}
.token.function {
2021-08-25 13:52:22 -05:00
color: #dcdcaa;
}
.token.regex,
.token.important,
.token.variable {
2021-08-25 13:52:22 -05:00
color: #d16969;
}
.token.important,
.token.bold {
2021-08-25 13:52:22 -05:00
font-weight: bold;
}
.token.italic {
2021-08-25 13:52:22 -05:00
font-style: italic;
}
.token.constant {
2021-08-25 13:52:22 -05:00
color: #9cdcfe;
}
.token.class-name {
2021-08-25 13:52:22 -05:00
color: #4ec9b0;
}
.token.parameter {
2021-08-25 13:52:22 -05:00
color: #9cdcfe;
}
.token.interpolation {
2021-08-25 13:52:22 -05:00
color: #9cdcfe;
}
.token.punctuation.interpolation-punctuation {
2021-08-25 13:52:22 -05:00
color: #569cd6;
}
.token.boolean {
2021-08-25 13:52:22 -05:00
color: #569cd6;
}
.token.property {
2021-08-25 13:52:22 -05:00
color: #9cdcfe;
}
.token.selector {
2021-08-25 13:52:22 -05:00
color: #d7ba7d;
}
.token.tag {
2021-08-25 13:52:22 -05:00
color: #569cd6;
}
.token.attr-name {
2021-08-25 13:52:22 -05:00
color: #9cdcfe;
}
.token.attr-value {
2021-08-25 13:52:22 -05:00
color: #ce9178;
}
.token.entity {
2021-08-25 13:52:22 -05:00
color: #4ec9b0;
cursor: unset;
}
.token.namespace {
2021-08-25 13:52:22 -05:00
color: #4ec9b0;
}
/*********************************************************
* Language Specific
*/
pre[class*='language-javascript'],
code[class*='language-javascript'] {
2021-08-25 13:52:22 -05:00
color: #4ec9b0;
}
pre[class*='language-css'],
code[class*='language-css'] {
2021-08-25 13:52:22 -05:00
color: #ce9178;
}
pre[class*='language-html'],
code[class*='language-html'] {
2021-08-25 13:52:22 -05:00
color: #d4d4d4;
}
.language-html .token.punctuation {
2021-08-25 13:52:22 -05:00
color: #808080;
}
/*********************************************************
* Line highlighting
*/
pre[data-line] {
2021-08-25 13:52:22 -05:00
position: relative;
}
pre > code {
2021-08-25 13:52:22 -05:00
position: relative;
z-index: 1;
}
.line-highlight {
2021-08-25 13:52:22 -05:00
position: absolute;
right: 0;
left: 0;
z-index: 0;
margin-top: 1em;
padding: inherit 0;
line-height: inherit;
white-space: pre;
background: #f7ebc6;
box-shadow: inset 5px 0 0 #f7d87c;
pointer-events: none;
}
pre[class*='language-bash'] .token.function {
2021-08-25 13:52:22 -05:00
color: #d4d4d4;
}
.token.comment {
2021-08-25 13:52:22 -05:00
color: #fff7;
}
body {
max-width: 900px;
margin: auto;
}