mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? Improve error messages about invalid CSS files. ### Why? Currently, `sass-loader` compiles CSS as a single line, and as the issue emitter prints the whole line, the error message is not good. ### How? Closes PACK-3187 Fixes #68311 --------- Co-authored-by: Tobias Koppers <[email protected]>
82 lines
1.4 KiB
SCSS
82 lines
1.4 KiB
SCSS
:root {
|
|
--foreground-rgb: 0, 0, 0;
|
|
--background-start-rgb: 214, 219, 220;
|
|
--background-end-rgb: 255, 255, 255;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--foreground-rgb: 255, 255, 255;
|
|
--background-start-rgb: 0, 0, 0;
|
|
--background-end-rgb: 0, 0, 0;
|
|
}
|
|
}
|
|
|
|
body {
|
|
font-family: monospace;
|
|
color: white;
|
|
background-color: #0e0f0f;
|
|
|
|
@media (max-width: 1200px) {
|
|
font-size: 16px;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
input.defaultCheckbox {
|
|
color: white;
|
|
}
|
|
|
|
input.defaultCheckbox::before {
|
|
content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.66662 10.115L12.7946 3.98633L13.7379 4.92899L6.66662 12.0003L2.42395 7.75766L3.36662 6.81499L6.66662 10.115Z' fill='white'/%3E%3C/svg%3E%0A");
|
|
fill: currentColor;
|
|
opacity: 0;
|
|
height: 16px;
|
|
width: 16px;
|
|
top: -2px;
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translate(-50%, 0px);
|
|
}
|
|
|
|
input.defaultCheckbox::before path {
|
|
fill: currentColor;
|
|
}
|
|
|
|
input:checked.defaultCheckbox::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.slide {
|
|
animation: slide_anim 0.5s;
|
|
}
|
|
|
|
@keyframes slide_anim {
|
|
from {
|
|
transform: translateX(50px);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.animation-opacity {
|
|
animation: opacity_anim 0.5s;
|
|
}
|
|
|
|
@keyframes opacity_anim {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|