summaryrefslogtreecommitdiff
path: root/searx/static/themes/oscar/css/pointhi.css
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2020-08-10 12:15:05 +0200
committerGitHub <noreply@github.com>2020-08-10 12:15:05 +0200
commit43df251f3d4f70b94fcbe37542e12af77bc10f8a (patch)
tree00a66a0a88f3aa1e2adbb136c69984e635ada191 /searx/static/themes/oscar/css/pointhi.css
parentf3bfc19a557ef121d370033de6325df2ca835dcd (diff)
parent0601f2bb481758ed8e0e68f96a976063d9b229db (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/pointhi.css')
-rw-r--r--searx/static/themes/oscar/css/pointhi.css50
1 files changed, 50 insertions, 0 deletions
diff --git a/searx/static/themes/oscar/css/pointhi.css b/searx/static/themes/oscar/css/pointhi.css
index 4e167687c..4cfecb70a 100644
--- a/searx/static/themes/oscar/css/pointhi.css
+++ b/searx/static/themes/oscar/css/pointhi.css
@@ -156,6 +156,9 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
outline: 0 none;
position: relative;
}
+.infobox img {
+ max-height: 250px;
+}
.infobox .infobox_part {
margin-bottom: 20px;
word-wrap: break-word;
@@ -164,6 +167,42 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
.infobox .infobox_part:last-child {
margin-bottom: 0;
}
+.infobox .header_url {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: block;
+}
+.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;
@@ -202,6 +241,17 @@ input[type=checkbox]:not(:checked) + .label_hide_if_checked + .label_hide_if_not
font-weight: bold;
background-color: #EEE;
}
+.visually-hidden {
+ position: absolute !important;
+ height: 1px;
+ width: 1px;
+ overflow: hidden;
+ clip: rect(1px 1px 1px 1px);
+ /* IE6, IE7 */
+ clip: rect(1px, 1px, 1px, 1px);
+ white-space: nowrap;
+ /* added line */
+}
#advanced-search-container {
display: none;
text-align: center;