diff options
| author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2020-08-03 00:15:54 -0700 |
|---|---|---|
| committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2020-08-10 00:12:45 -0700 |
| commit | 0601f2bb481758ed8e0e68f96a976063d9b229db (patch) | |
| tree | 00a66a0a88f3aa1e2adbb136c69984e635ada191 /searx/static/themes/oscar/less/logicodev | |
| parent | 57bad502a698c3d337641ad700cefd0be344ddd6 (diff) | |
add toggle to resize infobox
Diffstat (limited to 'searx/static/themes/oscar/less/logicodev')
| -rw-r--r-- | searx/static/themes/oscar/less/logicodev/infobox.less | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/searx/static/themes/oscar/less/logicodev/infobox.less b/searx/static/themes/oscar/less/logicodev/infobox.less index 08a1d326e..e3582dffc 100644 --- a/searx/static/themes/oscar/less/logicodev/infobox.less +++ b/searx/static/themes/oscar/less/logicodev/infobox.less @@ -45,4 +45,43 @@ .infobox_part:last-child { margin-bottom: 0; } + + .infobox_toggle { + width: 100%; + text-align: center; + margin-bottom: 0px; + } + + // Shrink infobox size when toggle is off + .infobox_checkbox ~ .infobox_body { + max-height: 300px; + overflow: hidden; + } + .infobox_checkbox:checked ~ .infobox_body { + max-height: none; + } + + // Show toggle button as down when infobox is shrunk + .infobox_checkbox ~ .infobox_toggle .infobox_label_down { + display: block; + } + .infobox_checkbox ~ .infobox_toggle .infobox_label_up { + display: none; + } + + // Show toggle button as up when infobox is expanded + .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_up { + display: block; + } + .infobox_checkbox:checked ~ .infobox_toggle .infobox_label_down { + display: none; + } + + // Hide main image when toggle is off + .infobox_checkbox ~ .infobox_body img.infobox_part { + display: none; + } + .infobox_checkbox:checked ~ .infobox_body img.infobox_part { + display: block; + } } |