diff options
| author | luccioman <luccioman@users.noreply.github.com> | 2017-10-09 14:13:46 +0200 |
|---|---|---|
| committer | luccioman <luccioman@users.noreply.github.com> | 2017-10-09 14:13:46 +0200 |
| commit | dbff7b14fcc405d8b8ab75e1d784595459ae00c1 (patch) | |
| tree | 66d6b114e640b7dad23f7dbfd21b1ad3e4967b6f /htroot/env/base.css | |
| parent | f8c7d0265e169be435df4f922f91143b6ce28e99 (diff) | |
Add a configurable limit to tags initially displayed in search results
When the limit is reached, a button allow expanding/collapsing remaining
tags.
When this feature is activated without a limit to the number of
displayed tags, when encountering search results with a very large
number of keywords, the results page can become almost unusable (very
long vertical scrollbar)
Diffstat (limited to 'htroot/env/base.css')
| -rw-r--r-- | htroot/env/base.css | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/htroot/env/base.css b/htroot/env/base.css index e174da007..c92eee974 100644 --- a/htroot/env/base.css +++ b/htroot/env/base.css @@ -423,6 +423,22 @@ p.tags { line-height: 1.4; } +/* Button to expand/collapse tags beyond the initial number of tags display limit */ +.expandKeywordsBtn { + margin-top: 0.2em; +} + +.expandKeywordsBtn[aria-expanded="true"] .glyphicon:before { + /* Repeated same char as in the glyphicon-chevron-left class */ + content: "\e079\e079"; +} + +.expandKeywordsBtn[aria-expanded="false"] .glyphicon:before { + /* Repeated same char as in the glyphicon-chevron-right class */ + content: "\e080\e080"; +} + + div.bookmark p { margin:1px; } |
