Skip to content

Commit

Permalink
Merge pull request #51 from contao-themes-net/fix-gallery-pagination
Browse files Browse the repository at this point in the history
Fix gallery pagination
  • Loading branch information
MDevster committed Jul 14, 2023
2 parents 8ce995e + d1e8218 commit 37d7930
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 46 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,10 @@ Types of changes
Security in case of vulnerabilities.
)

## [3.3.1](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.3.1) – 2023-07-14

- [Fixed] Fix gallery pagination

## [3.3.0](https://github.com/contao-themes-net/odd-theme-bundle/tree/3.3.0) – 2023-06-02

- [Added] Adding French translations (Thanks to [najbo](https://github.com/najbo))
Expand Down
51 changes: 51 additions & 0 deletions public/scss/parts/modules.scss
Expand Up @@ -237,3 +237,54 @@ p.confirm {
border-radius: 0;
}
}

/* Pagination */

nav.pagination {
display: block;
}

.pagination, [data-pagination] {
li {
strong, a {
font-weight: 400;
position: relative;
display: block;
padding: 0.5rem 0.75rem;
margin: 2px;
line-height: 1.25;
background: $oddColor2;
color: $oddColor6;

&.active {
background: $oddColor6;
color: $oddColor2;
}

&:hover {
background: $oddColor6;
color: $oddColor2;
}
}
}

ul, ol {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
padding-left: 0;
list-style: none;
border-radius: 0.25rem;
}

li:first-child, li:last-child {
.page-link {
border-radius: 0;
}
}
}

[data-pagination] {
clear: both;
padding-top: 10px;
}
46 changes: 1 addition & 45 deletions public/scss/parts/news-events.scss
Expand Up @@ -107,50 +107,6 @@
}
}

nav.pagination {
display: block;
}

.pagination {
li {
strong, a {
font-weight: 400;
position: relative;
display: block;
padding: 0.5rem 0.75rem;
margin: 2px;
line-height: 1.25;
background: $oddColor2;
color: $oddColor6;

&.active {
background: $oddColor6;
color: $oddColor2;
}

&:hover {
background: $oddColor6;
color: $oddColor2;
}
}
}

ul {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
padding-left: 0;
list-style: none;
border-radius: 0.25rem;
}

li:first-child, li:last-child {
.page-link {
border-radius: 0;
}
}
}

.calendar {
width: 100%;

Expand Down Expand Up @@ -294,4 +250,4 @@ nav.pagination {
.recurring {
font-size: 0.8rem;
font-style: italic;
}
}
2 changes: 1 addition & 1 deletion src/Module/OddThemeSetup.php
Expand Up @@ -22,7 +22,7 @@

class OddThemeSetup extends BackendModule
{
public const VERSION = '3.3.0';
public const VERSION = '3.3.1';

protected $strTemplate = 'be_oddtheme_setup';

Expand Down

0 comments on commit 37d7930

Please sign in to comment.