diff options
| author | Paul Braeuning <paul@paulgo.io> | 2022-05-03 18:47:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-03 18:47:35 +0200 |
| commit | 31521f3a465fa2beb7e3fd7ed47621262a28f554 (patch) | |
| tree | a9a896b08d98b0ddcaf65b2159c34326c77bf80b /searx/static/themes/oscar/src/less/pointhi | |
| parent | 8a79eb4d7b0265afc200ecf6c1d729274a065b18 (diff) | |
| parent | c3bb6c7059388308aa9843943ce2491856ef1596 (diff) | |
Merge pull request #1153 from return42/drop-oscar
[theme] peel out oscar from SearXNG development
Diffstat (limited to 'searx/static/themes/oscar/src/less/pointhi')
13 files changed, 0 insertions, 483 deletions
diff --git a/searx/static/themes/oscar/src/less/pointhi/advanced.less b/searx/static/themes/oscar/src/less/pointhi/advanced.less deleted file mode 100644 index 23bfdb0d2..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/advanced.less +++ /dev/null @@ -1,49 +0,0 @@ -#advanced-search-container { - display: none; - text-align: center; - margin-bottom: 1rem; - clear: both; - - label, .input-group-addon { - font-size: 1.3rem; - font-weight:normal; - background-color: white; - border: #DDD 1px solid; - border-right: none; - color: #333; - padding-bottom: 0.8rem; - padding-left: 1.2rem; - padding-right: 1.2rem; - } - - label:last-child, .input-group-addon:last-child { - border-right: #DDD 1px solid; - } - - input[type="radio"] { - display: none; - } - - input[type="radio"]:checked + label { - color: black; - font-weight: bold; - background-color: #EEE; - } -} - -#check-advanced { - display: none; -} - -#check-advanced:checked ~ #advanced-search-container { - display: block; -} - -.advanced { - padding: 0; - margin-top: 0.3rem; - text-align: right; - label, select { - cursor: pointer; - } -} diff --git a/searx/static/themes/oscar/src/less/pointhi/checkbox.less b/searx/static/themes/oscar/src/less/pointhi/checkbox.less deleted file mode 100644 index 6428b36ed..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/checkbox.less +++ /dev/null @@ -1,9 +0,0 @@ -// Hide element if checkbox is checked -input[type=checkbox]:checked + .label_hide_if_checked, input[type=checkbox]:checked + .label_hide_if_not_checked + .label_hide_if_checked { - display:none; -} - -// Hide element if checkbox is not checked -input[type=checkbox]:not(:checked) + .label_hide_if_not_checked, input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not_checked { - display:none; -} diff --git a/searx/static/themes/oscar/src/less/pointhi/code.less b/searx/static/themes/oscar/src/less/pointhi/code.less deleted file mode 100644 index e69de29bb..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/code.less +++ /dev/null diff --git a/searx/static/themes/oscar/src/less/pointhi/cursor.less b/searx/static/themes/oscar/src/less/pointhi/cursor.less deleted file mode 100644 index cbc1ea6fc..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/cursor.less +++ /dev/null @@ -1,8 +0,0 @@ -// display cursor -.cursor-text { - cursor: text !important; -} - -.cursor-pointer { - cursor: pointer !important; -} diff --git a/searx/static/themes/oscar/src/less/pointhi/footer.less b/searx/static/themes/oscar/src/less/pointhi/footer.less deleted file mode 100644 index 0b25e735f..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/footer.less +++ /dev/null @@ -1,19 +0,0 @@ -// Sticky footer styles - -html { - position: relative; - min-height: 100%; -} - -body { - /* Margin bottom by footer height */ - margin-bottom: 80px; -} - -.footer { - position: absolute; - bottom: 0; - width: 100%; - /* Set the fixed height of the footer here */ - height: 60px; -} diff --git a/searx/static/themes/oscar/src/less/pointhi/infobox.less b/searx/static/themes/oscar/src/less/pointhi/infobox.less deleted file mode 100644 index e6a55e944..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/infobox.less +++ /dev/null @@ -1,62 +0,0 @@ -.infobox { - - img { - max-height: 250px; - } - - .infobox_part { - margin-bottom: 20px; - word-wrap: break-word; - table-layout: fixed; - } - - .infobox_part:last-child { - margin-bottom: 0; - } - - .header_url { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - display: block; - } - - .infobox_toggle { - width: 100%; - text-align: center; - margin-bottom: 0px; - } - - // Shrink infobox size when toggle is off - .infobox_checkbox ~ .infobox_body { - max-height: 300px; - overflow: hidden; - } - .infobox_checkbox:checked ~ .infobox_body { - max-height: none; - } - - // Show toggle button as down when infobox is shrunk - .infobox_checkbox ~ .infobox_toggle .infobox_label_down { - display: block; - } - .infobox_checkbox ~ .infobox_toggle .infobox_label_up { - display: none; - } - - // Show toggle button as up when infobox is expanded - .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_up { - display: block; - } - .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_down { - display: none; - } - - // Hide main image when toggle is off - .infobox_checkbox ~ .infobox_body img.infobox_part { - display: none; - } - .infobox_checkbox:checked ~ .infobox_body img.infobox_part { - display: block; - } -} diff --git a/searx/static/themes/oscar/src/less/pointhi/navbar.less b/searx/static/themes/oscar/src/less/pointhi/navbar.less deleted file mode 100644 index 59be047a3..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/navbar.less +++ /dev/null @@ -1,20 +0,0 @@ -.searxng-navbar { - background: #eee; - color: #aaa; - height: 2.3rem; - font-size: 1.3rem; - line-height: 1.3rem; - padding: 0.5rem; - font-weight: bold; - margin-bottom: 1.3rem; - - a, a:hover { - margin-right: 2.0rem; - text-decoration: none; - } - - .instance a { - color: #444; - margin-left: 2.0rem; - } -} diff --git a/searx/static/themes/oscar/src/less/pointhi/onoff.less b/searx/static/themes/oscar/src/less/pointhi/onoff.less deleted file mode 100644 index 72b289a23..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/onoff.less +++ /dev/null @@ -1,57 +0,0 @@ -.onoff-checkbox { - width:15%; -} -.onoffswitch { - position: relative; - width: 110px; - -webkit-user-select:none; - -moz-user-select:none; - -ms-user-select: none; -} -.onoffswitch-checkbox { - display: none; -} -.onoffswitch-label { - display: block; - overflow: hidden; - cursor: pointer; - border: 2px solid #FFFFFF !important; - border-radius: 50px !important; -} -.onoffswitch-inner { - display: block; - transition: margin 0.3s ease-in 0s; -} - -.onoffswitch-inner:before, .onoffswitch-inner:after { - display: block; - float: left; - width: 50%; - height: 30px; - padding: 0; - line-height: 40px; - font-size: 20px; - box-sizing: border-box; - content: ""; - background-color: #EEEEEE; -} - -.onoffswitch-switch { - display: block; - width: 37px; - background-color: #00CC00; - position: absolute; - top: 0; - bottom: 0; - right: 0px; - border: 2px solid #FFFFFF !important; - border-radius: 50px !important; - transition: all 0.3s ease-in 0s; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { - margin-right: 0; -} -.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { - right: 71px; - background-color: #A1A1A1; -} diff --git a/searx/static/themes/oscar/src/less/pointhi/oscar.less b/searx/static/themes/oscar/src/less/pointhi/oscar.less deleted file mode 100644 index d54fa28d9..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/oscar.less +++ /dev/null @@ -1,23 +0,0 @@ -@import "variables.less"; -@import "../../../../__common__/less/new_issue.less"; -@import "../../../../__common__/less/stats.less"; -@import "../../../../__common__/less/result_templates.less"; -@import "../../less/result_templates.less"; -@import "../../less/preferences.less"; -@import "../infinite_scroll.less"; -@import "../../generated/pygments-pointhi.less"; - -@import "footer.less"; -@import "checkbox.less"; -@import "onoff.less"; -@import "results.less"; -@import "infobox.less"; -@import "search.less"; -@import "advanced.less"; -@import "cursor.less"; -@import "code.less"; -@import "navbar.less"; -@import "code.less"; -@import "preferences.less"; - -@import (inline) "../safari.css"; diff --git a/searx/static/themes/oscar/src/less/pointhi/preferences.less b/searx/static/themes/oscar/src/less/pointhi/preferences.less deleted file mode 100644 index 25ba100d6..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/preferences.less +++ /dev/null @@ -1,79 +0,0 @@ -.table > tbody > tr > td, .table > tbody > tr > th { - vertical-align: middle !important; -} - -.engine-tooltip { - display: none; - position: absolute; - padding: 0.5rem 1rem; - margin: 0rem 0 0 2rem; - border: 1px solid #ddd; - box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.1); - background: white; - font-size: 14px; - font-weight: normal; - z-index: 1000000; -} - -th:hover .engine-tooltip, td:hover .engine-tooltip, .engine-tooltip:hover { - display: inline-block; -} - -/* stacked-bar-chart */ -.stacked-bar-chart { - margin: 0; - padding: 0 0.125rem 0 3rem; - width: 100%; - width: -moz-available; - width: -webkit-fill-available; - width: fill; - flex-direction: row; - flex-wrap: nowrap; - flex-grow: 1; - align-items: center; - display: inline-flex; -} - -.stacked-bar-chart-value { - width: 3rem; - display: inline-block; - position: absolute; - padding: 0 0.5rem; - text-align: right; -} - -.stacked-bar-chart-base { - display:flex; - flex-shrink: 0; - flex-grow: 0; - flex-basis: unset; -} - -.stacked-bar-chart-median { - .stacked-bar-chart-base(); - background: @stacked-bar-chart; - border: 1px solid fade(@stacked-bar-chart, 90%); - padding: 0.3rem 0; -} - -.stacked-bar-chart-rate80 { - .stacked-bar-chart-base(); - background: transparent; - border: 1px solid fade(@stacked-bar-chart, 30%); - padding: 0.3rem 0; -} - -.stacked-bar-chart-rate95 { - .stacked-bar-chart-base(); - background: transparent; - border-bottom: 1px dotted fade(@stacked-bar-chart, 50%); - padding: 0; -} - -.stacked-bar-chart-rate100 { - .stacked-bar-chart-base(); - background: transparent; - border-left: 1px solid fade(@stacked-bar-chart, 90%); - padding: 0.4rem 0; - width: 1px; -} diff --git a/searx/static/themes/oscar/src/less/pointhi/results.less b/searx/static/themes/oscar/src/less/pointhi/results.less deleted file mode 100644 index f6a2a0239..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/results.less +++ /dev/null @@ -1,113 +0,0 @@ - -.result_header { - margin-bottom:5px; - margin-top:20px; - - .favicon { - margin-bottom:-3px; - } - - a { - vertical-align: bottom; - - .highlight { - font-weight:bold; - } - } -} - -.result-content { - margin-top: 5px; - word-wrap: break-word; - - .highlight { - font-weight:bold; - } -} - -// default formating of results -.result-default { - clear: both; -} - -// image formating of results -.result-images { - float: left !important; - height: 138px; -} - -.img-thumbnail { - margin: 5px; - max-height: 128px; -} - -// video formating of results -.result-videos { - clear: both; -} - -// torrent formating of results -.result-torrents { - clear: both; -} - -// map formating of results -.result-map { - clear: both; -} - -// code formating of results -.result-code { - clear: both; -} - -// suggestion -.suggestion_item { - margin: 2px 5px; - max-width: 100%; - - .btn { - max-width: 100%; - white-space: normal; - word-wrap: break-word; - text-align: left; - } -} - -// download result -.result_download { - margin-right: 5px; -} - -// page forward, backward -#pagination { - margin-top: 30px; - padding-bottom: 50px; -} - -.label-default { - color: #AAA; - background: #FFF; -} - -.result .text-muted small { - word-wrap: break-word; -} - -.modal-wrapper { - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); -} - -.modal-wrapper { - background-clip: padding-box; - background-color: #fff; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - outline: 0 none; - position: relative; -} - -.highlight { - font-weight: 700; -} diff --git a/searx/static/themes/oscar/src/less/pointhi/search.less b/searx/static/themes/oscar/src/less/pointhi/search.less deleted file mode 100644 index ac0a7a0c7..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/search.less +++ /dev/null @@ -1,43 +0,0 @@ -.search_categories, #categories { - text-transform: capitalize; - margin-bottom: 1.5rem; - margin-top: 1.5rem; - display: flex; - flex-wrap: wrap; - align-content: stretch; - - label, .input-group-addon { - flex-grow: 1; - flex-basis: auto; - font-size: 1.3rem; - font-weight: normal; - background-color: white; - border: #DDD 1px solid; - border-right: none; - color: #333; - padding-bottom: 0.8rem; - padding-top: 0.8rem; - text-align: center; - min-width: 50px; - } - - label:last-child, .input-group-addon:last-child { - border-right: #DDD 1px solid; - } - - input[type="checkbox"]:checked + label{ - color: black; - font-weight: bold; - background-color: #EEE; - } -} - -.visually-hidden { - position: absolute !important; - height: 1px; - width: 1px; - overflow: hidden; - clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ - clip: rect(1px, 1px, 1px, 1px); - white-space: nowrap; /* added line */ -} diff --git a/searx/static/themes/oscar/src/less/pointhi/variables.less b/searx/static/themes/oscar/src/less/pointhi/variables.less deleted file mode 100644 index 991f03098..000000000 --- a/searx/static/themes/oscar/src/less/pointhi/variables.less +++ /dev/null @@ -1 +0,0 @@ -@stacked-bar-chart: rgb(0, 0, 0); |