:root {
--bg-color: #282a36;
--fg-color: #f8f8f2;
--link-color: #8be9fd;
--code-bg: #44475a;
}
.pixelsrc-demo {
background: var(--code-bg);
border-radius: 4px;
padding: 1rem;
margin: 1rem 0;
}
.pixelsrc-demo textarea {
width: 100%;
min-height: 100px;
font-family: monospace;
background: var(--bg-color);
color: var(--fg-color);
border: 1px solid #6272a4;
border-radius: 4px;
padding: 0.5rem;
resize: vertical;
}
.pixelsrc-demo button {
background: #50fa7b;
color: #282a36;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
margin-top: 0.5rem;
font-weight: bold;
}
.pixelsrc-demo button:hover {
background: #5af78e;
}
.pixelsrc-demo .preview {
margin-top: 1rem;
min-height: 64px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
background: #c0c0c0;
background: repeating-conic-gradient(#808080 0% 25%, #c0c0c0 0% 50%) 50% / 16px 16px;
border-radius: 4px;
}
.pixelsrc-demo .preview img {
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: pixelated;
image-rendering: crisp-edges;
}
.pixelsrc-demo .error {
color: #ff5555;
margin-top: 0.5rem;
font-family: monospace;
font-size: 0.9em;
}
table {
width: 100%;
border-collapse: collapse;
margin: 1rem 0;
}
th, td {
padding: 0.5rem;
text-align: left;
border-bottom: 1px solid #6272a4;
}
th {
background: var(--code-bg);
}
pre {
border-radius: 4px;
overflow-x: auto;
}
code {
font-family: 'Fira Code', 'Consolas', monospace;
}
.demo-source {
margin-bottom: 0.5rem;
}
.demo-container {
background: var(--code-bg, #44475a);
border-radius: 4px;
padding: 1rem;
margin: 0.5rem 0 1.5rem 0;
min-height: 80px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
gap: 1rem;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.demo-container.demo-rendered {
background:
linear-gradient(45deg, #3a3d4a 25%, transparent 25%),
linear-gradient(-45deg, #3a3d4a 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #3a3d4a 75%),
linear-gradient(-45deg, transparent 75%, #3a3d4a 75%);
background-size: 16px 16px;
background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
background-color: #44475a;
}
.demo-sprite {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
gap: 0.5rem;
padding: 0.5rem;
background: rgba(40, 42, 54, 0.8);
border-radius: 4px;
}
.demo-sprite img {
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: pixelated;
image-rendering: crisp-edges;
min-width: 32px;
min-height: 32px;
-webkit-transform: scale(4);
transform: scale(4);
-webkit-transform-origin: center center;
transform-origin: center center;
margin: 24px;
}
.demo-sprite-label {
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 0.75rem;
color: #8be9fd;
padding: 0.125rem 0.375rem;
background: rgba(0, 0, 0, 0.3);
border-radius: 2px;
}
.demo-more {
font-size: 0.875rem;
color: #6272a4;
padding: 0.5rem;
}
.demo-loading {
color: #6272a4;
font-style: italic;
margin: 0;
}
.demo-error {
color: #ff5555;
font-family: monospace;
font-size: 0.9em;
margin: 0;
}