Skip to content

Commit 526a5da

Browse files
committed
Die Seitenleiste buendig unter die Liste setzen
Der Modifikator tl_pagination-lp des Backend-Themes nimmt den unteren Abstand und den unteren Rahmen und rundet die unteren Ecken. Der Radius kommt aus der Theme-Variablen, bleibt also an das Theme gebunden statt hier festgeschrieben zu sein.
1 parent 1556003 commit 526a5da

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Resources/contao/templates/dcbe_general_pagination.html5

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@
55
* The class "tl_pagination" comes from the back end theme and carries the look; the markup below is
66
* what those rules expect - a paragraph on the left and a list on the right.
77
*
8+
* The "-lp" modifier makes the bar sit flush under the listing: no bottom margin, no bottom border
9+
* and the lower corners rounded. It uses the theme variable for the radius, so it keeps following
10+
* the theme instead of freezing a value here.
11+
*
812
* @var string $this->label "Page x of y".
913
* @var string $this->labelNavigation Label of the nav element.
1014
* @var list<array{page: int, url: string, current: bool}> $this->pages The pages to offer.
1115
* @var array<string, array{url: string, label: string}> $this->steps first/previous/next/last.
1216
*/
1317
?>
14-
<nav class="tl_pagination" role="navigation" aria-label="<?= $this->labelNavigation ?>">
18+
<nav class="tl_pagination tl_pagination-lp" role="navigation" aria-label="<?= $this->labelNavigation ?>">
1519
<p><?= $this->label ?></p>
1620
<ul>
1721
<?php foreach (['first', 'previous'] as $step): ?>

0 commit comments

Comments
 (0)