mirror of
https://github.com/searxng/searxng.git
synced 2026-05-07 18:03:51 +02:00
60bd8b90f0
Lay the foundation for loading scripts granularly depending on the endpoint it's on. Remove vendor specific prefixes as there are now managed by browserslist and LightningCSS. Enabled quite a few rules in Biome that don't come in recommended to better catch issues and improve consistency. Related: - https://github.com/searxng/searxng/pull/5073#discussion_r2256037965 - https://github.com/searxng/searxng/pull/5073#discussion_r2256057100
49 lines
809 B
Plaintext
49 lines
809 B
Plaintext
@import "../../generated/pygments.less";
|
|
|
|
.codelines {
|
|
margin: @results-margin 0 0 0;
|
|
padding: @result-padding 0 0 0;
|
|
}
|
|
|
|
.code-highlight-sxng() {
|
|
.code-highlight {
|
|
pre {
|
|
overflow: auto;
|
|
margin: 0;
|
|
padding: 0 0 0.75rem 0;
|
|
}
|
|
|
|
.linenos {
|
|
user-select: none;
|
|
cursor: default;
|
|
|
|
&::selection {
|
|
background: transparent;
|
|
}
|
|
|
|
margin-right: 8px;
|
|
text-align: right;
|
|
}
|
|
|
|
span.linenos {
|
|
color: var(--color-line-number);
|
|
}
|
|
}
|
|
}
|
|
|
|
.code-highlight-sxng();
|
|
|
|
/// Dark Theme (autoswitch based on device pref)
|
|
@media (prefers-color-scheme: dark) {
|
|
:root.theme-auto {
|
|
.code-highlight-dark();
|
|
.code-highlight-sxng();
|
|
}
|
|
}
|
|
|
|
// Dark Theme by preferences
|
|
:root.theme-dark {
|
|
.code-highlight-dark();
|
|
.code-highlight-sxng();
|
|
}
|