diff options
| author | a01200356 <a01200356@itesm.mx> | 2016-02-27 19:19:04 -0600 |
|---|---|---|
| committer | a01200356 <a01200356@itesm.mx> | 2016-02-27 19:19:04 -0600 |
| commit | 4267b11a45b7427bcba91259fcda202bd049f004 (patch) | |
| tree | 69280e76e9fc5066111aeb05d33759c0d26f4ad1 /searx/static/themes/default/less | |
| parent | 78d3f3d6b116e0aca8af8b939d5a98ea74bb8de3 (diff) | |
[fix] apply changes in infobox's styles
changes were made for wolframalpha infobox:
- wrap text inside infobox.
for example, there's a hill in New Zealand called
Taumatawhakatangihangakoauauotamateapokaiwhenuakitanatahu
(don't blame me, blame the Kiwis)
and now it doesn't break the infobox.
- add an optional image field for infobox's attributes.
(doesn't affect ddg infobox at all)
- table is now always split in half.
needed so that images stay inside infobox.
(max-width doesn't work for inline elements, it's the table
that has to set the width.
if you don't like how the table width looks now in ddg/wiki's infobox,
i can change that code so that the style only applies when using
wolframalpha.
Diffstat (limited to 'searx/static/themes/default/less')
| -rw-r--r-- | searx/static/themes/default/less/style.less | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/static/themes/default/less/style.less b/searx/static/themes/default/less/style.less index 575bc222c..4374f7d68 100644 --- a/searx/static/themes/default/less/style.less +++ b/searx/static/themes/default/less/style.less @@ -476,6 +476,7 @@ color: @color-font-light; margin: 0px 2px 5px 5px; padding: 0px 2px 2px; max-width: 21em; + word-wrap: break-word; .infobox { margin: 10px 0 10px; @@ -485,7 +486,7 @@ color: @color-font-light; /* box-shadow: 0px 0px 5px #CCC; */ img { - max-width: 20em; + max-width: 90%; max-heigt: 12em; display: block; margin: 5px; @@ -497,7 +498,7 @@ color: @color-font-light; } table { - width: auto; + table-layout: fixed; td { vertical-align: top; |