diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2020-08-10 12:15:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-10 12:15:05 +0200 |
| commit | 43df251f3d4f70b94fcbe37542e12af77bc10f8a (patch) | |
| tree | 00a66a0a88f3aa1e2adbb136c69984e635ada191 /searx/static/themes/oscar/css/logicodev-dark.css | |
| parent | f3bfc19a557ef121d370033de6325df2ca835dcd (diff) | |
| parent | 0601f2bb481758ed8e0e68f96a976063d9b229db (diff) | |
Merge pull request #2131 from MarcAbonce/infobox_style
Make infobox shorter by default and add an expand toggle
Diffstat (limited to 'searx/static/themes/oscar/css/logicodev-dark.css')
| -rw-r--r-- | searx/static/themes/oscar/css/logicodev-dark.css | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/searx/static/themes/oscar/css/logicodev-dark.css b/searx/static/themes/oscar/css/logicodev-dark.css index c104dc061..99e9c2a22 100644 --- a/searx/static/themes/oscar/css/logicodev-dark.css +++ b/searx/static/themes/oscar/css/logicodev-dark.css @@ -295,10 +295,19 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not .infobox .panel-heading .panel-title { font-weight: 700; } +.infobox .header_url { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + display: block; +} .infobox p { font-family: "DejaVu Serif", Georgia, Cambria, "Times New Roman", Times, serif !important; font-style: italic; } +.infobox img { + max-height: "250px"; +} .infobox .btn { background-color: #007ab8; border: none; @@ -315,6 +324,36 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not .infobox .infobox_part:last-child { margin-bottom: 0; } +.infobox .infobox_toggle { + width: 100%; + text-align: center; + margin-bottom: 0px; +} +.infobox .infobox_checkbox ~ .infobox_body { + max-height: 300px; + overflow: hidden; +} +.infobox .infobox_checkbox:checked ~ .infobox_body { + max-height: none; +} +.infobox .infobox_checkbox ~ .infobox_toggle .infobox_label_down { + display: block; +} +.infobox .infobox_checkbox ~ .infobox_toggle .infobox_label_up { + display: none; +} +.infobox .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_up { + display: block; +} +.infobox .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_down { + display: none; +} +.infobox .infobox_checkbox ~ .infobox_body img.infobox_part { + display: none; +} +.infobox .infobox_checkbox:checked ~ .infobox_body img.infobox_part { + display: block; +} .search_categories, #categories { text-transform: capitalize; |