summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/less
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-07-27 02:08:24 +0200
committerAdam Tauber <asciimoo@gmail.com>2016-07-27 02:08:24 +0200
commitbf92aa3fdd7e6343b1aca55515a94b4de1c5ce30 (patch)
tree755373286e56feb1d2a85b990435d60eabcb2900 /searx/static/themes/oscar/less
parent350a84520d9da2499ffd5b0fbe6218692f2a330d (diff)
downloadsearxng-bf92aa3fdd7e6343b1aca55515a94b4de1c5ce30.tar.gz
searxng-bf92aa3fdd7e6343b1aca55515a94b4de1c5ce30.zip
[fix] wrap categories on small screens ++ some code formatting - closes #647
Diffstat (limited to 'searx/static/themes/oscar/less')
-rw-r--r--searx/static/themes/oscar/less/logicodev/advanced.less21
-rw-r--r--searx/static/themes/oscar/less/logicodev/search.less13
-rw-r--r--searx/static/themes/oscar/less/pointhi/advanced.less23
-rw-r--r--searx/static/themes/oscar/less/pointhi/search.less16
4 files changed, 42 insertions, 31 deletions
diff --git a/searx/static/themes/oscar/less/logicodev/advanced.less b/searx/static/themes/oscar/less/logicodev/advanced.less
index 7e0469672..ba633525c 100644
--- a/searx/static/themes/oscar/less/logicodev/advanced.less
+++ b/searx/static/themes/oscar/less/logicodev/advanced.less
@@ -1,7 +1,8 @@
#advanced-search-container {
- display:none;
- text-align:left;
- margin-bottom:1rem;
+ display: none;
+ text-align: left;
+ margin-bottom: 1rem;
+ clear: both;
label, .input-group-addon {
font-size: 1.2rem;
@@ -11,9 +12,8 @@
border-right: none;
color: @dark-gray;
padding-bottom: 0.4rem;
- padding-top: 0.4rem;
- padding-left: 0.5rem;
- padding-right: 0.5rem;
+ padding-right: 0.7rem;
+ padding-left: 0.7rem;
}
label:last-child, .input-group-addon:last-child {
@@ -26,7 +26,7 @@
input[type="radio"]:checked + label{
color: @black;
- font-weight:bold;
+ font-weight: bold;
border-bottom: @light-green 5px solid;
}
select {
@@ -59,10 +59,11 @@ Ny0yNFQxMToxNTowMCswMjowMP7RDgQAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb
}
#check-advanced:checked ~ #advanced-search-container {
- display:block;
+ display: block;
}
.advanced {
- margin-top:1rem;
- text-align:right;
+ padding: 0;
+ margin-top: 0.3rem;
+ text-align: right;
}
diff --git a/searx/static/themes/oscar/less/logicodev/search.less b/searx/static/themes/oscar/less/logicodev/search.less
index f6d6b3dc6..4ebfe8899 100644
--- a/searx/static/themes/oscar/less/logicodev/search.less
+++ b/searx/static/themes/oscar/less/logicodev/search.less
@@ -1,18 +1,23 @@
.search_categories, #categories {
text-transform: capitalize;
margin-bottom: 0.5rem;
+ display: flex;
+ flex-wrap: wrap;
+ flex-flow: row wrap;
+ align-content: stretch;
label, .input-group-addon {
+ flex-grow: 1;
+ flex-basis: auto;
font-size: 1.2rem;
- font-weight:normal;
+ font-weight: normal;
background-color: white;
border: @mild-gray 1px solid;
border-right: none;
color: @dark-gray;
padding-bottom: 0.4rem;
padding-top: 0.4rem;
- padding-left: 0.5rem;
- padding-right: 0.5rem;
+ text-align: center;
}
label:last-child, .input-group-addon:last-child {
border-right: @mild-gray 1px solid;
@@ -20,7 +25,7 @@
input[type="checkbox"]:checked + label {
color: @black;
- font-weight:bold;
+ font-weight: bold;
border-bottom: @light-green 5px solid;
}
}
diff --git a/searx/static/themes/oscar/less/pointhi/advanced.less b/searx/static/themes/oscar/less/pointhi/advanced.less
index a83af4866..826438292 100644
--- a/searx/static/themes/oscar/less/pointhi/advanced.less
+++ b/searx/static/themes/oscar/less/pointhi/advanced.less
@@ -1,7 +1,8 @@
#advanced-search-container {
- display:none;
- text-align:center;
- margin-bottom:1rem;
+ display: none;
+ text-align: center;
+ margin-bottom: 1rem;
+ clear: both;
label, .input-group-addon {
font-size: 1.3rem;
@@ -11,7 +12,6 @@
border-right: none;
color: #333;
padding-bottom: 0.8rem;
- padding-top: 0.8rem;
padding-left: 1.2rem;
padding-right: 1.2rem;
}
@@ -19,14 +19,14 @@
label:last-child, .input-group-addon:last-child {
border-right: #DDD 1px solid;
}
-
+
input[type="radio"] {
display: none;
}
-
- input[type="radio"]:checked + label{
+
+ input[type="radio"]:checked + label {
color: black;
- font-weight:bold;
+ font-weight: bold;
background-color: #EEE;
}
}
@@ -36,10 +36,11 @@
}
#check-advanced:checked ~ #advanced-search-container {
- display:block;
+ display: block;
}
.advanced {
- margin-top:1rem;
- text-align:right;
+ padding: 0;
+ margin-top: 0.3rem;
+ text-align: right;
}
diff --git a/searx/static/themes/oscar/less/pointhi/search.less b/searx/static/themes/oscar/less/pointhi/search.less
index d12b69d31..cea67998f 100644
--- a/searx/static/themes/oscar/less/pointhi/search.less
+++ b/searx/static/themes/oscar/less/pointhi/search.less
@@ -1,19 +1,23 @@
.search_categories, #categories {
text-transform: capitalize;
- margin-bottom:1.5rem;
- margin-top:1.5rem;
+ 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;
+ font-weight: normal;
background-color: white;
border: #DDD 1px solid;
border-right: none;
color: #333;
padding-bottom: 0.8rem;
padding-top: 0.8rem;
- padding-left: 1.2rem;
- padding-right: 1.2rem;
+ text-align: center;
}
label:last-child, .input-group-addon:last-child {
@@ -22,7 +26,7 @@
input[type="checkbox"]:checked + label{
color: black;
- font-weight:bold;
+ font-weight: bold;
background-color: #EEE;
}
}