2017-02-12 15:06:01 +01:00
|
|
|
/*
|
2021-10-01 16:33:31 +02:00
|
|
|
* SearXNG, A privacy-respecting, hackable metasearch engine
|
2017-02-12 15:06:01 +01:00
|
|
|
*
|
|
|
|
* To change the colors of the site, simple edit this variables
|
|
|
|
*/
|
|
|
|
|
2021-10-09 15:46:31 +02:00
|
|
|
/// Light Theme
|
2021-10-30 11:54:31 +02:00
|
|
|
:root {
|
2021-10-06 20:12:51 +02:00
|
|
|
/// Base Colors
|
|
|
|
--color-base-font: #444;
|
2021-10-30 10:01:58 +02:00
|
|
|
--color-base-font-rgb: 68, 68, 68;
|
2021-10-06 20:12:51 +02:00
|
|
|
--color-base-background: #fff;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-base-background-mobile: #f2f5f8;
|
|
|
|
--color-url-font: #334999;
|
|
|
|
--color-url-visited-font: #9822c3;
|
2021-10-08 16:06:48 +02:00
|
|
|
/// Header Colors
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-header-background: #fdfbff;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-header-border: #ddd;
|
|
|
|
/// Footer Colors
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-footer-background: #fdfbff;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-footer-border: #ddd;
|
|
|
|
/// Sidebar Colors
|
|
|
|
--color-sidebar-border: #ddd;
|
|
|
|
--color-sidebar-font: #000;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-sidebar-background: #fff;
|
2021-10-08 16:06:48 +02:00
|
|
|
/// BackToTop Colors
|
2021-10-30 20:43:40 +02:00
|
|
|
--color-backtotop-font: #444;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-backtotop-border: #ddd;
|
|
|
|
--color-backtotop-background: #fff;
|
2021-10-06 20:12:51 +02:00
|
|
|
/// Button Colors
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-btn-background: #3050ff;
|
2021-10-06 20:12:51 +02:00
|
|
|
--color-btn-font: #fff;
|
2022-02-08 17:45:18 +01:00
|
|
|
--color-show-btn-background: #bbb;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-show-btn-font: #000;
|
2021-10-06 20:12:51 +02:00
|
|
|
/// Search Input Colors
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-search-border: #bbb;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-search-shadow: 0 2px 8px rgb(34 38 46 / 25%);
|
2021-10-06 20:12:51 +02:00
|
|
|
--color-search-background: #fff;
|
|
|
|
--color-search-font: #222;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-search-background-hover: #3050ff;
|
2021-09-28 22:41:56 +02:00
|
|
|
/// Modal Colors
|
|
|
|
--color-error: #db3434;
|
|
|
|
--color-error-background: lighten(#db3434, 40%);
|
|
|
|
--color-warning: #dbba34;
|
|
|
|
--color-warning-background: lighten(#dbba34, 40%);
|
|
|
|
--color-success: #42db34;
|
|
|
|
--color-success-background: lighten(#42db34, 40%);
|
2021-10-06 20:12:51 +02:00
|
|
|
/// Categories Colors
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-categories-item-selected-font: #3050ff;
|
|
|
|
--color-categories-item-border-selected: #3050ff;
|
|
|
|
/// Autocomplete Colors
|
|
|
|
--color-autocomplete-font: #000;
|
|
|
|
--color-autocomplete-border: #bbb;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-autocomplete-shadow: 0 2px 8px rgb(34 38 46 / 25%);
|
2021-10-06 20:12:51 +02:00
|
|
|
--color-autocomplete-background: #fff;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-autocomplete-background-hover: #e3e3e3;
|
2021-10-08 16:06:48 +02:00
|
|
|
/// Answer Colors
|
2021-11-01 17:20:52 +01:00
|
|
|
--color-answer-font: #444; // same as --color-base-font
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-answer-background: #fff;
|
2021-10-08 16:06:48 +02:00
|
|
|
/// Results Colors
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-result-background: #fff;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-result-border: #ddd;
|
2021-10-06 20:12:51 +02:00
|
|
|
--color-result-url-font: #000;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-result-vim-selected: #f7f7f7;
|
|
|
|
--color-result-vim-arrow: #000bbb;
|
|
|
|
--color-result-description-highlight-font: #000;
|
|
|
|
--color-result-link-font: #000bbb;
|
|
|
|
--color-result-link-font-highlight: #000bbb;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-result-link-visited-font: #9822c3;
|
2021-10-06 20:12:51 +02:00
|
|
|
--color-result-publishdate-font: #777;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-result-engines-font: #545454;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-result-search-url-border: #ddd;
|
|
|
|
--color-result-search-url-font: #000;
|
|
|
|
// Images Colors
|
2022-02-21 22:18:48 +01:00
|
|
|
--color-result-image-span-font: #444;
|
|
|
|
--color-result-image-span-font-selected: #fff;
|
2021-11-27 14:37:04 +01:00
|
|
|
--color-result-image-background: #fff;
|
2021-10-08 16:06:48 +02:00
|
|
|
/// Settings Colors
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-settings-tr-hover: #ebebeb;
|
|
|
|
--color-settings-engine-description-font: #545454;
|
2023-09-08 12:49:01 +02:00
|
|
|
--color-settings-table-group-background: #0001;
|
2021-10-02 11:57:08 +02:00
|
|
|
/// Detail modal
|
|
|
|
--color-result-detail-font: #fff;
|
|
|
|
--color-result-detail-label-font: lightgray;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-result-detail-background: #242424;
|
2021-10-31 10:57:06 +01:00
|
|
|
--color-result-detail-hr: #555;
|
2021-10-02 11:57:08 +02:00
|
|
|
--color-result-detail-link: #8af;
|
|
|
|
--color-result-detail-loader-border: rgba(255, 255, 255, 0.2);
|
|
|
|
--color-result-detail-loader-borderleft: rgba(0, 0, 0, 0);
|
2021-10-08 16:06:48 +02:00
|
|
|
/// Toolkit Colors
|
2021-09-30 18:12:42 +02:00
|
|
|
--color-toolkit-badge-font: #fff;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-toolkit-badge-background: #545454;
|
2021-09-30 18:12:42 +02:00
|
|
|
--color-toolkit-kbd-font: #fff;
|
|
|
|
--color-toolkit-kbd-background: #000;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-toolkit-dialog-border: #ddd;
|
2021-09-30 18:12:42 +02:00
|
|
|
--color-toolkit-dialog-background: #fff;
|
|
|
|
--color-toolkit-tabs-label-border: #fff;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-toolkit-tabs-section-border: #ddd;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-toolkit-select-background: #e1e1e1;
|
2021-10-06 20:12:51 +02:00
|
|
|
--color-toolkit-select-border: #ddd;
|
2021-11-21 21:38:00 +01:00
|
|
|
--color-toolkit-select-background-hover: #bbb;
|
2021-11-12 11:38:28 +01:00
|
|
|
--color-toolkit-input-text-font: #222;
|
2022-02-25 15:46:18 +01:00
|
|
|
--color-toolkit-checkbox-onoff-off-background: #ddd;
|
|
|
|
--color-toolkit-checkbox-onoff-on-background: #ddd;
|
|
|
|
--color-toolkit-checkbox-onoff-on-mark-background: #3050ff;
|
|
|
|
--color-toolkit-checkbox-onoff-on-mark-color: #fff;
|
|
|
|
--color-toolkit-checkbox-onoff-off-mark-background: #aaa;
|
|
|
|
--color-toolkit-checkbox-onoff-off-mark-color: #fff;
|
|
|
|
--color-toolkit-checkbox-label-background: #ddd;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-toolkit-checkbox-label-border: #ddd;
|
|
|
|
--color-toolkit-checkbox-input-border: #3050ff;
|
2021-09-30 18:12:42 +02:00
|
|
|
--color-toolkit-engine-tooltip-border: #ddd;
|
|
|
|
--color-toolkit-engine-tooltip-background: #fff;
|
2021-10-08 16:06:48 +02:00
|
|
|
--color-toolkit-loader-border: rgba(0, 0, 0, 0.2);
|
|
|
|
--color-toolkit-loader-borderleft: rgba(255, 255, 255, 0);
|
2022-07-24 12:06:49 +02:00
|
|
|
--color-doc-code: #003;
|
|
|
|
--color-doc-code-background: #ddeaff;
|
2021-09-28 22:41:56 +02:00
|
|
|
}
|
|
|
|
|
2021-11-19 13:49:16 +01:00
|
|
|
.dark-themes() {
|
|
|
|
/// Base Colors
|
|
|
|
--color-base-font: #bbb;
|
|
|
|
--color-base-font-rgb: 187, 187, 187;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-base-background: #222428;
|
|
|
|
--color-base-background-mobile: #222428;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-url-font: #8af;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-url-visited-font: #c09cd9;
|
2021-11-19 13:49:16 +01:00
|
|
|
/// Header Colors
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-header-background: #1e1e22;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-header-border: #333;
|
|
|
|
/// Footer Colors
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-footer-background: #1e1e22;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-footer-border: #333;
|
|
|
|
/// Sidebar Colors
|
|
|
|
--color-sidebar-border: #555;
|
|
|
|
--color-sidebar-font: #fff;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-sidebar-background: #292c34;
|
2021-11-19 13:49:16 +01:00
|
|
|
/// BackToTop Colors
|
|
|
|
--color-backtotop-font: #bbb;
|
|
|
|
--color-backtotop-border: #333;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-backtotop-background: #2b2e36;
|
2021-11-19 13:49:16 +01:00
|
|
|
/// Button Colors
|
|
|
|
--color-btn-background: #58f;
|
|
|
|
--color-btn-font: #222;
|
2022-02-08 17:45:18 +01:00
|
|
|
--color-show-btn-background: #555;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-show-btn-font: #fff;
|
2021-11-19 13:49:16 +01:00
|
|
|
/// Search Input Colors
|
|
|
|
--color-search-border: #555;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-search-shadow: 0 2px 8px rgb(34 38 46 / 25%);
|
|
|
|
--color-search-background: #2b2e36;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-search-font: #fff;
|
|
|
|
--color-search-background-hover: #58f;
|
|
|
|
/// Modal Colors
|
|
|
|
--color-error: #f55b5b;
|
|
|
|
--color-error-background: darken(#db3434, 40%);
|
|
|
|
--color-warning: #f1d561;
|
|
|
|
--color-warning-background: darken(#dbba34, 40%);
|
|
|
|
--color-success: #79f56e;
|
|
|
|
--color-success-background: darken(#42db34, 40%);
|
|
|
|
/// Categories Colors
|
|
|
|
--color-categories-item-selected-font: #58f;
|
|
|
|
--color-categories-item-border-selected: #58f;
|
|
|
|
/// Autocomplete Colors
|
|
|
|
--color-autocomplete-font: #fff;
|
|
|
|
--color-autocomplete-border: #555;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-autocomplete-shadow: 0 2px 8px rgb(34 38 46 / 25%);
|
|
|
|
--color-autocomplete-background: #2b2e36;
|
|
|
|
--color-autocomplete-background-hover: #1e1e22;
|
2021-11-19 13:49:16 +01:00
|
|
|
/// Answer Colors
|
|
|
|
--color-answer-font: #bbb; // same as --color-base-font
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-answer-background: #26292f;
|
2021-11-19 13:49:16 +01:00
|
|
|
/// Results Colors
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-result-background: #26292f;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-result-border: #333;
|
|
|
|
--color-result-url-font: #fff;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-result-vim-selected: #1f1f23cc;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-result-vim-arrow: #8af;
|
|
|
|
--color-result-description-highlight-font: #fff;
|
|
|
|
--color-result-link-font: #8af;
|
|
|
|
--color-result-link-font-highlight: #8af;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-result-link-visited-font: #c09cd9;
|
2021-11-21 21:38:00 +01:00
|
|
|
--color-result-publishdate-font: #888;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-result-engines-font: #a4a4a4;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-result-search-url-border: #555;
|
|
|
|
--color-result-search-url-font: #fff;
|
|
|
|
/// Detail modal : same as the light version
|
|
|
|
--color-result-detail-font: #fff;
|
|
|
|
--color-result-detail-label-font: lightgray;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-result-detail-background: #1a1a1c;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-result-detail-hr: #555;
|
|
|
|
--color-result-detail-link: #8af;
|
|
|
|
--color-result-detail-loader-border: rgba(255, 255, 255, 0.2);
|
|
|
|
--color-result-detail-loader-borderleft: rgba(0, 0, 0, 0);
|
|
|
|
// Images Colors
|
2022-02-21 22:18:48 +01:00
|
|
|
--color-result-image-span-font: #bbb;
|
|
|
|
--color-result-image-span-font-selected: #222;
|
2021-11-27 14:37:04 +01:00
|
|
|
--color-result-image-background: #222;
|
2021-11-19 13:49:16 +01:00
|
|
|
/// Settings Colors
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-settings-tr-hover: #2c2c32;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-settings-engine-description-font: darken(#dcdcdc, 30%);
|
2023-09-08 12:49:01 +02:00
|
|
|
--color-settings-table-group-background: #1b1b21;
|
2021-11-19 13:49:16 +01:00
|
|
|
/// Toolkit Colors
|
|
|
|
--color-toolkit-badge-font: #fff;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-toolkit-badge-background: #555;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-toolkit-kbd-font: #000;
|
|
|
|
--color-toolkit-kbd-background: #fff;
|
|
|
|
--color-toolkit-dialog-border: #555;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-toolkit-dialog-background: #1e1e22;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-toolkit-tabs-label-border: #222;
|
|
|
|
--color-toolkit-tabs-section-border: #555;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-toolkit-select-background: #313338;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-toolkit-select-border: #555;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-toolkit-select-background-hover: #373b49;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-toolkit-input-text-font: #fff;
|
2022-03-30 17:09:40 +02:00
|
|
|
--color-toolkit-checkbox-onoff-off-background: #313338;
|
|
|
|
--color-toolkit-checkbox-onoff-on-background: #313338;
|
2022-02-25 15:46:18 +01:00
|
|
|
--color-toolkit-checkbox-onoff-on-mark-background: #58f;
|
|
|
|
--color-toolkit-checkbox-onoff-on-mark-color: #222;
|
|
|
|
--color-toolkit-checkbox-onoff-off-mark-background: #ddd;
|
|
|
|
--color-toolkit-checkbox-onoff-off-mark-color: #222;
|
|
|
|
--color-toolkit-checkbox-label-background: #222;
|
2021-11-19 13:49:16 +01:00
|
|
|
--color-toolkit-checkbox-label-border: #333;
|
|
|
|
--color-toolkit-checkbox-input-border: #58f;
|
|
|
|
--color-toolkit-engine-tooltip-border: #333;
|
|
|
|
--color-toolkit-engine-tooltip-background: #222;
|
|
|
|
--color-toolkit-loader-border: rgba(255, 255, 255, 0.2);
|
|
|
|
--color-toolkit-loader-borderleft: rgba(0, 0, 0, 0);
|
2022-07-24 12:06:49 +02:00
|
|
|
--color-doc-code: #ddd;
|
|
|
|
--color-doc-code-background: #4d5a6f;
|
2021-11-19 13:49:16 +01:00
|
|
|
}
|
|
|
|
|
2021-10-09 15:46:31 +02:00
|
|
|
/// Dark Theme (autoswitch based on device pref)
|
|
|
|
@media (prefers-color-scheme: dark) {
|
2021-11-19 13:49:16 +01:00
|
|
|
:root.theme-auto {
|
|
|
|
.dark-themes();
|
2021-10-09 15:46:31 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-19 13:49:16 +01:00
|
|
|
// Dark Theme by preferences
|
|
|
|
:root.theme-dark {
|
|
|
|
.dark-themes();
|
|
|
|
}
|
|
|
|
|
2021-09-28 22:41:56 +02:00
|
|
|
/// General Size
|
2021-09-26 13:01:22 +02:00
|
|
|
@results-width: 45rem;
|
2022-06-03 14:10:48 +02:00
|
|
|
@results-sidebar-width: 25rem;
|
2021-09-25 17:44:54 +02:00
|
|
|
@results-offset: 10rem;
|
2021-09-25 15:59:10 +02:00
|
|
|
@results-tablet-offset: 0.5rem;
|
2021-09-26 13:01:22 +02:00
|
|
|
@results-gap: 5rem;
|
2021-10-29 18:57:36 +02:00
|
|
|
@results-margin: 0.125rem;
|
|
|
|
@result-padding: 1rem;
|
2022-02-21 22:18:48 +01:00
|
|
|
@results-image-row-height: 12rem;
|
|
|
|
@results-image-row-height-phone: 6rem;
|
2022-03-09 17:43:58 +01:00
|
|
|
@search-width: 44rem;
|
2021-10-28 16:14:34 +02:00
|
|
|
// heigh of #search, see detail.less
|
2022-02-21 22:18:48 +01:00
|
|
|
@search-height: 7.6rem;
|
2017-02-12 15:06:01 +01:00
|
|
|
|
2021-10-18 21:57:32 +02:00
|
|
|
/// Device Size
|
|
|
|
/// @desktop > @tablet
|
2022-03-04 09:26:02 +01:00
|
|
|
@tablet: 79.75em; // see https://github.com/searxng/searxng/issues/874
|
2021-10-18 21:57:32 +02:00
|
|
|
@phone: 50em;
|
|
|
|
@small-phone: 35em;
|
2021-11-11 22:26:26 +01:00
|
|
|
@ultra-small-phone: 20rem;
|
2021-10-18 21:57:32 +02:00
|
|
|
|
2021-09-30 18:12:42 +02:00
|
|
|
/// From style.less
|
|
|
|
@stacked-bar-chart: rgb(0, 0, 0);
|
|
|
|
|
2017-02-12 15:06:01 +01:00
|
|
|
/// Load fonts from this directory.
|
|
|
|
@icon-font-path: "../../../fonts/";
|
|
|
|
//** File name for all font files.
|
|
|
|
@icon-font-name: "glyphicons-halflings-regular";
|
|
|
|
//** Element ID within SVG icon file.
|
|
|
|
@icon-font-svg-id: "glyphicons_halflingsregular";
|
2021-10-30 11:51:52 +02:00
|
|
|
|
|
|
|
// decoration of the select HTML elements
|
|
|
|
@select-light-svg-path: "../svg/select-light.svg";
|
|
|
|
@select-dark-svg-path: "../svg/select-dark.svg";
|