diff options
author | Adam Tauber <asciimoo@gmail.com> | 2014-05-09 01:27:55 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2014-05-09 01:27:55 +0200 |
commit | 47d548d6a21f350c1aafc86773af65a514c59fd0 (patch) | |
tree | 37e45d162976a2ae62518367475a81aa08d2d377 /searx/static/less | |
parent | a41c1392f072837b60c38454072e38324e2ba029 (diff) | |
download | searxng-47d548d6a21f350c1aafc86773af65a514c59fd0.tar.gz searxng-47d548d6a21f350c1aafc86773af65a514c59fd0.zip |
[enh][mod] results ui refactor
Diffstat (limited to 'searx/static/less')
-rw-r--r-- | searx/static/less/definitions.less | 1 | ||||
-rw-r--r-- | searx/static/less/search.less | 12 | ||||
-rw-r--r-- | searx/static/less/style.less | 125 |
3 files changed, 73 insertions, 65 deletions
diff --git a/searx/static/less/definitions.less b/searx/static/less/definitions.less index 289b8cbc2..d957422d7 100644 --- a/searx/static/less/definitions.less +++ b/searx/static/less/definitions.less @@ -17,6 +17,7 @@ @color-url-font: #1a11be; @color-url-visited-font: #8E44AD; +@results-width: 50em; /// Start-Screen diff --git a/searx/static/less/search.less b/searx/static/less/search.less index f5d9620fb..367ef2e21 100644 --- a/searx/static/less/search.less +++ b/searx/static/less/search.less @@ -3,25 +3,25 @@ */ .search { - background: @color-result-search-background; padding: 0; margin: 0; .checkbox_container label { - border-bottom: 4px solid @color-categories-item-border-unselected; + font-size: 0.9em; + border-bottom: 2px solid @color-categories-item-border-unselected; } .checkbox_container label:hover { - border-bottom: 4px solid @color-categories-item-border-unselected-hover; + border-bottom: 2px solid @color-categories-item-border-unselected-hover; } .checkbox_container input[type="checkbox"]:checked + label { - border-bottom: 4px solid @color-categories-item-border-selected; + border-bottom: 2px solid @color-categories-item-border-selected; } } #search_wrapper { position: relative; - max-width: 600px; + width: 50em; padding: 10px; } @@ -59,7 +59,7 @@ font-size: 0; } -@media screen and (max-width: 680px) { +@media screen and (max-width: @results-width) { #search_wrapper { width: 90%; clear:both; diff --git a/searx/static/less/style.less b/searx/static/less/style.less index 8653e6e68..2bc440f58 100644 --- a/searx/static/less/style.less +++ b/searx/static/less/style.less @@ -195,7 +195,6 @@ a { .result { margin: 19px 0 18px 0; padding: 0; - max-width: 53em; clear: both; } @@ -345,20 +344,36 @@ tr { } #results { - margin: 10px; + margin: auto; padding: 0; + width: @results-width; margin-bottom: 20px; } #sidebar { position: absolute; - left: 54em; - width: 15em; + top: 100px; + left: 10px; margin: 0 2px 5px 5px; padding: 0 2px 2px 2px; + width: 14em; + + input { + padding: 2px; + margin: 1px; + font-size: 0.8em; + display: inline-block; + background: transparent; + color: @color-result-search-url-font; + cursor: pointer; + } + input[type="submit"] { + text-decoration: underline; + } } #suggestions { + span { display: block; margin: 0 2px 2px 2px; @@ -368,18 +383,6 @@ tr { form { display: block; } - - input { - padding: 2px 6px; - margin: 2px 4px; - font-size: 0.8em; - display: inline-block; - background: @color-suggestions-button-background; - color: @color-suggestions-button-font; - .rounded-corners; - border: 0; - cursor: pointer; - } } #search_url { @@ -389,9 +392,10 @@ tr { border: 1px solid @color-result-search-url-border; padding: 4px; color: @color-result-search-url-font; - width: 20em; + width: 14em; display: block; margin: 4px; + font-size: 0.8em; } } @@ -413,6 +417,7 @@ tr { #pagination { clear: both; + width: 40em; } #apis { @@ -420,40 +425,45 @@ tr { clear: both; } -@media screen and (max-width: 60em) { - #sidebar { - position: static; - max-width: 50em; - margin: 0 0 2px 0; - padding: 0; - float: none; - border: none; - width: auto +@media screen and (max-width: @results-width) { + + #categories { + font-size: 90%; + clear: both; + + .checkbox_container { + margin-top: 2px; + margin: auto; + } + } + + #results { + margin: auto; + padding: 0; + width: 90%; + } + + .checkbox_container { + display: block; + width: 90%; + //float: left; + + label { + border-bottom: 0; + } } +} +@media screen and (max-width: 70em) { #suggestions { span { display: inline; - font-size: 0.8em } form { display: inline; } - - input { - padding: 2px 6px; - margin: 2px 4px; - font-size: 0.8em; - display: inline-block; - .rounded-corners; - border: 0; - cursor: pointer; - } } -} - -@media screen and (max-width: 680px) { .right { display: none; postion: fixed !important; @@ -461,29 +471,26 @@ tr { right: 0px; } - #apis { - display: none; + #sidebar { + position: static; + max-width: @results-width; + margin: 0 0 2px 0; + padding: 0; + float: none; + border: none; + width: auto; + input { + border: 0; + } } - #categories { - font-size: 80%; - clear: both; - - .checkbox_container { - margin-top: 2px; - margin: 0 2px; - } + #apis { + display: none; } - .checkbox_container { - display: block; - width: 100%; - //float: left; - - label { - border-bottom: 0; - } - } + #search_url { + display: none; + } .result { border-top: 1px solid @color-result-top-border; |