mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
[mod] oscar: move compiled files to the src directory
This commit is contained in:
parent
eda3b513ac
commit
c7133efb12
35 changed files with 12 additions and 12 deletions
49
searx/static/themes/oscar/src/less/pointhi/advanced.less
Normal file
49
searx/static/themes/oscar/src/less/pointhi/advanced.less
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
#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;
|
||||
}
|
||||
}
|
||||
9
searx/static/themes/oscar/src/less/pointhi/checkbox.less
Normal file
9
searx/static/themes/oscar/src/less/pointhi/checkbox.less
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// 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;
|
||||
}
|
||||
79
searx/static/themes/oscar/src/less/pointhi/code.less
Normal file
79
searx/static/themes/oscar/src/less/pointhi/code.less
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
.highlight .hll { background-color: #ffffcc }
|
||||
.highlight { background: #f8f8f8; }
|
||||
.highlight .c { color: #408080; font-style: italic } /* Comment */
|
||||
.highlight .err { border: 1px solid #FF0000 } /* Error */
|
||||
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
|
||||
.highlight .o { color: #666666 } /* Operator */
|
||||
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
|
||||
.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
|
||||
.highlight .gd { color: #A00000 } /* Generic.Deleted */
|
||||
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .gr { color: #FF0000 } /* Generic.Error */
|
||||
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
||||
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
||||
.highlight .go { color: #888888 } /* Generic.Output */
|
||||
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
|
||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
||||
.highlight .gt { color: #0044DD } /* Generic.Traceback */
|
||||
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
|
||||
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
|
||||
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
|
||||
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
|
||||
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #B00040 } /* Keyword.Type */
|
||||
.highlight .m { color: #666666 } /* Literal.Number */
|
||||
.highlight .s { color: #BA2121 } /* Literal.String */
|
||||
.highlight .na { color: #7D9029 } /* Name.Attribute */
|
||||
.highlight .nb { color: #008000 } /* Name.Builtin */
|
||||
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
|
||||
.highlight .no { color: #880000 } /* Name.Constant */
|
||||
.highlight .nd { color: #AA22FF } /* Name.Decorator */
|
||||
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
|
||||
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
|
||||
.highlight .nf { color: #0000FF } /* Name.Function */
|
||||
.highlight .nl { color: #A0A000 } /* Name.Label */
|
||||
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
|
||||
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
|
||||
.highlight .nv { color: #19177C } /* Name.Variable */
|
||||
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
|
||||
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
|
||||
.highlight .mf { color: #666666 } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
|
||||
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
|
||||
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
|
||||
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #008000 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
|
||||
.highlight .vc { color: #19177C } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #19177C } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
|
||||
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */
|
||||
|
||||
.highlight .lineno {
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
cursor: default;
|
||||
|
||||
&::selection {
|
||||
background: transparent; /* WebKit/Blink Browsers */
|
||||
}
|
||||
&::-moz-selection {
|
||||
background: transparent; /* Gecko Browsers */
|
||||
}
|
||||
}
|
||||
8
searx/static/themes/oscar/src/less/pointhi/cursor.less
Normal file
8
searx/static/themes/oscar/src/less/pointhi/cursor.less
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// display cursor
|
||||
.cursor-text {
|
||||
cursor: text !important;
|
||||
}
|
||||
|
||||
.cursor-pointer {
|
||||
cursor: pointer !important;
|
||||
}
|
||||
19
searx/static/themes/oscar/src/less/pointhi/footer.less
Normal file
19
searx/static/themes/oscar/src/less/pointhi/footer.less
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// 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;
|
||||
}
|
||||
62
searx/static/themes/oscar/src/less/pointhi/infobox.less
Normal file
62
searx/static/themes/oscar/src/less/pointhi/infobox.less
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
.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;
|
||||
}
|
||||
}
|
||||
20
searx/static/themes/oscar/src/less/pointhi/navbar.less
Normal file
20
searx/static/themes/oscar/src/less/pointhi/navbar.less
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
.searx-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;
|
||||
}
|
||||
}
|
||||
57
searx/static/themes/oscar/src/less/pointhi/onoff.less
Normal file
57
searx/static/themes/oscar/src/less/pointhi/onoff.less
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
.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;
|
||||
}
|
||||
21
searx/static/themes/oscar/src/less/pointhi/oscar.less
Normal file
21
searx/static/themes/oscar/src/less/pointhi/oscar.less
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
@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 "preferences.less";
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
.table > tbody > tr > td, .table > tbody > tr > th {
|
||||
vertical-align: middle !important;
|
||||
}
|
||||
109
searx/static/themes/oscar/src/less/pointhi/results.less
Normal file
109
searx/static/themes/oscar/src/less/pointhi/results.less
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
|
||||
.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;
|
||||
}
|
||||
43
searx/static/themes/oscar/src/less/pointhi/search.less
Normal file
43
searx/static/themes/oscar/src/less/pointhi/search.less
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
.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 */
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue