From f092be58c8fa7cb8ed76fb6d2932d747e685908e Mon Sep 17 00:00:00 2001 From: aspangaro Date: Tue, 5 May 2015 21:41:08 +0200 Subject: [PATCH] New: Add visual pagination for use on tablet --- htdocs/core/lib/functions.lib.php | 23 +++++----- htdocs/theme/eldy/style.css.php | 74 ++++++++++++++++++++++++++++++- 2 files changed, 86 insertions(+), 11 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 7cf0e4ff91c..24984e9ee3f 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -2829,21 +2829,22 @@ function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $so $nbpages=ceil($totalnboflines/$conf->liste_limit); $cpt=($page-$maxnbofpage); if ($cpt < 0) { $cpt=0; } - $pagelist.=$langs->trans('Page'); + $pagelist.=''; } } print_fleche_navigation($page,$file,$options,$nextpage,$pagelist); @@ -2881,17 +2882,19 @@ function print_fleche_navigation($page,$file,$options='',$nextpage=0,$betweenarr { global $conf, $langs; + print ''; } diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 5a490f5aef5..c8e0e46cf0e 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -1546,7 +1546,7 @@ span.butAction, span.butActionDelete { cursor: pointer; } -/* Preapre for bootstrap look +/* Prepare for bootstrap look .butAction, .butActionDelete, .butActionRefused { border-color: #c5c5c5; border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25); @@ -1807,6 +1807,78 @@ table.liste td { .tagtr, .table-border-row { display: table-row; } .tagtd, .table-border-col, .table-key-border-col, .table-val-border-col { display: table-cell; } +/* Pagination */ +div.pagination ul, div.pagination li +{ + list-style: none; + display: inline-block; + padding-left: 0px; +} + +div.pagination li { + display: inline; +} +.pagination { + display: inline-block; + padding-left: 0; + border-radius: 4px; +} + +div.pagination li a, +div.pagination li span { + position: relative; + float: left; + padding: 6px 12px; + margin-left: -1px; + line-height: 1.42857143; + color: #337ab7; + text-decoration: none; + background-color: #fff; + border: 1px solid #ddd; +} +div.pagination li:first-child a, +div.pagination li:first-child span { + margin-left: 0; + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} +div.pagination li:last-child a, +div.pagination li:last-child span { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} +div.pagination li a:hover, +div.pagination li span:hover, +div.pagination li a:focus, +div.pagination li span:focus { + color: #23527c; + background-color: #eee; + border-color: #ddd; +} +div.pagination li .active a, +div.pagination li .active span, +div.pagination li .active a:hover, +div.pagination li .active span:hover, +div.pagination li .active a:focus, +div.pagination li .active span:focus { + z-index: 2; + color: #fff; + cursor: default; + background-color: ; + border-color: #337ab7; +} +div.pagination .disabled span, +div.pagination .disabled span:hover, +div.pagination .disabled span:focus, +div.pagination .disabled a, +div.pagination .disabled a:hover, +div.pagination .disabled a:focus { + color: #777; + cursor: not-allowed; + background-color: #fff; + border-color: #ddd; +} + /* Prepare to remove class pair - impair .noborder > tbody > tr:nth-child(even) td {