Merge pull request #355 from MrPaulBlack/simple-theme-css-vars

[simple theme] dark mode and some css cleanup
This commit is contained in:
Alexandre Flament 2021-10-10 09:41:46 +02:00 committed by GitHub
commit 7f72844ca6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 978 additions and 670 deletions

View file

@ -819,6 +819,156 @@ template {
*
* To change the colors of the site, simple edit this variables
*/
html {
--color-base-font: #444;
--color-base-background: #fff;
--color-url-font: #29314d;
--color-url-visited-font: #80b;
--color-header-background: #f7f7f7;
--color-header-border: #ddd;
--color-footer-background: #f7f7f7;
--color-footer-border: #ddd;
--color-sidebar-border: #ddd;
--color-sidebar-font: #000;
--color-backtotop-border: #ddd;
--color-backtotop-background: #fff;
--color-backtotop-shadow: #ccc;
--color-btn-background: #3050ff;
--color-btn-font: #fff;
--color-search-border: #bbb;
--color-search-background: #fff;
--color-search-font: #222;
--color-search-background-hover: #3050ff;
--color-error: #db3434;
--color-error-background: #fae1e1;
--color-warning: #dbba34;
--color-warning-background: #faf5e1;
--color-success: #42db34;
--color-success-background: #e3fae1;
--color-categories-item-selected-font: #3050ff;
--color-categories-item-border-selected: #3050ff;
--color-autocomplete-font: #000;
--color-autocomplete-border: #bbb;
--color-autocomplete-background: #fff;
--color-autocomplete-background-hover: #f7f7f7;
--color-answer-border: #ddd;
--color-answer-font: #000;
--color-result-shadow: #ccc;
--color-result-border: #ddd;
--color-result-url-font: #000;
--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;
--color-result-link-visited-font: #80b;
--color-result-publishdate-font: #777;
--color-result-engines-font: #777;
--color-result-search-url-border: #ddd;
--color-result-search-url-font: #000;
--color-result-image-span-background-hover: rgba(0, 0, 0, 0.6);
--color-result-image-span-font: #fff;
--color-result-image-background: #000bbb;
--color-settings-tr-hover: #f7f7f7;
--color-settings-engine-description-font: #909090;
--color-toolkit-badge-font: #fff;
--color-toolkit-badge-background: #777;
--color-toolkit-kbd-font: #fff;
--color-toolkit-kbd-background: #000;
--color-toolkit-dialog-border: #ddd;
--color-toolkit-dialog-background: #fff;
--color-toolkit-tabs-label-border: #fff;
--color-toolkit-tabs-section-border: #ddd;
--color-toolkit-select-border: #ddd;
--color-toolkit-checkbox-onoff-background: #ddd;
--color-toolkit-checkbox-onoff-label-shadow: rgba(0, 0, 0, 0.3);
--color-toolkit-checkbox-onoff-label-background: #3050ff;
--color-toolkit-checkbox-onoff-checked-background: #ddd;
--color-toolkit-checkbox-label-background: #fff;
--color-toolkit-checkbox-label-border: #ddd;
--color-toolkit-checkbox-input-border: #3050ff;
--color-toolkit-engine-tooltip-border: #ddd;
--color-toolkit-engine-tooltip-shadow: #ccc;
--color-toolkit-engine-tooltip-background: #fff;
--color-toolkit-loader-border: rgba(0, 0, 0, 0.2);
--color-toolkit-loader-borderleft: rgba(255, 255, 255, 0);
}
@media (prefers-color-scheme: dark) {
html {
--color-base-font: #bbb;
--color-base-background: #222;
--color-url-font: #8af;
--color-url-visited-font: #96b;
--color-header-background: #181818;
--color-header-border: #333;
--color-footer-background: #181818;
--color-footer-border: #333;
--color-sidebar-border: #333;
--color-sidebar-font: #fff;
--color-backtotop-border: #333;
--color-backtotop-background: #181818;
--color-backtotop-shadow: #444;
--color-btn-background: #58f;
--color-btn-font: #fff;
--color-search-border: #444;
--color-search-background: #222;
--color-search-font: #fff;
--color-search-background-hover: #58f;
--color-error: #f55b5b;
--color-error-background: #390a0a;
--color-warning: #f1d561;
--color-warning-background: #39300a;
--color-success: #79f56e;
--color-success-background: #0e390a;
--color-categories-item-selected-font: #58f;
--color-categories-item-border-selected: #58f;
--color-autocomplete-font: #fff;
--color-autocomplete-border: #444;
--color-autocomplete-background: #222;
--color-autocomplete-background-hover: #181818;
--color-answer-border: #ddd;
--color-answer-font: #fff;
--color-result-shadow: #444;
--color-result-border: #333;
--color-result-url-font: #fff;
--color-result-vim-selected: #181818;
--color-result-vim-arrow: #8af;
--color-result-description-highlight-font: #fff;
--color-result-link-font: #8af;
--color-result-link-font-highlight: #8af;
--color-result-link-visited-font: #96b;
--color-result-publishdate-font: #777;
--color-result-engines-font: #777;
--color-result-search-url-border: #333;
--color-result-search-url-font: #fff;
--color-result-image-span-background-hover: rgba(0, 0, 0, 0.6);
--color-result-image-span-font: #fff;
--color-result-image-background: #8af;
--color-settings-tr-hover: #333;
--color-settings-engine-description-font: #909090;
--color-toolkit-badge-font: #fff;
--color-toolkit-badge-background: #777;
--color-toolkit-kbd-font: #000;
--color-toolkit-kbd-background: #fff;
--color-toolkit-dialog-border: #333;
--color-toolkit-dialog-background: #222;
--color-toolkit-tabs-label-border: #222;
--color-toolkit-tabs-section-border: #333;
--color-toolkit-select-border: #333;
--color-toolkit-checkbox-onoff-background: #ddd;
--color-toolkit-checkbox-onoff-label-shadow: rgba(0, 0, 0, 0.3);
--color-toolkit-checkbox-onoff-label-background: #58f;
--color-toolkit-checkbox-onoff-checked-background: #ddd;
--color-toolkit-checkbox-label-background: #fff;
--color-toolkit-checkbox-label-border: #333;
--color-toolkit-checkbox-input-border: #58f;
--color-toolkit-engine-tooltip-border: #333;
--color-toolkit-engine-tooltip-shadow: #444;
--color-toolkit-engine-tooltip-background: #222;
--color-toolkit-loader-border: rgba(0, 0, 0, 0.2);
--color-toolkit-loader-borderleft: rgba(255, 255, 255, 0);
}
}
/*
* SearXNG, A privacy-respecting, hackable metasearch engine
*/
@ -1201,18 +1351,18 @@ html.js .show_if_nojs {
margin-bottom: 4px;
}
.danger {
background-color: #fae1e1;
background-color: var(--color-error-background);
}
.warning {
background: #faf5e1;
background: var(--color-warning-background);
}
.success {
background: #e3fae1;
background: var(--color-success-background);
}
.badge {
display: inline-block;
color: #fff;
background-color: #777;
color: var(--color-toolkit-badge-font);
background-color: var(--color-toolkit-badge-background);
text-align: center;
white-space: nowrap;
vertical-align: baseline;
@ -1224,14 +1374,14 @@ kbd {
padding: 2px 4px;
margin: 1px;
font-size: 90%;
color: white;
background: black;
color: var(--color-toolkit-kbd-font);
background: var(--color-toolkit-kbd-background);
}
table {
width: 100%;
}
table.striped tr {
border-bottom: 1px solid #ececec;
border-bottom: 1px solid var(--color-settings-tr-hover);
}
th {
padding: 0.4em;
@ -1240,13 +1390,13 @@ td {
padding: 0 4px;
}
tr:hover {
background: #ececec;
background: var(--color-settings-tr-hover);
}
div.selectable_url {
display: block;
border: 1px solid #888;
border: 1px solid var(--color-result-search-url-border);
padding: 4px;
color: #444;
color: var(--color-result-search-url-font);
margin: 0.1em;
overflow: hidden;
height: 1.2em;
@ -1266,12 +1416,14 @@ div.selectable_url pre {
position: relative;
padding: 1em 1em 1em 2.7em;
margin: 0 0 1em 0;
border: 1px solid black;
border-radius: 4px;
border: 1px solid var(--color-toolkit-dialog-border);
text-align: left;
color: #db3434;
background: #fae1e1;
border-color: #db3434;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
color: var(--color-error);
background: var(--color-error-background);
border-color: var(--color-error);
}
.dialog-error::before {
position: absolute;
@ -1315,12 +1467,14 @@ div.selectable_url pre {
position: relative;
padding: 1em 1em 1em 2.7em;
margin: 0 0 1em 0;
border: 1px solid black;
border-radius: 4px;
border: 1px solid var(--color-toolkit-dialog-border);
text-align: left;
color: #dbba34;
background: #faf5e1;
border-color: #dbba34;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
color: var(--color-warning);
background: var(--color-warning-background);
border-color: var(--color-warning);
}
.dialog-warning::before {
position: absolute;
@ -1364,10 +1518,12 @@ div.selectable_url pre {
position: relative;
padding: 1em 1em 1em 2.7em;
margin: 0 0 1em 0;
border: 1px solid black;
border-radius: 4px;
border: 1px solid var(--color-toolkit-dialog-border);
text-align: left;
background: white;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background: var(--color-toolkit-dialog-background);
position: fixed;
top: 50%;
left: 50%;
@ -1449,7 +1605,7 @@ div.selectable_url pre {
margin: 0 0.7em;
letter-spacing: 0.5px;
text-transform: uppercase;
border: solid white;
border: solid var(--color-toolkit-tabs-label-border);
border-width: 0 0 2px 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
@ -1460,19 +1616,19 @@ div.selectable_url pre {
cursor: pointer;
}
.tabs > label:hover {
border-bottom: 2px solid #084999;
border-bottom: 2px solid var(--color-categories-item-border-selected);
}
.tabs > section {
min-width: 100%;
padding: 0.7rem 0;
box-sizing: border-box;
border-top: 1px solid black;
border-top: 1px solid var(--color-toolkit-tabs-section-border);
display: none;
}
.tabs > label:last-of-type {
border-bottom: 2px solid #084999;
background: #3498DB;
color: #FFF;
border-bottom: 2px solid var(--color-categories-item-border-selected);
background: var(--color-categories-item-selected);
color: var(--color-categories-item-selected-font);
font-weight: bold;
letter-spacing: -0.1px;
}
@ -1490,12 +1646,12 @@ html body .tabs > input:checked ~ label {
color: inherit;
}
html body .tabs > input:checked ~ label:hover {
border-bottom: 2px solid #084999;
border-bottom: 2px solid var(--color-categories-item-border-selected);
}
html body .tabs > input:checked + label {
border-bottom: 2px solid #084999;
background: #3498DB;
color: #FFF;
border-bottom: 2px solid var(--color-categories-item-border-selected);
background: var(--color-categories-item-selected);
color: var(--color-categories-item-selected-font);
}
html body .tabs > input:checked + label + section {
display: block;
@ -1505,7 +1661,7 @@ select {
height: 28px;
margin: 0 1em 0 0;
padding: 2px 8px 2px 0 !important;
color: #222;
color: var(--color-search-font);
font-size: 12px;
z-index: 2;
}
@ -1519,7 +1675,7 @@ select:focus {
-webkit-appearance: none;
-moz-appearance: none;
border: none;
border-bottom: 1px solid #d7d7d7;
border-bottom: 1px solid var(--color-toolkit-select-border);
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1MTJweCIgaGVpZ2h0PSI1MTJweCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDUxMiA1MTIiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTI4LDE5MiAyNTYsMzIwIDM4NCwxOTIiLz48L2c+PC9zdmc+Cg==) no-repeat;
background-position-x: 105%;
background-size: 2em;
@ -1528,7 +1684,7 @@ select:focus {
}
select:hover,
select:focus {
border-bottom: 1px solid #3498DB;
border-bottom: 1px solid var(--color-search-border);
}
}
/* -- checkbox-onoff -- */
@ -1537,7 +1693,7 @@ select:focus {
display: inline-block;
width: 40px;
height: 10px;
background: #dcdcdc;
background: var(--color-toolkit-checkbox-onoff-background);
margin: 8px 1rem;
position: relative;
border-radius: 50px;
@ -1550,17 +1706,17 @@ select:focus {
top: -5px;
cursor: pointer;
border-radius: 50px;
box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 5px 0 var(--color-toolkit-checkbox-onoff-label-shadow);
transition: all 0.4s ease;
left: 27px;
background-color: #3498db;
background-color: var(--color-toolkit-checkbox-onoff-label-background);
}
.checkbox-onoff input[type=checkbox] {
visibility: hidden;
}
.checkbox-onoff input[type=checkbox]:checked + label {
left: -5px;
background: #dcdcdc;
background: var(--color-toolkit-checkbox-onoff-checked-background);
}
}
/* -- checkbox -- */
@ -1577,9 +1733,10 @@ select:focus {
position: absolute;
top: 0;
left: 0;
background: white;
border-radius: 4px;
box-shadow: inset 0 1px 1px white, 0 1px 4px rgba(0, 0, 0, 0.5);
background: var(--color-toolkit-checkbox-label-background);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.checkbox label::after {
content: '';
@ -1588,7 +1745,7 @@ select:focus {
position: absolute;
top: 4px;
left: 4px;
border: 3px solid #333;
border: 3px solid var(--color-toolkit-checkbox-label-border);
border-top: none;
border-right: none;
background: transparent;
@ -1599,7 +1756,7 @@ select:focus {
visibility: hidden;
}
.checkbox input[type=checkbox]:checked + label::after {
border-color: #3498db;
border-color: var(--color-toolkit-checkbox-input-border);
opacity: 1;
}
.checkbox input[disabled] + label {
@ -1628,10 +1785,10 @@ select:focus {
font-size: 10px;
position: relative;
text-indent: -9999em;
border-top: 0.5em solid rgba(0, 0, 0, 0.2);
border-right: 0.5em solid rgba(0, 0, 0, 0.2);
border-bottom: 0.5em solid rgba(0, 0, 0, 0.2);
border-left: 0.5em solid rgba(255, 255, 255, 0);
border-top: 0.5em solid var(--color-toolkit-loader-border);
border-right: 0.5em solid var(--color-toolkit-loader-border);
border-bottom: 0.5em solid var(--color-toolkit-loader-border);
border-left: 0.5em solid var(--color-toolkit-loader-borderleft);
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
@ -1664,13 +1821,16 @@ select:focus {
position: absolute;
padding: 0.5rem 1rem;
margin: 0 0 0 2rem;
border: 1px solid #ddd;
box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.1);
background: white;
border: 1px solid var(--color-toolkit-engine-tooltip-border);
box-shadow: 0 0 5px var(--color-toolkit-engine-tooltip-shadow);
background: var(--color-toolkit-engine-tooltip-background);
font-size: 14px;
font-weight: normal;
z-index: 1000000;
text-align: left;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
th:hover .engine-tooltip,
td:hover .engine-tooltip,
@ -1746,11 +1906,14 @@ td:hover .engine-tooltip,
max-height: 0;
overflow-y: hidden;
text-align: left;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.autocomplete:active,
.autocomplete:focus,
.autocomplete:hover {
background-color: white;
background-color: var(--color-autocomplete-background);
}
.autocomplete:empty {
display: none;
@ -1762,22 +1925,26 @@ td:hover .engine-tooltip,
}
.autocomplete > ul > li {
cursor: pointer;
padding: 5px 0 5px 10px;
padding: 8px 0 8px 8px;
}
.autocomplete > ul > li.active,
.autocomplete > ul > li:active,
.autocomplete > ul > li:focus {
background-color: #3498DB;
.autocomplete > ul > li:focus,
.autocomplete > ul > li:hover {
background-color: var(--color-autocomplete-background-hover);
}
.autocomplete > ul > li.active a:active,
.autocomplete > ul > li:active a:active,
.autocomplete > ul > li:focus a:active,
.autocomplete > ul > li:hover a:active,
.autocomplete > ul > li.active a:focus,
.autocomplete > ul > li:active a:focus,
.autocomplete > ul > li:focus a:focus,
.autocomplete > ul > li:hover a:focus,
.autocomplete > ul > li.active a:hover,
.autocomplete > ul > li:active a:hover,
.autocomplete > ul > li:focus a:hover {
.autocomplete > ul > li:focus a:hover,
.autocomplete > ul > li:hover a:hover {
text-decoration: none;
}
.autocomplete > ul > li.locked {
@ -1785,8 +1952,9 @@ td:hover .engine-tooltip,
}
.autocomplete.open {
display: block;
background-color: white;
border: 1px solid #3498DB;
background-color: var(--color-autocomplete-background);
color: var(--color-autocomplete-font);
border: 1px solid var(--color-autocomplete-border);
max-height: 500px;
overflow-y: auto;
z-index: 100;
@ -1799,8 +1967,7 @@ td:hover .engine-tooltip,
bottom: 0;
}
.autocomplete > ul > li {
padding: 7px 0 7px 10px;
border-bottom: 1px solid #E8E7E6;
border-bottom: 1px solid var(--color-result-top-border);
text-align: left;
}
}
@ -1847,9 +2014,6 @@ td:hover .engine-tooltip,
margin-top: 0;
}
}
.column-reliability .engine-tooltip {
right: 12rem;
}
#tab-contentquery table td,
#tab-contentquery table th {
text-align: left !important;
@ -1880,7 +2044,7 @@ td:hover .engine-tooltip,
padding: 5px 0 0 0;
float: left;
width: 50%;
color: #909090;
color: var(--color-settings-engine-description-font);
font-size: 90%;
}
#main_preferences select {
@ -1907,27 +2071,27 @@ td:hover .engine-tooltip,
}
#main_preferences table.cookies > tbody > tr:nth-child(even) > th,
#main_preferences table.cookies > tbody > tr:nth-child(even) > td {
background-color: #ececec;
background-color: var(--color-settings-tr-hover);
}
#main_preferences .name,
#main_preferences .shortcut {
text-align: left;
}
#main_preferences .preferences_back {
background: none repeat scroll 0 0 #3498DB;
color: white;
background: none repeat scroll 0 0 var(--color-btn-background);
color: var(--color-btn-font);
border: 0 none;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
cursor: pointer;
display: inline-block;
margin: 2px 4px;
padding: 0.5em;
padding: 0.7em;
}
#main_preferences .preferences_back a {
display: block;
color: #FFF;
color: var(--color-settings-return-font);
}
#main_preferences .preferences_back a::first-letter {
text-transform: uppercase;
@ -1957,11 +2121,11 @@ td:hover .engine-tooltip,
#search {
padding: 0 2em 0 10rem;
margin: 0;
background: #f7f7f7;
border-bottom: 1px solid #d7d7d7;
background: var(--color-header-background);
border-bottom: 1px solid var(--color-header-border);
}
#search_wrapper {
padding: 10px 0;
padding: 20px 0 10px 0;
}
.search_box {
margin: 0 12px 0 0;
@ -1980,21 +2144,20 @@ td:hover .engine-tooltip,
box-sizing: border-box;
width: 1.8em;
margin: 0;
padding: 2px;
height: 2.2em;
background: none repeat scroll 0 0 #FFF;
border-top: 1px solid #3498DB;
border-bottom: 1px solid #3498DB;
padding: 8px 2px;
background: none repeat scroll 0 0 var(--color-search-background);
border-top: 1px solid var(--color-search-border);
border-bottom: 1px solid var(--color-search-border);
border-right: none;
border-left: none;
border-radius: 0;
outline: none;
color: #222;
color: var(--color-search-font);
font-size: 16px;
z-index: 10000;
}
#clear_search:hover {
color: #3498DB;
color: var(--color-search-background-hover);
}
#clear_search.empty * {
display: none;
@ -2005,22 +2168,22 @@ td:hover .engine-tooltip,
border-collapse: separate;
box-sizing: border-box;
margin: 0;
padding: 2px;
height: 2.2em;
background: none repeat scroll 0 0 #FFF;
border: 1px solid #3498DB;
padding: 8px;
background: none repeat scroll 0 0 var(--color-search-background);
border: 1px solid var(--color-search-border);
border-radius: 0;
outline: none;
color: #222;
color: var(--color-search-font);
font-size: 16px;
z-index: 2;
}
#q {
outline: medium none;
padding-left: 8px;
padding-left: 12px;
padding-right: 0 !important;
border-right: none;
width: 40rem;
border-radius: 10px 0 0 10px;
}
#q::-ms-clear,
#q::-webkit-search-cancel-button {
@ -2028,12 +2191,12 @@ td:hover .engine-tooltip,
}
#send_search {
border-left: none;
width: 2.2em;
border-radius: 0 10px 10px 0;
}
#send_search:hover {
cursor: pointer;
background-color: #3498DB;
color: #ECF0F1;
background-color: var(--color-search-background-hover);
color: var(--color-search-background);
}
.no-js #send_search {
width: auto !important;
@ -2132,9 +2295,6 @@ td:hover .engine-tooltip,
position: relative;
margin: 0 3px;
padding: 0;
/* label:hover {
border-bottom: 2px solid @color-categories-item-border-unselected-hover;
} */
}
.category input {
display: none;
@ -2155,31 +2315,15 @@ td:hover .engine-tooltip,
user-select: none;
}
.category input[type="checkbox"]:focus + label {
box-shadow: 0 0 8px #3498db;
box-shadow: 0 0 8px var(--color-categories-item-border-selected);
}
.category input[type="checkbox"]:checked + label {
background: #3498DB;
color: #FFF;
border-bottom: 2px solid #084999;
color: var(--color-categories-item-selected-font);
border-bottom: 2px solid var(--color-categories-item-border-selected);
}
#categories_container {
position: relative;
}
#categories_container .help {
position: absolute;
width: 100%;
bottom: -20px;
overflow: hidden;
opacity: 0;
transition: opacity 1s ease;
font-size: 0.8em;
text-align: center;
background: white;
}
#categories_container:hover .help {
opacity: 0.8;
transition: opacity 1s ease;
}
.ion-icon-big {
display: inline-block;
line-height: 1;
@ -2203,7 +2347,8 @@ html {
-ms-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
color: #444;
color: var(--color-base-font);
background-color: var(--color-base-background);
padding: 0;
margin: 0;
}
@ -2235,8 +2380,8 @@ footer {
padding: 1rem 0;
width: 100%;
text-align: center;
background-color: #f7f7f7;
border-top: 1px solid #d7d7d7;
background-color: var(--color-footer-background);
border-top: 1px solid var(--color-footer-border);
overflow: hidden;
}
footer p {
@ -2255,28 +2400,28 @@ footer p {
}
input[type="submit"],
#results button[type="submit"] {
padding: 0.5rem;
padding: 0.7rem;
display: inline-block;
background: #3498DB;
color: #FFF;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
background: var(--color-btn-background);
color: var(--color-btn-font);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
border: 0;
cursor: pointer;
}
a {
text-decoration: none;
color: #29314d;
color: var(--color-url-font);
}
a:visited {
color: #684898;
color: var(--color-url-visited-font);
}
a:visited .highlight {
color: #684898;
color: var(--color-url-visited-font);
}
article[data-vim-selected] {
background: #f7f7f7;
background: var(--color-result-vim-selected);
}
article[data-vim-selected]::before {
position: absolute;
@ -2284,17 +2429,17 @@ article[data-vim-selected]::before {
padding: 2px;
content: ">";
font-weight: bold;
color: #3498DB;
color: var(--color-result-vim-arrow);
}
article.result-images[data-vim-selected] {
background: #3498DB;
background: var(--color-result-vim-arrow);
}
article.result-images[data-vim-selected]::before {
display: none;
content: "";
}
.result {
margin: 19px 0 18px 0;
margin: 2rem 0;
padding: 0;
}
.result h3 {
@ -2305,12 +2450,12 @@ article.result-images[data-vim-selected]::before {
margin-bottom: 0;
}
.result h3 a {
color: #084999;
color: var(--color-result-link-font);
font-weight: normal;
font-size: 1.1em;
}
.result h3 a:visited {
color: #684898;
color: var(--color-result-link-visited-font);
}
.result h3 a:focus,
.result h3 a:hover {
@ -2337,7 +2482,7 @@ article.result-images[data-vim-selected]::before {
.result .content .highlight,
.result .stat .highlight,
.result .altlink .highlight {
color: #000000;
color: var(--color-result-description-highlight-font);
background: inherit;
font-weight: bold;
}
@ -2352,11 +2497,11 @@ article.result-images[data-vim-selected]::before {
padding: 0;
max-width: 54em;
word-wrap: break-word;
color: #25a55b;
color: var(--color-result-url-font);
}
.result .published_date {
font-size: 0.8em;
color: #888;
color: var(--color-result-publishdate-font);
}
.result img.thumbnail {
float: left;
@ -2387,7 +2532,7 @@ article.result-images[data-vim-selected]::before {
}
.engines {
float: right;
color: #888;
color: var(--color-result-engines-font);
}
.engines span {
font-size: smaller;
@ -2397,9 +2542,8 @@ article.result-images[data-vim-selected]::before {
font-size: 0.8em;
}
.highlight {
color: #094089;
color: var(--color-result-link-font-highlight);
background: inherit;
font-weight: bold;
}
.result-images {
display: inline-block;
@ -2414,11 +2558,11 @@ article.result-images[data-vim-selected]::before {
padding: 0;
border: none;
max-height: 200px;
background: #084999;
background: var(--color-result-image-background);
}
.result-images span a {
display: none;
color: #FFF;
color: var(--color-result-image-span-font);
}
.result-images:hover span a {
display: block;
@ -2427,7 +2571,7 @@ article.result-images[data-vim-selected]::before {
right: 0;
padding: 4px;
margin: 0 0 4px 4px;
background-color: rgba(0, 0, 0, 0.6);
background-color: var(--color-result-image-span-background-hover);
font-size: 0.7em;
}
.result-map img.image {
@ -2454,23 +2598,6 @@ article.result-images[data-vim-selected]::before {
.hidden {
display: none !important;
}
.torrent_result {
border-left: 10px solid lightgray;
padding-left: 3px;
}
.torrent_result p {
margin: 3px;
font-size: 0.8em;
}
.torrent_result a {
color: #084999;
}
.torrent_result a:hover {
text-decoration: underline;
}
.torrent_result a:visited {
color: #684898;
}
#results {
margin: 2rem 2rem 0 10rem;
display: grid;
@ -2506,7 +2633,7 @@ article.result-images[data-vim-selected]::before {
font-size: 0.9em;
display: inline-block;
background: transparent;
color: #444;
color: var(--color-result-search-url-font);
cursor: pointer;
}
#suggestions input[type="submit"],
@ -2517,7 +2644,7 @@ article.result-images[data-vim-selected]::before {
#answers .infobox .url a,
#infoboxes .infobox .url a,
#corrections .infobox .url a {
color: #084999;
color: var(--color-result-link-font);
text-decoration: none;
font-size: 0.9rem;
}
@ -2549,13 +2676,17 @@ article.result-images[data-vim-selected]::before {
#search_url .title,
#apis .title {
margin: 2em 0 0.5em 0;
color: #444;
color: var(--color-base-font);
}
#answers {
grid-area: answers;
border: 1px solid #ddd;
border: 1px solid var(--color-answer-border);
padding: 0.9em;
box-shadow: 0 0 5px #ccc;
margin-bottom: 2rem;
color: var(--color-answer-font);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#answers h4 {
display: none;
@ -2572,13 +2703,16 @@ article.result-images[data-vim-selected]::before {
#sidebar {
grid-area: sidebar;
word-wrap: break-word;
color: var(--color-sidebar-font);
}
#sidebar .infobox {
margin: 10px 0 10px;
border: 1px solid #ddd;
border: 1px solid var(--color-sidebar-border);
padding: 0.9em;
font-size: 0.9em;
box-shadow: 0 0 5px #ccc;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#sidebar .infobox h2 {
margin: 0 0 0.5em 0;
@ -2628,13 +2762,13 @@ article.result-images[data-vim-selected]::before {
border: 0;
display: block;
font-size: 1.2em;
color: #222;
color: var(--color-search-font);
}
#linkto_preferences a:link *,
#linkto_preferences a:hover *,
#linkto_preferences a:visited *,
#linkto_preferences a:active * {
color: #222;
color: var(--color-search-font);
}
#pagination {
grid-area: pagination;
@ -2647,22 +2781,25 @@ article.result-images[data-vim-selected]::before {
clear: both;
}
#backToTop {
border: 1px solid #ddd;
border: 1px solid var(--color-backtotop-border);
margin: 0;
padding: 0;
font-size: 1em;
box-shadow: 0 0 5px #ccc;
background: white;
box-shadow: 0 0 5px var(--color-backtotop-shadow);
background: var(--color-backtotop-background);
position: fixed;
bottom: 8rem;
left: 56.3rem;
transition: opacity 0.5s;
opacity: 0;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#backToTop a {
display: block;
margin: 0;
padding: 0.6em;
padding: 0.7em;
}
@media screen and (max-width: 80em) {
#main_preferences,
@ -2684,6 +2821,7 @@ article.result-images[data-vim-selected]::before {
margin: 0.5em 0.5em 0.5em 0;
}
#sidebar {
margin-bottom: 2rem;
padding: 0;
float: none;
border: none;
@ -2698,12 +2836,6 @@ article.result-images[data-vim-selected]::before {
#search_url {
display: none;
}
.result {
border-bottom: 1px solid #E8E7E6;
margin: 0;
padding-top: 8px;
padding-bottom: 6px;
}
.result h3 {
margin: 0 0 1px 0;
}
@ -2789,9 +2921,13 @@ article.result-images[data-vim-selected]::before {
#sidebar {
margin: 0 5px 2px 5px;
}
.infobox {
box-shadow: 0 0 5px var(--color-result-shadow);
}
#corrections,
#answers {
margin: 0 5px 1em 5px;
box-shadow: 0 0 5px var(--color-result-shadow);
}
#results {
margin: 0;
@ -2802,11 +2938,18 @@ article.result-images[data-vim-selected]::before {
}
.result {
padding: 8px 10px 6px 10px;
margin: 0.5rem;
border: 1px solid var(--color-result-border);
box-shadow: 0 0 5px var(--color-result-shadow);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.result-images {
margin: 0;
padding: 0;
border: none;
box-shadow: none;
}
}
@media screen and (max-width: 35em) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -819,6 +819,156 @@ template {
*
* To change the colors of the site, simple edit this variables
*/
html {
--color-base-font: #444;
--color-base-background: #fff;
--color-url-font: #29314d;
--color-url-visited-font: #80b;
--color-header-background: #f7f7f7;
--color-header-border: #ddd;
--color-footer-background: #f7f7f7;
--color-footer-border: #ddd;
--color-sidebar-border: #ddd;
--color-sidebar-font: #000;
--color-backtotop-border: #ddd;
--color-backtotop-background: #fff;
--color-backtotop-shadow: #ccc;
--color-btn-background: #3050ff;
--color-btn-font: #fff;
--color-search-border: #bbb;
--color-search-background: #fff;
--color-search-font: #222;
--color-search-background-hover: #3050ff;
--color-error: #db3434;
--color-error-background: #fae1e1;
--color-warning: #dbba34;
--color-warning-background: #faf5e1;
--color-success: #42db34;
--color-success-background: #e3fae1;
--color-categories-item-selected-font: #3050ff;
--color-categories-item-border-selected: #3050ff;
--color-autocomplete-font: #000;
--color-autocomplete-border: #bbb;
--color-autocomplete-background: #fff;
--color-autocomplete-background-hover: #f7f7f7;
--color-answer-border: #ddd;
--color-answer-font: #000;
--color-result-shadow: #ccc;
--color-result-border: #ddd;
--color-result-url-font: #000;
--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;
--color-result-link-visited-font: #80b;
--color-result-publishdate-font: #777;
--color-result-engines-font: #777;
--color-result-search-url-border: #ddd;
--color-result-search-url-font: #000;
--color-result-image-span-background-hover: rgba(0, 0, 0, 0.6);
--color-result-image-span-font: #fff;
--color-result-image-background: #000bbb;
--color-settings-tr-hover: #f7f7f7;
--color-settings-engine-description-font: #909090;
--color-toolkit-badge-font: #fff;
--color-toolkit-badge-background: #777;
--color-toolkit-kbd-font: #fff;
--color-toolkit-kbd-background: #000;
--color-toolkit-dialog-border: #ddd;
--color-toolkit-dialog-background: #fff;
--color-toolkit-tabs-label-border: #fff;
--color-toolkit-tabs-section-border: #ddd;
--color-toolkit-select-border: #ddd;
--color-toolkit-checkbox-onoff-background: #ddd;
--color-toolkit-checkbox-onoff-label-shadow: rgba(0, 0, 0, 0.3);
--color-toolkit-checkbox-onoff-label-background: #3050ff;
--color-toolkit-checkbox-onoff-checked-background: #ddd;
--color-toolkit-checkbox-label-background: #fff;
--color-toolkit-checkbox-label-border: #ddd;
--color-toolkit-checkbox-input-border: #3050ff;
--color-toolkit-engine-tooltip-border: #ddd;
--color-toolkit-engine-tooltip-shadow: #ccc;
--color-toolkit-engine-tooltip-background: #fff;
--color-toolkit-loader-border: rgba(0, 0, 0, 0.2);
--color-toolkit-loader-borderleft: rgba(255, 255, 255, 0);
}
@media (prefers-color-scheme: dark) {
html {
--color-base-font: #bbb;
--color-base-background: #222;
--color-url-font: #8af;
--color-url-visited-font: #96b;
--color-header-background: #181818;
--color-header-border: #333;
--color-footer-background: #181818;
--color-footer-border: #333;
--color-sidebar-border: #333;
--color-sidebar-font: #fff;
--color-backtotop-border: #333;
--color-backtotop-background: #181818;
--color-backtotop-shadow: #444;
--color-btn-background: #58f;
--color-btn-font: #fff;
--color-search-border: #444;
--color-search-background: #222;
--color-search-font: #fff;
--color-search-background-hover: #58f;
--color-error: #f55b5b;
--color-error-background: #390a0a;
--color-warning: #f1d561;
--color-warning-background: #39300a;
--color-success: #79f56e;
--color-success-background: #0e390a;
--color-categories-item-selected-font: #58f;
--color-categories-item-border-selected: #58f;
--color-autocomplete-font: #fff;
--color-autocomplete-border: #444;
--color-autocomplete-background: #222;
--color-autocomplete-background-hover: #181818;
--color-answer-border: #ddd;
--color-answer-font: #fff;
--color-result-shadow: #444;
--color-result-border: #333;
--color-result-url-font: #fff;
--color-result-vim-selected: #181818;
--color-result-vim-arrow: #8af;
--color-result-description-highlight-font: #fff;
--color-result-link-font: #8af;
--color-result-link-font-highlight: #8af;
--color-result-link-visited-font: #96b;
--color-result-publishdate-font: #777;
--color-result-engines-font: #777;
--color-result-search-url-border: #333;
--color-result-search-url-font: #fff;
--color-result-image-span-background-hover: rgba(0, 0, 0, 0.6);
--color-result-image-span-font: #fff;
--color-result-image-background: #8af;
--color-settings-tr-hover: #333;
--color-settings-engine-description-font: #909090;
--color-toolkit-badge-font: #fff;
--color-toolkit-badge-background: #777;
--color-toolkit-kbd-font: #000;
--color-toolkit-kbd-background: #fff;
--color-toolkit-dialog-border: #333;
--color-toolkit-dialog-background: #222;
--color-toolkit-tabs-label-border: #222;
--color-toolkit-tabs-section-border: #333;
--color-toolkit-select-border: #333;
--color-toolkit-checkbox-onoff-background: #ddd;
--color-toolkit-checkbox-onoff-label-shadow: rgba(0, 0, 0, 0.3);
--color-toolkit-checkbox-onoff-label-background: #58f;
--color-toolkit-checkbox-onoff-checked-background: #ddd;
--color-toolkit-checkbox-label-background: #fff;
--color-toolkit-checkbox-label-border: #333;
--color-toolkit-checkbox-input-border: #58f;
--color-toolkit-engine-tooltip-border: #333;
--color-toolkit-engine-tooltip-shadow: #444;
--color-toolkit-engine-tooltip-background: #222;
--color-toolkit-loader-border: rgba(0, 0, 0, 0.2);
--color-toolkit-loader-borderleft: rgba(255, 255, 255, 0);
}
}
/*
* SearXNG, A privacy-respecting, hackable metasearch engine
*/
@ -1201,18 +1351,18 @@ html.js .show_if_nojs {
margin-bottom: 4px;
}
.danger {
background-color: #fae1e1;
background-color: var(--color-error-background);
}
.warning {
background: #faf5e1;
background: var(--color-warning-background);
}
.success {
background: #e3fae1;
background: var(--color-success-background);
}
.badge {
display: inline-block;
color: #fff;
background-color: #777;
color: var(--color-toolkit-badge-font);
background-color: var(--color-toolkit-badge-background);
text-align: center;
white-space: nowrap;
vertical-align: baseline;
@ -1224,14 +1374,14 @@ kbd {
padding: 2px 4px;
margin: 1px;
font-size: 90%;
color: white;
background: black;
color: var(--color-toolkit-kbd-font);
background: var(--color-toolkit-kbd-background);
}
table {
width: 100%;
}
table.striped tr {
border-bottom: 1px solid #ececec;
border-bottom: 1px solid var(--color-settings-tr-hover);
}
th {
padding: 0.4em;
@ -1240,13 +1390,13 @@ td {
padding: 0 4px;
}
tr:hover {
background: #ececec;
background: var(--color-settings-tr-hover);
}
div.selectable_url {
display: block;
border: 1px solid #888;
border: 1px solid var(--color-result-search-url-border);
padding: 4px;
color: #444;
color: var(--color-result-search-url-font);
margin: 0.1em;
overflow: hidden;
height: 1.2em;
@ -1266,12 +1416,14 @@ div.selectable_url pre {
position: relative;
padding: 1em 1em 1em 2.7em;
margin: 0 0 1em 0;
border: 1px solid black;
border-radius: 4px;
border: 1px solid var(--color-toolkit-dialog-border);
text-align: left;
color: #db3434;
background: #fae1e1;
border-color: #db3434;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
color: var(--color-error);
background: var(--color-error-background);
border-color: var(--color-error);
}
.dialog-error::before {
position: absolute;
@ -1315,12 +1467,14 @@ div.selectable_url pre {
position: relative;
padding: 1em 1em 1em 2.7em;
margin: 0 0 1em 0;
border: 1px solid black;
border-radius: 4px;
border: 1px solid var(--color-toolkit-dialog-border);
text-align: left;
color: #dbba34;
background: #faf5e1;
border-color: #dbba34;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
color: var(--color-warning);
background: var(--color-warning-background);
border-color: var(--color-warning);
}
.dialog-warning::before {
position: absolute;
@ -1364,10 +1518,12 @@ div.selectable_url pre {
position: relative;
padding: 1em 1em 1em 2.7em;
margin: 0 0 1em 0;
border: 1px solid black;
border-radius: 4px;
border: 1px solid var(--color-toolkit-dialog-border);
text-align: left;
background: white;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background: var(--color-toolkit-dialog-background);
position: fixed;
top: 50%;
left: 50%;
@ -1449,7 +1605,7 @@ div.selectable_url pre {
margin: 0 0.7em;
letter-spacing: 0.5px;
text-transform: uppercase;
border: solid white;
border: solid var(--color-toolkit-tabs-label-border);
border-width: 0 0 2px 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
@ -1460,19 +1616,19 @@ div.selectable_url pre {
cursor: pointer;
}
.tabs > label:hover {
border-bottom: 2px solid #084999;
border-bottom: 2px solid var(--color-categories-item-border-selected);
}
.tabs > section {
min-width: 100%;
padding: 0.7rem 0;
box-sizing: border-box;
border-top: 1px solid black;
border-top: 1px solid var(--color-toolkit-tabs-section-border);
display: none;
}
.tabs > label:last-of-type {
border-bottom: 2px solid #084999;
background: #3498DB;
color: #FFF;
border-bottom: 2px solid var(--color-categories-item-border-selected);
background: var(--color-categories-item-selected);
color: var(--color-categories-item-selected-font);
font-weight: bold;
letter-spacing: -0.1px;
}
@ -1490,12 +1646,12 @@ html body .tabs > input:checked ~ label {
color: inherit;
}
html body .tabs > input:checked ~ label:hover {
border-bottom: 2px solid #084999;
border-bottom: 2px solid var(--color-categories-item-border-selected);
}
html body .tabs > input:checked + label {
border-bottom: 2px solid #084999;
background: #3498DB;
color: #FFF;
border-bottom: 2px solid var(--color-categories-item-border-selected);
background: var(--color-categories-item-selected);
color: var(--color-categories-item-selected-font);
}
html body .tabs > input:checked + label + section {
display: block;
@ -1505,7 +1661,7 @@ select {
height: 28px;
margin: 0 1em 0 0;
padding: 2px 8px 2px 0 !important;
color: #222;
color: var(--color-search-font);
font-size: 12px;
z-index: 2;
}
@ -1519,7 +1675,7 @@ select:focus {
-webkit-appearance: none;
-moz-appearance: none;
border: none;
border-bottom: 1px solid #d7d7d7;
border-bottom: 1px solid var(--color-toolkit-select-border);
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1MTJweCIgaGVpZ2h0PSI1MTJweCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDUxMiA1MTIiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTI4LDE5MiAyNTYsMzIwIDM4NCwxOTIiLz48L2c+PC9zdmc+Cg==) no-repeat;
background-position-x: 105%;
background-size: 2em;
@ -1528,7 +1684,7 @@ select:focus {
}
select:hover,
select:focus {
border-bottom: 1px solid #3498DB;
border-bottom: 1px solid var(--color-search-border);
}
}
/* -- checkbox-onoff -- */
@ -1537,7 +1693,7 @@ select:focus {
display: inline-block;
width: 40px;
height: 10px;
background: #dcdcdc;
background: var(--color-toolkit-checkbox-onoff-background);
margin: 8px 1rem;
position: relative;
border-radius: 50px;
@ -1550,17 +1706,17 @@ select:focus {
top: -5px;
cursor: pointer;
border-radius: 50px;
box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 5px 0 var(--color-toolkit-checkbox-onoff-label-shadow);
transition: all 0.4s ease;
left: 27px;
background-color: #3498db;
background-color: var(--color-toolkit-checkbox-onoff-label-background);
}
.checkbox-onoff input[type=checkbox] {
visibility: hidden;
}
.checkbox-onoff input[type=checkbox]:checked + label {
left: -5px;
background: #dcdcdc;
background: var(--color-toolkit-checkbox-onoff-checked-background);
}
}
/* -- checkbox -- */
@ -1577,9 +1733,10 @@ select:focus {
position: absolute;
top: 0;
left: 0;
background: white;
border-radius: 4px;
box-shadow: inset 0 1px 1px white, 0 1px 4px rgba(0, 0, 0, 0.5);
background: var(--color-toolkit-checkbox-label-background);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.checkbox label::after {
content: '';
@ -1588,7 +1745,7 @@ select:focus {
position: absolute;
top: 4px;
left: 4px;
border: 3px solid #333;
border: 3px solid var(--color-toolkit-checkbox-label-border);
border-top: none;
border-right: none;
background: transparent;
@ -1599,7 +1756,7 @@ select:focus {
visibility: hidden;
}
.checkbox input[type=checkbox]:checked + label::after {
border-color: #3498db;
border-color: var(--color-toolkit-checkbox-input-border);
opacity: 1;
}
.checkbox input[disabled] + label {
@ -1628,10 +1785,10 @@ select:focus {
font-size: 10px;
position: relative;
text-indent: -9999em;
border-top: 0.5em solid rgba(0, 0, 0, 0.2);
border-right: 0.5em solid rgba(0, 0, 0, 0.2);
border-bottom: 0.5em solid rgba(0, 0, 0, 0.2);
border-left: 0.5em solid rgba(255, 255, 255, 0);
border-top: 0.5em solid var(--color-toolkit-loader-border);
border-right: 0.5em solid var(--color-toolkit-loader-border);
border-bottom: 0.5em solid var(--color-toolkit-loader-border);
border-left: 0.5em solid var(--color-toolkit-loader-borderleft);
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
@ -1664,13 +1821,16 @@ select:focus {
position: absolute;
padding: 0.5rem 1rem;
margin: 0 0 0 2rem;
border: 1px solid #ddd;
box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.1);
background: white;
border: 1px solid var(--color-toolkit-engine-tooltip-border);
box-shadow: 0 0 5px var(--color-toolkit-engine-tooltip-shadow);
background: var(--color-toolkit-engine-tooltip-background);
font-size: 14px;
font-weight: normal;
z-index: 1000000;
text-align: left;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
th:hover .engine-tooltip,
td:hover .engine-tooltip,
@ -1746,11 +1906,14 @@ td:hover .engine-tooltip,
max-height: 0;
overflow-y: hidden;
text-align: left;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.autocomplete:active,
.autocomplete:focus,
.autocomplete:hover {
background-color: white;
background-color: var(--color-autocomplete-background);
}
.autocomplete:empty {
display: none;
@ -1762,22 +1925,26 @@ td:hover .engine-tooltip,
}
.autocomplete > ul > li {
cursor: pointer;
padding: 5px 0 5px 10px;
padding: 8px 0 8px 8px;
}
.autocomplete > ul > li.active,
.autocomplete > ul > li:active,
.autocomplete > ul > li:focus {
background-color: #3498DB;
.autocomplete > ul > li:focus,
.autocomplete > ul > li:hover {
background-color: var(--color-autocomplete-background-hover);
}
.autocomplete > ul > li.active a:active,
.autocomplete > ul > li:active a:active,
.autocomplete > ul > li:focus a:active,
.autocomplete > ul > li:hover a:active,
.autocomplete > ul > li.active a:focus,
.autocomplete > ul > li:active a:focus,
.autocomplete > ul > li:focus a:focus,
.autocomplete > ul > li:hover a:focus,
.autocomplete > ul > li.active a:hover,
.autocomplete > ul > li:active a:hover,
.autocomplete > ul > li:focus a:hover {
.autocomplete > ul > li:focus a:hover,
.autocomplete > ul > li:hover a:hover {
text-decoration: none;
}
.autocomplete > ul > li.locked {
@ -1785,8 +1952,9 @@ td:hover .engine-tooltip,
}
.autocomplete.open {
display: block;
background-color: white;
border: 1px solid #3498DB;
background-color: var(--color-autocomplete-background);
color: var(--color-autocomplete-font);
border: 1px solid var(--color-autocomplete-border);
max-height: 500px;
overflow-y: auto;
z-index: 100;
@ -1799,8 +1967,7 @@ td:hover .engine-tooltip,
bottom: 0;
}
.autocomplete > ul > li {
padding: 7px 0 7px 10px;
border-bottom: 1px solid #E8E7E6;
border-bottom: 1px solid var(--color-result-top-border);
text-align: left;
}
}
@ -1847,9 +2014,6 @@ td:hover .engine-tooltip,
margin-top: 0;
}
}
.column-reliability .engine-tooltip {
right: 12rem;
}
#tab-contentquery table td,
#tab-contentquery table th {
text-align: left !important;
@ -1880,7 +2044,7 @@ td:hover .engine-tooltip,
padding: 5px 0 0 0;
float: left;
width: 50%;
color: #909090;
color: var(--color-settings-engine-description-font);
font-size: 90%;
}
#main_preferences select {
@ -1907,27 +2071,27 @@ td:hover .engine-tooltip,
}
#main_preferences table.cookies > tbody > tr:nth-child(even) > th,
#main_preferences table.cookies > tbody > tr:nth-child(even) > td {
background-color: #ececec;
background-color: var(--color-settings-tr-hover);
}
#main_preferences .name,
#main_preferences .shortcut {
text-align: left;
}
#main_preferences .preferences_back {
background: none repeat scroll 0 0 #3498DB;
color: white;
background: none repeat scroll 0 0 var(--color-btn-background);
color: var(--color-btn-font);
border: 0 none;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
cursor: pointer;
display: inline-block;
margin: 2px 4px;
padding: 0.5em;
padding: 0.7em;
}
#main_preferences .preferences_back a {
display: block;
color: #FFF;
color: var(--color-settings-return-font);
}
#main_preferences .preferences_back a::first-letter {
text-transform: uppercase;
@ -1957,11 +2121,11 @@ td:hover .engine-tooltip,
#search {
padding: 0 2em 0 10rem;
margin: 0;
background: #f7f7f7;
border-bottom: 1px solid #d7d7d7;
background: var(--color-header-background);
border-bottom: 1px solid var(--color-header-border);
}
#search_wrapper {
padding: 10px 0;
padding: 20px 0 10px 0;
}
.search_box {
margin: 0 12px 0 0;
@ -1980,21 +2144,20 @@ td:hover .engine-tooltip,
box-sizing: border-box;
width: 1.8em;
margin: 0;
padding: 2px;
height: 2.2em;
background: none repeat scroll 0 0 #FFF;
border-top: 1px solid #3498DB;
border-bottom: 1px solid #3498DB;
padding: 8px 2px;
background: none repeat scroll 0 0 var(--color-search-background);
border-top: 1px solid var(--color-search-border);
border-bottom: 1px solid var(--color-search-border);
border-right: none;
border-left: none;
border-radius: 0;
outline: none;
color: #222;
color: var(--color-search-font);
font-size: 16px;
z-index: 10000;
}
#clear_search:hover {
color: #3498DB;
color: var(--color-search-background-hover);
}
#clear_search.empty * {
display: none;
@ -2005,22 +2168,22 @@ td:hover .engine-tooltip,
border-collapse: separate;
box-sizing: border-box;
margin: 0;
padding: 2px;
height: 2.2em;
background: none repeat scroll 0 0 #FFF;
border: 1px solid #3498DB;
padding: 8px;
background: none repeat scroll 0 0 var(--color-search-background);
border: 1px solid var(--color-search-border);
border-radius: 0;
outline: none;
color: #222;
color: var(--color-search-font);
font-size: 16px;
z-index: 2;
}
#q {
outline: medium none;
padding-left: 8px;
padding-left: 12px;
padding-right: 0 !important;
border-right: none;
width: 40rem;
border-radius: 10px 0 0 10px;
}
#q::-ms-clear,
#q::-webkit-search-cancel-button {
@ -2028,12 +2191,12 @@ td:hover .engine-tooltip,
}
#send_search {
border-left: none;
width: 2.2em;
border-radius: 0 10px 10px 0;
}
#send_search:hover {
cursor: pointer;
background-color: #3498DB;
color: #ECF0F1;
background-color: var(--color-search-background-hover);
color: var(--color-search-background);
}
.no-js #send_search {
width: auto !important;
@ -2132,9 +2295,6 @@ td:hover .engine-tooltip,
position: relative;
margin: 0 3px;
padding: 0;
/* label:hover {
border-bottom: 2px solid @color-categories-item-border-unselected-hover;
} */
}
.category input {
display: none;
@ -2155,31 +2315,15 @@ td:hover .engine-tooltip,
user-select: none;
}
.category input[type="checkbox"]:focus + label {
box-shadow: 0 0 8px #3498db;
box-shadow: 0 0 8px var(--color-categories-item-border-selected);
}
.category input[type="checkbox"]:checked + label {
background: #3498DB;
color: #FFF;
border-bottom: 2px solid #084999;
color: var(--color-categories-item-selected-font);
border-bottom: 2px solid var(--color-categories-item-border-selected);
}
#categories_container {
position: relative;
}
#categories_container .help {
position: absolute;
width: 100%;
bottom: -20px;
overflow: hidden;
opacity: 0;
transition: opacity 1s ease;
font-size: 0.8em;
text-align: center;
background: white;
}
#categories_container:hover .help {
opacity: 0.8;
transition: opacity 1s ease;
}
.ion-icon-big {
display: inline-block;
line-height: 1;
@ -2203,7 +2347,8 @@ html {
-ms-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
color: #444;
color: var(--color-base-font);
background-color: var(--color-base-background);
padding: 0;
margin: 0;
}
@ -2235,8 +2380,8 @@ footer {
padding: 1rem 0;
width: 100%;
text-align: center;
background-color: #f7f7f7;
border-top: 1px solid #d7d7d7;
background-color: var(--color-footer-background);
border-top: 1px solid var(--color-footer-border);
overflow: hidden;
}
footer p {
@ -2255,28 +2400,28 @@ footer p {
}
input[type="submit"],
#results button[type="submit"] {
padding: 0.5rem;
padding: 0.7rem;
display: inline-block;
background: #3498DB;
color: #FFF;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
background: var(--color-btn-background);
color: var(--color-btn-font);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
border: 0;
cursor: pointer;
}
a {
text-decoration: none;
color: #29314d;
color: var(--color-url-font);
}
a:visited {
color: #684898;
color: var(--color-url-visited-font);
}
a:visited .highlight {
color: #684898;
color: var(--color-url-visited-font);
}
article[data-vim-selected] {
background: #f7f7f7;
background: var(--color-result-vim-selected);
}
article[data-vim-selected]::before {
position: absolute;
@ -2284,17 +2429,17 @@ article[data-vim-selected]::before {
padding: 2px;
content: ">";
font-weight: bold;
color: #3498DB;
color: var(--color-result-vim-arrow);
}
article.result-images[data-vim-selected] {
background: #3498DB;
background: var(--color-result-vim-arrow);
}
article.result-images[data-vim-selected]::before {
display: none;
content: "";
}
.result {
margin: 19px 0 18px 0;
margin: 2rem 0;
padding: 0;
}
.result h3 {
@ -2305,12 +2450,12 @@ article.result-images[data-vim-selected]::before {
margin-bottom: 0;
}
.result h3 a {
color: #084999;
color: var(--color-result-link-font);
font-weight: normal;
font-size: 1.1em;
}
.result h3 a:visited {
color: #684898;
color: var(--color-result-link-visited-font);
}
.result h3 a:focus,
.result h3 a:hover {
@ -2337,7 +2482,7 @@ article.result-images[data-vim-selected]::before {
.result .content .highlight,
.result .stat .highlight,
.result .altlink .highlight {
color: #000000;
color: var(--color-result-description-highlight-font);
background: inherit;
font-weight: bold;
}
@ -2352,11 +2497,11 @@ article.result-images[data-vim-selected]::before {
padding: 0;
max-width: 54em;
word-wrap: break-word;
color: #25a55b;
color: var(--color-result-url-font);
}
.result .published_date {
font-size: 0.8em;
color: #888;
color: var(--color-result-publishdate-font);
}
.result img.thumbnail {
float: left;
@ -2387,7 +2532,7 @@ article.result-images[data-vim-selected]::before {
}
.engines {
float: right;
color: #888;
color: var(--color-result-engines-font);
}
.engines span {
font-size: smaller;
@ -2397,9 +2542,8 @@ article.result-images[data-vim-selected]::before {
font-size: 0.8em;
}
.highlight {
color: #094089;
color: var(--color-result-link-font-highlight);
background: inherit;
font-weight: bold;
}
.result-images {
display: inline-block;
@ -2414,11 +2558,11 @@ article.result-images[data-vim-selected]::before {
padding: 0;
border: none;
max-height: 200px;
background: #084999;
background: var(--color-result-image-background);
}
.result-images span a {
display: none;
color: #FFF;
color: var(--color-result-image-span-font);
}
.result-images:hover span a {
display: block;
@ -2427,7 +2571,7 @@ article.result-images[data-vim-selected]::before {
right: 0;
padding: 4px;
margin: 0 0 4px 4px;
background-color: rgba(0, 0, 0, 0.6);
background-color: var(--color-result-image-span-background-hover);
font-size: 0.7em;
}
.result-map img.image {
@ -2454,23 +2598,6 @@ article.result-images[data-vim-selected]::before {
.hidden {
display: none !important;
}
.torrent_result {
border-left: 10px solid lightgray;
padding-left: 3px;
}
.torrent_result p {
margin: 3px;
font-size: 0.8em;
}
.torrent_result a {
color: #084999;
}
.torrent_result a:hover {
text-decoration: underline;
}
.torrent_result a:visited {
color: #684898;
}
#results {
margin: 2rem 2rem 0 10rem;
display: grid;
@ -2506,7 +2633,7 @@ article.result-images[data-vim-selected]::before {
font-size: 0.9em;
display: inline-block;
background: transparent;
color: #444;
color: var(--color-result-search-url-font);
cursor: pointer;
}
#suggestions input[type="submit"],
@ -2517,7 +2644,7 @@ article.result-images[data-vim-selected]::before {
#answers .infobox .url a,
#infoboxes .infobox .url a,
#corrections .infobox .url a {
color: #084999;
color: var(--color-result-link-font);
text-decoration: none;
font-size: 0.9rem;
}
@ -2549,13 +2676,17 @@ article.result-images[data-vim-selected]::before {
#search_url .title,
#apis .title {
margin: 2em 0 0.5em 0;
color: #444;
color: var(--color-base-font);
}
#answers {
grid-area: answers;
border: 1px solid #ddd;
border: 1px solid var(--color-answer-border);
padding: 0.9em;
box-shadow: 0 0 5px #ccc;
margin-bottom: 2rem;
color: var(--color-answer-font);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#answers h4 {
display: none;
@ -2572,13 +2703,16 @@ article.result-images[data-vim-selected]::before {
#sidebar {
grid-area: sidebar;
word-wrap: break-word;
color: var(--color-sidebar-font);
}
#sidebar .infobox {
margin: 10px 0 10px;
border: 1px solid #ddd;
border: 1px solid var(--color-sidebar-border);
padding: 0.9em;
font-size: 0.9em;
box-shadow: 0 0 5px #ccc;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#sidebar .infobox h2 {
margin: 0 0 0.5em 0;
@ -2628,13 +2762,13 @@ article.result-images[data-vim-selected]::before {
border: 0;
display: block;
font-size: 1.2em;
color: #222;
color: var(--color-search-font);
}
#linkto_preferences a:link *,
#linkto_preferences a:hover *,
#linkto_preferences a:visited *,
#linkto_preferences a:active * {
color: #222;
color: var(--color-search-font);
}
#pagination {
grid-area: pagination;
@ -2647,22 +2781,25 @@ article.result-images[data-vim-selected]::before {
clear: both;
}
#backToTop {
border: 1px solid #ddd;
border: 1px solid var(--color-backtotop-border);
margin: 0;
padding: 0;
font-size: 1em;
box-shadow: 0 0 5px #ccc;
background: white;
box-shadow: 0 0 5px var(--color-backtotop-shadow);
background: var(--color-backtotop-background);
position: fixed;
bottom: 8rem;
left: 56.3rem;
transition: opacity 0.5s;
opacity: 0;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#backToTop a {
display: block;
margin: 0;
padding: 0.6em;
padding: 0.7em;
}
@media screen and (max-width: 80em) {
#main_preferences,
@ -2684,6 +2821,7 @@ article.result-images[data-vim-selected]::before {
margin: 0.5em 0.5em 0.5em 0;
}
#sidebar {
margin-bottom: 2rem;
padding: 0;
float: none;
border: none;
@ -2698,12 +2836,6 @@ article.result-images[data-vim-selected]::before {
#search_url {
display: none;
}
.result {
border-bottom: 1px solid #E8E7E6;
margin: 0;
padding-top: 8px;
padding-bottom: 6px;
}
.result h3 {
margin: 0 0 1px 0;
}
@ -2789,9 +2921,13 @@ article.result-images[data-vim-selected]::before {
#sidebar {
margin: 0 5px 2px 5px;
}
.infobox {
box-shadow: 0 0 5px var(--color-result-shadow);
}
#corrections,
#answers {
margin: 0 5px 1em 5px;
box-shadow: 0 0 5px var(--color-result-shadow);
}
#results {
margin: 0;
@ -2802,11 +2938,18 @@ article.result-images[data-vim-selected]::before {
}
.result {
padding: 8px 10px 6px 10px;
margin: 0.5rem;
border: 1px solid var(--color-result-border);
box-shadow: 0 0 5px var(--color-result-shadow);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
.result-images {
margin: 0;
padding: 0;
border: none;
box-shadow: none;
}
}
@media screen and (max-width: 35em) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,17 +1,16 @@
/*! Autocomplete.js v2.6.3 | license MIT | (c) 2017, Baptiste Donaux | http://autocomplete-js.com */
@background_color: white;
.autocomplete {
position: absolute;
max-height: 0;
overflow-y: hidden;
text-align: left;
.rounded-corners;
&:active,
&:focus,
&:hover {
background-color: @background_color;
background-color: var(--color-autocomplete-background);
}
&:empty {
@ -25,12 +24,13 @@
> li {
cursor: pointer;
padding: 5px 0 5px 10px;
padding: 8px 0 8px 8px;
&.active,
&:active,
&:focus {
background-color: @color-base;
&:focus,
&:hover {
background-color: var(--color-autocomplete-background-hover);
a:active,
a:focus,
@ -47,8 +47,9 @@
&.open {
display: block;
background-color: @background_color;
border: 1px solid @color-base;
background-color: var(--color-autocomplete-background);
color: var(--color-autocomplete-font);
border: 1px solid var(--color-autocomplete-border);
max-height: 500px;
overflow-y: auto;
z-index: 100;
@ -65,8 +66,7 @@
}
.autocomplete > ul > li {
padding: 7px 0 7px 10px;
border-bottom: 1px solid @color-result-top-border;
border-bottom: 1px solid var(--color-result-top-border);
text-align: left;
}
}

View file

@ -4,139 +4,200 @@
* To change the colors of the site, simple edit this variables
*/
/// Basic Colors
/// Light Theme
html {
/// Base Colors
--color-base-font: #444;
--color-base-background: #fff;
--color-url-font: #29314d;
--color-url-visited-font: #80b;
/// Header Colors
--color-header-background: #f7f7f7;
--color-header-border: #ddd;
/// Footer Colors
--color-footer-background: #f7f7f7;
--color-footer-border: #ddd;
/// Sidebar Colors
--color-sidebar-border: #ddd;
--color-sidebar-font: #000;
/// BackToTop Colors
--color-backtotop-border: #ddd;
--color-backtotop-background: #fff;
--color-backtotop-shadow: #ccc;
/// Button Colors
--color-btn-background: #3050ff;
--color-btn-font: #fff;
/// Search Input Colors
--color-search-border: #bbb;
--color-search-background: #fff;
--color-search-font: #222;
--color-search-background-hover: #3050ff;
/// 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%);
/// Categories Colors
--color-categories-item-selected-font: #3050ff;
--color-categories-item-border-selected: #3050ff;
/// Autocomplete Colors
--color-autocomplete-font: #000;
--color-autocomplete-border: #bbb;
--color-autocomplete-background: #fff;
--color-autocomplete-background-hover: #f7f7f7;
/// Answer Colors
--color-answer-border: #ddd;
--color-answer-font: #000;
/// Results Colors
--color-result-shadow: #ccc;
--color-result-border: #ddd;
--color-result-url-font: #000;
--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;
--color-result-link-visited-font: #80b;
--color-result-publishdate-font: #777;
--color-result-engines-font: #777;
--color-result-search-url-border: #ddd;
--color-result-search-url-font: #000;
// Images Colors
--color-result-image-span-background-hover: rgba(0, 0, 0, 0.6);
--color-result-image-span-font: #fff;
--color-result-image-background: #000bbb;
/// Settings Colors
--color-settings-tr-hover: #f7f7f7;
--color-settings-engine-description-font: darken(#dcdcdc, 30%);
/// Toolkit Colors
--color-toolkit-badge-font: #fff;
--color-toolkit-badge-background: #777;
--color-toolkit-kbd-font: #fff;
--color-toolkit-kbd-background: #000;
--color-toolkit-dialog-border: #ddd;
--color-toolkit-dialog-background: #fff;
--color-toolkit-tabs-label-border: #fff;
--color-toolkit-tabs-section-border: #ddd;
--color-toolkit-select-border: #ddd;
--color-toolkit-checkbox-onoff-background: #ddd;
--color-toolkit-checkbox-onoff-label-shadow: rgba(0, 0, 0, 0.3);
--color-toolkit-checkbox-onoff-label-background: #3050ff;
--color-toolkit-checkbox-onoff-checked-background: #ddd;
--color-toolkit-checkbox-label-background: #fff;
--color-toolkit-checkbox-label-border: #ddd;
--color-toolkit-checkbox-input-border: #3050ff;
--color-toolkit-engine-tooltip-border: #ddd;
--color-toolkit-engine-tooltip-shadow: #ccc;
--color-toolkit-engine-tooltip-background: #fff;
--color-toolkit-loader-border: rgba(0, 0, 0, 0.2);
--color-toolkit-loader-borderleft: rgba(255, 255, 255, 0);
}
@color-base: #3498DB;
@color-base-dark: #084999;
@color-base-light: #ECF0F1;
@color-highlight: #094089;
@color-black: #000000;
/// Dark Theme (autoswitch based on device pref)
@media (prefers-color-scheme: dark) {
html {
/// Base Colors
--color-base-font: #bbb;
--color-base-background: #222;
--color-url-font: #8af;
--color-url-visited-font: #96b;
/// Header Colors
--color-header-background: #181818;
--color-header-border: #333;
/// Footer Colors
--color-footer-background: #181818;
--color-footer-border: #333;
/// Sidebar Colors
--color-sidebar-border: #333;
--color-sidebar-font: #fff;
/// BackToTop Colors
--color-backtotop-border: #333;
--color-backtotop-background: #181818;
--color-backtotop-shadow: #444;
/// Button Colors
--color-btn-background: #58f;
--color-btn-font: #fff;
/// Search Input Colors
--color-search-border: #444;
--color-search-background: #222;
--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: #444;
--color-autocomplete-background: #222;
--color-autocomplete-background-hover: #181818;
/// Answer Colors
--color-answer-border: #ddd;
--color-answer-font: #fff;
/// Results Colors
--color-result-shadow: #444;
--color-result-border: #333;
--color-result-url-font: #fff;
--color-result-vim-selected: #181818;
--color-result-vim-arrow: #8af;
--color-result-description-highlight-font: #fff;
--color-result-link-font: #8af;
--color-result-link-font-highlight: #8af;
--color-result-link-visited-font: #96b;
--color-result-publishdate-font: #777;
--color-result-engines-font: #777;
--color-result-search-url-border: #333;
--color-result-search-url-font: #fff;
// Images Colors
--color-result-image-span-background-hover: rgba(0, 0, 0, 0.6);
--color-result-image-span-font: #fff;
--color-result-image-background: #8af;
/// Settings Colors
--color-settings-tr-hover: #333;
--color-settings-engine-description-font: darken(#dcdcdc, 30%);
/// Toolkit Colors
--color-toolkit-badge-font: #fff;
--color-toolkit-badge-background: #777;
--color-toolkit-kbd-font: #000;
--color-toolkit-kbd-background: #fff;
--color-toolkit-dialog-border: #333;
--color-toolkit-dialog-background: #222;
--color-toolkit-tabs-label-border: #222;
--color-toolkit-tabs-section-border: #333;
--color-toolkit-select-border: #333;
--color-toolkit-checkbox-onoff-background: #ddd;
--color-toolkit-checkbox-onoff-label-shadow: rgba(0, 0, 0, 0.3);
--color-toolkit-checkbox-onoff-label-background: #58f;
--color-toolkit-checkbox-onoff-checked-background: #ddd;
--color-toolkit-checkbox-label-background: #fff;
--color-toolkit-checkbox-label-border: #333;
--color-toolkit-checkbox-input-border: #58f;
--color-toolkit-engine-tooltip-border: #333;
--color-toolkit-engine-tooltip-shadow: #444;
--color-toolkit-engine-tooltip-background: #222;
--color-toolkit-loader-border: rgba(0, 0, 0, 0.2);
--color-toolkit-loader-borderleft: rgba(255, 255, 255, 0);
}
}
///
@color-error: #db3434;
@color-error-background: lighten(@color-error, 40%);
@color-warning: #dbba34;
@color-warning-background: lighten(@color-warning, 40%);
@color-success: #42db34;
@color-success-background: lighten(@color-success, 40%);
/// General
@color-font: #444;
@color-font-light: #888;
@color-red: #25a55b;
@color-url-font: #29314d;
@color-url-visited-font: #684898;
/// General Size
@results-width: 45rem;
@results-offset: 10rem;
@results-tablet-offset: 0.5rem;
@results-gap: 5rem;
@results-margin: 2rem;
@search-width: 40rem;
//
@color-a-font: @color-base;
@color-a-font-hover: @color-base;
/// Start-Screen
/// Header
@color-header-background: #f7f7f7;
@color-header-border: #d7d7d7;
/// Footer
@color-footer-background: #f7f7f7;
@color-footer-border: #d7d7d7;
/// Search-Input
@color-search-border: @color-base;
@color-search-background: #FFF;
@color-search-font: #222;
/// Autocompleter
@color-autocompleter-choices-background: #FFF;
@color-autocompleter-choices-border: @color-base;
@color-autocompleter-choices-border-left-right: @color-base;
@color-autocompleter-choices-border-bottom: @color-base;
@color-autocompleter-choices-font: #444;
/// Answers
@color-answers-border: @color-base-dark;
// Selected
@color-autocompleter-selected-background: #444;
@color-autocompleter-selected-font: #FFF;
@color-autocompleter-selected-queried-font: #9FCFFF;
/// Categories
@color-categories-item-selected: @color-base;
@color-categories-item-selected-font: #FFF;
@color-categories-item-border-selected: @color-base-dark;
@color-categories-item-border-unselected: #E8E7E6;
@color-categories-item-border-unselected-hover: @color-base;
/// Results
@color-suggestions-button-background: @color-base;
@color-suggestions-button-font: #FFF;
@color-download-button-background: @color-base;
@color-download-button-font: #FFF;
@color-result-search-background: @color-base-light;
@color-result-definition-border: gray;
@color-result-torrent-border: lightgray;
@color-result-top-border: #E8E7E6;
// Link to result
@color-result-link-font: @color-base-dark;
@color-result-link-visited-font: @color-url-visited-font;
// Url to result
@color-result-url-font: @color-red;
// Publish Date
@color-result-publishdate-font: @color-font-light;
// Images
@color-result-image-span-background-hover: rgba(0, 0, 0, 0.6);
@color-result-image-span-font: #FFF;
// Search-URL
@color-result-search-url-border: #888;
@color-result-search-url-font: #444;
/// Settings
@color-settings-fieldset: @color-base;
@color-settings-table-striped: #dbdbdb;
@color-settings-tr-hover: #ececec;
// Labels
@color-settings-label-allowed-background: #E74C3C;
@color-settings-label-allowed-font: #FFF;
@color-settings-label-deny-background: #2ECC71;
@color-settings-label-deny-font: @color-font;
@color-settings-return-background: @color-base;
@color-settings-return-font: #FFF;
/// Other
@color-engines-font: @color-font-light;
@color-percentage-div-background: #444;
/// From style.less
@stacked-bar-chart: rgb(0, 0, 0);
/// Load fonts from this directory.
@icon-font-path: "../../../fonts/";

View file

@ -10,7 +10,7 @@
text-size-adjust: @property;
}
.rounded-corners (@radius: 4px) {
.rounded-corners (@radius: 10px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;

View file

@ -1,9 +1,3 @@
.column-reliability {
.engine-tooltip {
right: 12rem;
}
}
#tab-contentquery table td,
#tab-contentquery table th {
text-align: left !important;
@ -40,7 +34,7 @@
padding: 5px 0 0 0;
float: left;
width: 50%;
color: darken(#dcdcdc, 30%);
color: var(--color-settings-engine-description-font);
font-size: 90%;
}
@ -73,7 +67,7 @@
& > tbody > tr:nth-child(even) > th,
& > tbody > tr:nth-child(even) > td {
background-color: @color-settings-tr-hover;
background-color: var(--color-settings-tr-hover);
}
}
@ -83,19 +77,19 @@
}
.preferences_back {
background: none repeat scroll 0 0 @color-settings-return-background;
color: white;
background: none repeat scroll 0 0 var(--color-btn-background);
color: var(--color-btn-font);
border: 0 none;
.rounded-corners;
cursor: pointer;
display: inline-block;
margin: 2px 4px;
padding: 0.5em;
padding: 0.7em;
a {
display: block;
color: @color-settings-return-font;
color: var(--color-settings-return-font);
}
a::first-letter {

View file

@ -5,12 +5,12 @@
#search {
padding: 0 2em 0 @results-offset;
margin: 0;
background: @color-header-background;
border-bottom: 1px solid @color-header-border;
background: var(--color-header-background);
border-bottom: 1px solid var(--color-header-border);
}
#search_wrapper {
padding: 10px 0;
padding: 20px 0 10px 0;
}
.search_box {
@ -32,21 +32,20 @@
box-sizing: border-box;
width: 1.8em;
margin: 0;
padding: 2px;
height: 2.2em;
background: none repeat scroll 0 0 @color-search-background;
border-top: 1px solid @color-search-border;
border-bottom: 1px solid @color-search-border;
padding: 8px 2px;
background: none repeat scroll 0 0 var(--color-search-background);
border-top: 1px solid var(--color-search-border);
border-bottom: 1px solid var(--color-search-border);
border-right: none;
border-left: none;
border-radius: 0;
outline: none;
color: @color-search-font;
color: var(--color-search-font);
font-size: 16px;
z-index: 10000;
&:hover {
color: @color-search-border;
color: var(--color-search-background-hover);
}
&.empty * {
@ -60,23 +59,23 @@
border-collapse: separate;
box-sizing: border-box;
margin: 0;
padding: 2px;
height: 2.2em;
background: none repeat scroll 0 0 @color-search-background;
border: 1px solid @color-search-border;
padding: 8px;
background: none repeat scroll 0 0 var(--color-search-background);
border: 1px solid var(--color-search-border);
border-radius: 0;
outline: none;
color: @color-search-font;
color: var(--color-search-font);
font-size: 16px;
z-index: 2;
}
#q {
outline: medium none;
padding-left: 8px;
padding-left: 12px;
padding-right: 0 !important;
border-right: none;
width: @search-width;
border-radius: 10px 0 0 10px;
}
#q::-ms-clear,
@ -86,12 +85,12 @@
#send_search {
border-left: none;
width: 2.2em;
border-radius: 0 10px 10px 0;
&:hover {
cursor: pointer;
background-color: @color-search-border;
color: @color-base-light;
background-color: var(--color-search-background-hover);
color: var(--color-search-background);
}
}
@ -225,37 +224,15 @@
}
input[type="checkbox"]:focus + label {
box-shadow: 0 0 8px #3498db;
box-shadow: 0 0 8px var(--color-categories-item-border-selected);
}
/* label:hover {
border-bottom: 2px solid @color-categories-item-border-unselected-hover;
} */
input[type="checkbox"]:checked + label {
background: @color-categories-item-selected;
color: @color-categories-item-selected-font;
border-bottom: 2px solid @color-categories-item-border-selected;
color: var(--color-categories-item-selected-font);
border-bottom: 2px solid var(--color-categories-item-border-selected);
}
}
#categories_container {
position: relative;
.help {
position: absolute;
width: 100%;
bottom: -20px;
overflow: hidden;
opacity: 0;
transition: opacity 1s ease;
font-size: 0.8em;
text-align: center;
background: white;
}
&:hover .help {
opacity: 0.8;
transition: opacity 1s ease;
}
}

View file

@ -6,8 +6,6 @@
// stylelint-disable no-descending-specificity
@stacked-bar-chart: rgb(0, 0, 0);
@import "../../__common__/less/new_issue.less";
@import "../../__common__/less/stats.less";
@import "../../__common__/less/result_templates.less";
@ -41,7 +39,8 @@ html {
font-size: 0.9em;
.text-size-adjust;
color: @color-font;
color: var(--color-base-font);
background-color: var(--color-base-background);
padding: 0;
margin: 0;
}
@ -78,8 +77,8 @@ footer {
padding: 1rem 0;
width: 100%;
text-align: center;
background-color: @color-footer-background;
border-top: 1px solid @color-footer-border;
background-color: var(--color-footer-background);
border-top: 1px solid var(--color-footer-border);
overflow: hidden;
p {
@ -101,10 +100,10 @@ footer {
input[type="submit"],
#results button[type="submit"] {
padding: 0.5rem;
padding: 0.7rem;
display: inline-block;
background: @color-download-button-background;
color: @color-download-button-font;
background: var(--color-btn-background);
color: var(--color-btn-font);
.rounded-corners;
border: 0;
@ -113,19 +112,19 @@ input[type="submit"],
a {
text-decoration: none;
color: @color-url-font;
color: var(--color-url-font);
&:visited {
color: @color-url-visited-font;
color: var(--color-url-visited-font);
.highlight {
color: @color-url-visited-font;
color: var(--color-url-visited-font);
}
}
}
article[data-vim-selected] {
background: #f7f7f7;
background: var(--color-result-vim-selected);
}
article[data-vim-selected]::before {
@ -134,11 +133,11 @@ article[data-vim-selected]::before {
padding: 2px;
content: ">";
font-weight: bold;
color: @color-base;
color: var(--color-result-vim-arrow);
}
article.result-images[data-vim-selected] {
background: @color-base;
background: var(--color-result-vim-arrow);
}
article.result-images[data-vim-selected]::before {
@ -147,7 +146,7 @@ article.result-images[data-vim-selected]::before {
}
.result {
margin: 19px 0 18px 0;
margin: @results-margin 0;
padding: 0;
h3 {
@ -158,12 +157,12 @@ article.result-images[data-vim-selected]::before {
margin-bottom: 0;
a {
color: @color-result-link-font;
color: var(--color-result-link-font);
font-weight: normal;
font-size: 1.1em;
&:visited {
color: @color-result-link-visited-font;
color: var(--color-result-link-visited-font);
}
&:focus,
@ -193,7 +192,7 @@ article.result-images[data-vim-selected]::before {
line-height: 1.24;
.highlight {
color: @color-black;
color: var(--color-result-description-highlight-font);
background: inherit;
font-weight: bold;
}
@ -213,12 +212,12 @@ article.result-images[data-vim-selected]::before {
padding: 0;
max-width: 54em;
word-wrap: break-word;
color: @color-result-url-font;
color: var(--color-result-url-font);
}
.published_date {
font-size: 0.8em;
color: @color-result-publishdate-font;
color: var(--color-result-publishdate-font);
}
img {
@ -228,7 +227,6 @@ article.result-images[data-vim-selected]::before {
width: 20em;
min-width: 20em;
min-height: 8em;
// background: @color-base-light;
}
&.image {
@ -259,7 +257,7 @@ article.result-images[data-vim-selected]::before {
.engines {
float: right;
color: @color-engines-font;
color: var(--color-result-engines-font);
span {
font-size: smaller;
@ -272,9 +270,8 @@ article.result-images[data-vim-selected]::before {
}
.highlight {
color: @color-highlight;
color: var(--color-result-link-font-highlight);
background: inherit;
font-weight: bold;
}
.result-images {
@ -290,12 +287,12 @@ article.result-images[data-vim-selected]::before {
padding: 0;
border: none;
max-height: 200px;
background: @color-base-dark;
background: var(--color-result-image-background);
}
span a {
display: none;
color: @color-result-image-span-font;
color: var(--color-result-image-span-font);
}
&:hover span a {
@ -305,7 +302,7 @@ article.result-images[data-vim-selected]::before {
right: 0;
padding: 4px;
margin: 0 0 4px 4px;
background-color: @color-result-image-span-background-hover;
background-color: var(--color-result-image-span-background-hover);
font-size: 0.7em;
}
}
@ -341,28 +338,6 @@ article.result-images[data-vim-selected]::before {
display: none !important;
}
.torrent_result {
border-left: 10px solid @color-result-torrent-border;
padding-left: 3px;
p {
margin: 3px;
font-size: 0.8em;
}
a {
color: @color-result-link-font;
&:hover {
text-decoration: underline;
}
&:visited {
color: @color-result-link-visited-font;
}
}
}
#results {
margin: 2rem 2rem 0 @results-offset;
display: grid;
@ -410,13 +385,13 @@ article.result-images[data-vim-selected]::before {
font-size: 0.9em;
display: inline-block;
background: transparent;
color: @color-result-search-url-font;
color: var(--color-result-search-url-font);
cursor: pointer;
}
input[type="submit"],
.infobox .url a {
color: @color-result-link-font;
color: var(--color-result-link-font);
text-decoration: none;
font-size: 0.9rem;
@ -447,14 +422,16 @@ article.result-images[data-vim-selected]::before {
#search_url .title,
#apis .title {
margin: 2em 0 0.5em 0;
color: @color-font;
color: var(--color-base-font);
}
#answers {
grid-area: answers;
border: 1px solid #ddd;
border: 1px solid var(--color-answer-border);
padding: 0.9em;
box-shadow: 0 0 5px #ccc;
margin-bottom: @results-margin;
color: var(--color-answer-font);
.rounded-corners;
h4 {
display: none;
@ -477,13 +454,14 @@ article.result-images[data-vim-selected]::before {
#sidebar {
grid-area: sidebar;
word-wrap: break-word;
color: var(--color-sidebar-font);
.infobox {
margin: 10px 0 10px;
border: 1px solid #ddd;
border: 1px solid var(--color-sidebar-border);
padding: 0.9em;
font-size: 0.9em;
box-shadow: 0 0 5px #ccc;
.rounded-corners;
h2 {
margin: 0 0 0.5em 0;
@ -547,13 +525,13 @@ article.result-images[data-vim-selected]::before {
border: 0;
display: block;
font-size: 1.2em;
color: @color-search-font;
color: var(--color-search-font);
a:link *,
a:hover *,
a:visited *,
a:active * {
color: @color-search-font;
color: var(--color-search-font);
}
}
@ -571,22 +549,23 @@ article.result-images[data-vim-selected]::before {
}
#backToTop {
border: 1px solid #ddd;
border: 1px solid var(--color-backtotop-border);
margin: 0;
padding: 0;
font-size: 1em;
box-shadow: 0 0 5px #ccc;
background: white;
box-shadow: 0 0 5px var(--color-backtotop-shadow);
background: var(--color-backtotop-background);
position: fixed;
bottom: 8rem;
left: @results-width + @results-offset + (0.5 * @results-gap - 1.2em);
transition: opacity 0.5s;
opacity: 0;
.rounded-corners;
a {
display: block;
margin: 0;
padding: 0.6em;
padding: 0.7em;
}
}
@ -614,6 +593,7 @@ article.result-images[data-vim-selected]::before {
}
#sidebar {
margin-bottom: @results-margin;
padding: 0;
float: none;
border: none;
@ -633,11 +613,6 @@ article.result-images[data-vim-selected]::before {
}
.result {
border-bottom: 1px solid @color-result-top-border;
margin: 0;
padding-top: 8px;
padding-bottom: 6px;
h3 {
margin: 0 0 1px 0;
}
@ -756,9 +731,14 @@ article.result-images[data-vim-selected]::before {
margin: 0 5px 2px 5px;
}
.infobox {
box-shadow: 0 0 5px var(--color-result-shadow);
}
#corrections,
#answers {
margin: 0 5px 1em 5px;
box-shadow: 0 0 5px var(--color-result-shadow);
}
#results {
@ -772,12 +752,17 @@ article.result-images[data-vim-selected]::before {
.result {
padding: 8px 10px 6px 10px;
margin: @results-tablet-offset;
border: 1px solid var(--color-result-border);
box-shadow: 0 0 5px var(--color-result-shadow);
.rounded-corners;
}
.result-images {
margin: 0;
padding: 0;
border: none;
box-shadow: none;
}
}

View file

@ -36,21 +36,21 @@ html.js .show_if_nojs {
}
.danger {
background-color: @color-error-background;
background-color: var(--color-error-background);
}
.warning {
background: @color-warning-background;
background: var(--color-warning-background);
}
.success {
background: @color-success-background;
background: var(--color-success-background);
}
.badge {
display: inline-block;
color: #fff;
background-color: #777;
color: var(--color-toolkit-badge-font);
background-color: var(--color-toolkit-badge-background);
text-align: center;
white-space: nowrap;
vertical-align: baseline;
@ -64,8 +64,8 @@ kbd {
padding: 2px 4px;
margin: 1px;
font-size: 90%;
color: white;
background: black;
color: var(--color-toolkit-kbd-font);
background: var(--color-toolkit-kbd-background);
}
// table
@ -74,7 +74,7 @@ table {
&.striped {
tr {
border-bottom: 1px solid @color-settings-tr-hover;
border-bottom: 1px solid var(--color-settings-tr-hover);
}
}
}
@ -89,7 +89,7 @@ td {
tr {
&:hover {
background: @color-settings-tr-hover;
background: var(--color-settings-tr-hover);
}
}
@ -104,9 +104,9 @@ tr {
div.selectable_url {
display: block;
border: 1px solid @color-result-search-url-border;
border: 1px solid var(--color-result-search-url-border);
padding: 4px;
color: @color-result-search-url-font;
color: var(--color-result-search-url-font);
margin: 0.1em;
overflow: hidden;
height: 1.2em;
@ -122,9 +122,9 @@ div.selectable_url {
position: relative;
padding: 1em 1em 1em 2.7em;
margin: 0 0 1em 0;
border: 1px solid black;
border-radius: 4px;
border: 1px solid var(--color-toolkit-dialog-border);
text-align: left;
.rounded-corners;
&::before {
position: absolute;
@ -173,25 +173,25 @@ div.selectable_url {
.dialog-error {
.dialog();
color: @color-error;
background: @color-error-background;
border-color: @color-error;
color: var(--color-error);
background: var(--color-error-background);
border-color: var(--color-error);
.ion-error();
}
.dialog-warning {
.dialog();
color: @color-warning;
background: @color-warning-background;
border-color: @color-warning;
color: var(--color-warning);
background: var(--color-warning-background);
border-color: var(--color-warning);
.ion-warning();
}
.dialog-modal {
.dialog();
background: white;
background: var(--color-toolkit-dialog-background);
position: fixed;
top: 50%;
left: 50%;
@ -244,7 +244,7 @@ div.selectable_url {
margin: 0 0.7em;
letter-spacing: 0.5px;
text-transform: uppercase;
border: solid white;
border: solid var(--color-toolkit-tabs-label-border);
border-width: 0 0 2px 0;
.disable-user-select();
@ -253,22 +253,22 @@ div.selectable_url {
}
& > label:hover {
border-bottom: 2px solid @color-categories-item-border-selected;
border-bottom: 2px solid var(--color-categories-item-border-selected);
}
& > section {
min-width: 100%;
padding: 0.7rem 0;
box-sizing: border-box;
border-top: 1px solid black;
border-top: 1px solid var(--color-toolkit-tabs-section-border);
display: none;
}
// default selection
& > label:last-of-type {
border-bottom: 2px solid @color-categories-item-border-selected;
background: @color-categories-item-selected;
color: @color-categories-item-selected-font;
border-bottom: 2px solid var(--color-categories-item-border-selected);
background: var(--color-categories-item-selected);
color: var(--color-categories-item-selected-font);
font-weight: bold;
letter-spacing: -0.1px;
}
@ -291,14 +291,14 @@ html body .tabs > input:checked {
color: inherit;
&:hover {
border-bottom: 2px solid @color-categories-item-border-selected;
border-bottom: 2px solid var(--color-categories-item-border-selected);
}
}
+ label {
border-bottom: 2px solid @color-categories-item-border-selected;
background: @color-categories-item-selected;
color: @color-categories-item-selected-font;
border-bottom: 2px solid var(--color-categories-item-border-selected);
background: var(--color-categories-item-selected);
color: var(--color-categories-item-selected-font);
}
+ label + section {
@ -311,7 +311,7 @@ select {
height: 28px;
margin: 0 1em 0 0;
padding: 2px 8px 2px 0 !important;
color: @color-search-font;
color: var(--color-search-font);
font-size: 12px;
z-index: 2;
@ -327,7 +327,7 @@ select {
-webkit-appearance: none;
-moz-appearance: none;
border: none;
border-bottom: 1px solid #d7d7d7;
border-bottom: 1px solid var(--color-toolkit-select-border);
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI1MTJweCIgaGVpZ2h0PSI1MTJweCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDUxMiA1MTIiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTI4LDE5MiAyNTYsMzIwIDM4NCwxOTIiLz48L2c+PC9zdmc+Cg==) no-repeat;
background-position-x: 105%;
background-size: 2em;
@ -336,7 +336,7 @@ select {
&:hover,
&:focus {
border-bottom: 1px solid @color-search-border;
border-bottom: 1px solid var(--color-search-border);
}
}
}
@ -347,7 +347,7 @@ select {
display: inline-block;
width: 40px;
height: 10px;
background: #dcdcdc;
background: var(--color-toolkit-checkbox-onoff-background);
margin: 8px 1rem;
position: relative;
border-radius: 50px;
@ -360,10 +360,10 @@ select {
top: -5px;
cursor: pointer;
border-radius: 50px;
box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.3);
box-shadow: 0 3px 5px 0 var(--color-toolkit-checkbox-onoff-label-shadow);
transition: all 0.4s ease;
left: 27px;
background-color: #3498db;
background-color: var(--color-toolkit-checkbox-onoff-label-background);
}
input[type=checkbox] {
@ -371,7 +371,7 @@ select {
&:checked + label {
left: -5px;
background: #dcdcdc;
background: var(--color-toolkit-checkbox-onoff-checked-background);
}
}
}
@ -391,9 +391,8 @@ select {
position: absolute;
top: 0;
left: 0;
background: white;
border-radius: 4px;
box-shadow: inset 0 1px 1px white, 0 1px 4px rgba(0, 0, 0, 0.5);
background: var(--color-toolkit-checkbox-label-background);
.rounded-corners;
&::after {
content: '';
@ -402,7 +401,7 @@ select {
position: absolute;
top: 4px;
left: 4px;
border: 3px solid #333;
border: 3px solid var(--color-toolkit-checkbox-label-border);
border-top: none;
border-right: none;
background: transparent;
@ -415,7 +414,7 @@ select {
visibility: hidden;
&:checked + label::after {
border-color: #3498db;
border-color: var(--color-toolkit-checkbox-input-border);
opacity: 1;
}
}
@ -453,10 +452,10 @@ select {
font-size: 10px;
position: relative;
text-indent: -9999em;
border-top: 0.5em solid rgba(0, 0, 0, 0.2);
border-right: 0.5em solid rgba(0, 0, 0, 0.2);
border-bottom: 0.5em solid rgba(0, 0, 0, 0.2);
border-left: 0.5em solid rgba(255, 255, 255, 0);
border-top: 0.5em solid var(--color-toolkit-loader-border);
border-right: 0.5em solid var(--color-toolkit-loader-border);
border-bottom: 0.5em solid var(--color-toolkit-loader-border);
border-left: 0.5em solid var(--color-toolkit-loader-borderleft);
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
@ -494,13 +493,14 @@ select {
position: absolute;
padding: 0.5rem 1rem;
margin: 0 0 0 2rem;
border: 1px solid #ddd;
box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.1);
background: white;
border: 1px solid var(--color-toolkit-engine-tooltip-border);
box-shadow: 0 0 5px var(--color-toolkit-engine-tooltip-shadow);
background: var(--color-toolkit-engine-tooltip-background);
font-size: 14px;
font-weight: normal;
z-index: 1000000;
text-align: left;
.rounded-corners;
}
th:hover .engine-tooltip,

View file

@ -27,6 +27,9 @@
<!-- Draw result header -->
{% macro result_header(result, favicons, image_proxify) -%}
<article class="result {% if result['template'] %}result-{{ result.template|replace('.html', '') }}{% else %}result-default{% endif %} {% if result['category'] %}category-{{ result['category'] }}{% endif %}{% for e in result.engines %} {{ e }}{% endfor %}">
<p class="url">
<span class="url">{{ result.pretty_url }}</span>
</p>{{- '' -}}
{%- if result.img_src %}{{ result_open_link(result.url) }}<img class="image" src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" class="image" />{{ result_close_link() }}{% endif -%}
{%- if result.thumbnail %}{{ result_open_link(result.url) }}<img class="thumbnail" src="{{ image_proxify(result.thumbnail) }}" title="{{ result.title|striptags }}" alt="{{ result.title|striptags }}"/>{{ result_close_link() }}{% endif -%}
<h3>{{ result_link(result.url, result.title|safe) }}</h3>
@ -40,8 +43,10 @@
<!-- Draw result sub footer -->
{%- macro result_sub_footer(result, proxify) -%}
<div class="engines">{% for engine in result.engines %}<span>{{ engine }}</span>{% endfor %}</div>{{- '' -}}
<p class="url"><span class="url">{{ result.pretty_url }}</span>{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "cache_link") }}&lrm; {% if proxify and proxify_results %} {{ result_link(proxify(result.url), icon('link') + _('proxied'), "proxyfied_link") }} {% endif %}</p>{{- '' -}}
<div class="engines">
{% for engine in result.engines %}<span>{{ engine }}</span>{% endfor %}
{{ result_link("https://web.archive.org/web/" + result.url, icon('link') + _('cached'), "cache_link") }}&lrm; {% if proxify and proxify_results %} {{ result_link(proxify(result.url), icon('link') + _('proxied'), "proxyfied_link") }} {% endif %}
</div>{{- '' -}}
<div class="break"></div>{{- '' -}}
{%- endmacro -%}