diff options
| author | Dalf <alex@al-f.net> | 2014-09-28 16:51:41 +0200 |
|---|---|---|
| committer | Dalf <alex@al-f.net> | 2014-09-28 16:51:41 +0200 |
| commit | 6bfd5663539052a64c984f5bdb7135d0d652c923 (patch) | |
| tree | acf2049046d62c0b4849d0b36815dfe21117bcec /searx/static/default/less/style.less | |
| parent | e39d9fe5423a0fceed1d15dc63c1f8aa30d72e44 (diff) | |
[enh] add infoboxes and answers
Diffstat (limited to 'searx/static/default/less/style.less')
| -rw-r--r-- | searx/static/default/less/style.less | 124 |
1 files changed, 96 insertions, 28 deletions
diff --git a/searx/static/default/less/style.less b/searx/static/default/less/style.less index e3fac1b10..27da09e35 100644 --- a/searx/static/default/less/style.less +++ b/searx/static/default/less/style.less @@ -235,6 +235,17 @@ a { max-width: 54em; word-wrap:break-word; line-height: 1.24; + + img { + float: left; + margin-right: 5px; + max-width: 200px; + max-height: 100px; + } + + br.last { + clear: both; + } } .url { @@ -384,33 +395,80 @@ tr { } } -#suggestions { +#suggestions, #answers { - margin-top: 20px; + margin-top: 20px; + +} + +#suggestions, #answers, #infoboxes { - span { - display: inline; - margin: 0 2px 2px 2px; - padding: 0; - } input { padding: 0; margin: 3px; font-size: 0.8em; display: inline-block; - background: transparent; - color: @color-result-search-url-font; + background: transparent; + color: @color-result-search-url-font; cursor: pointer; } - input[type="submit"] { + + input[type="submit"] { text-decoration: underline; - } + } form { display: inline; } } + +#infoboxes { + position: absolute; + top: 220px; + right: 20px; + margin: 0px 2px 5px 5px; + padding: 0px 2px 2px; + max-width: 21em; + + .infobox { + margin: 10px 0 10px; + border: 1px solid #ddd; + padding: 5px; + font-size: 0.8em; + + img { + max-width: 20em; + max-heigt: 12em; + display: block; + margin: 5px; + padding: 5px; + } + + h2 { + margin: 0; + } + + table { + width: auto; + + td { + vertical-align: top; + } + + } + + input { + font-size: 1em; + } + + br { + clear: both; + } + + } +} + #search_url { margin-top: 8px; @@ -453,16 +511,6 @@ tr { @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; @@ -483,7 +531,33 @@ tr { } } -@media screen and (max-width: 70em) { +@media screen and (max-width: 75em) { + + #infoboxes { + position: inherit; + max-width: inherit; + + .infobox { + clear:both; + + img { + float: left; + max-width: 10em; + } + } + + } + + #categories { + font-size: 90%; + clear: both; + + .checkbox_container { + margin-top: 2px; + margin: auto; + } + } + .right { display: none; postion: fixed !important; @@ -515,12 +589,6 @@ tr { .result { border-top: 1px solid @color-result-top-border; margin: 7px 0 6px 0; - - img { - max-width: 90%; - width: auto; - height: auto - } } } |