mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
add toggle to resize infobox
This commit is contained in:
parent
57bad502a6
commit
0601f2bb48
12 changed files with 203 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue