diff options
author | Tom <tw201207@gmail.com> | 2016-10-31 07:50:26 +0100 |
---|---|---|
committer | Tom <tw201207@gmail.com> | 2016-10-31 07:50:26 +0100 |
commit | d4a1aae48f097d48e9fded67445ba20720c1d966 (patch) | |
tree | a685d1c2d0847a9675f41be79c26f75c032f55a6 /src/main/resources | |
parent | 35f149120cc1ab874f7fa8c1a299006a90759da9 (diff) | |
download | gitblit-d4a1aae48f097d48e9fded67445ba20720c1d966.tar.gz gitblit-d4a1aae48f097d48e9fded67445ba20720c1d966.zip |
Fix disabled links in PagerPanel
Disabled links in the PagerPanel (used on the LuceneSearchPage to page
through search results) were only rendered as "disabled". The links
themselves remained active, which gives strange effects when clicked.
For instance it was possible to move to result pages -1, -2, and so on.
Really disable the links. Add missing CSS rules to have correct styling
as Wicket renders disabled links as spans, not anchors. Include the new
CSS file in BasePage.html. And add the left/right arrows only if not on
the first/last page.
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/bootstrap-fixes.css | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/resources/bootstrap-fixes.css b/src/main/resources/bootstrap-fixes.css new file mode 100644 index 00000000..c9b6154b --- /dev/null +++ b/src/main/resources/bootstrap-fixes.css @@ -0,0 +1,25 @@ +/** + * Disabled links in a PagerPanel. Bootstrap 2.0.4 only handles <a>, but not <span>. Wicket renders disabled links as spans. + * The .pagination rules here are identical to the ones for <a> in bootstrap.css, but for <span>. + */ +.pagination span { + float: left; + padding: 0 14px; + line-height: 34px; + text-decoration: none; + border: 1px solid #ddd; + border-left-width: 0; +} + +.pagination li:first-child span { + border-left-width: 1px; + -webkit-border-radius: 3px 0 0 3px; + -moz-border-radius: 3px 0 0 3px; + border-radius: 3px 0 0 3px; +} + +.pagination li:last-child span { + -webkit-border-radius: 0 3px 3px 0; + -moz-border-radius: 0 3px 3px 0; + border-radius: 0 3px 3px 0; +} |