Skip to content

Commit

Permalink
fix(pagination): taille des bouton en sm, ecart revu, ajout title
Browse files Browse the repository at this point in the history
  • Loading branch information
keryanS committed Dec 15, 2022
1 parent 49cf1ae commit 4456a30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/component/pagination/example/sample/pagination.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ for (i = 130; i < 133; i++) pages.push({label:i, title:'Page ' + i, href:'#', di
if (pagination.index !== undefined) pages[pagination.index].active = true;
let data = {
first: { label: 'Première page', href:'#' },
prev: { label: 'Page précédente', href:'#', hasLgLabel: true },
next: { label: 'Page suivante', href:'#', hasLgLabel: true },
last: { label: 'Dernière page', href:'#' },
first: { label: 'Première page', title: 'Première page', href:'#' },
prev: { label: 'Page précédente', title: 'Page précédente', href:'#', hasLgLabel: true },
next: { label: 'Page suivante', title: 'Page suivante', href:'#', hasLgLabel: true },
last: { label: 'Dernière page', title: 'Dernière page', href:'#' },
pages : pages
}
%>
Expand Down
14 changes: 1 addition & 13 deletions src/component/pagination/style/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

&__link {
@include min-size(8v);
@include margin-x(0.5v);
@include margin-x(2v);
@include margin-bottom(4v);
@include disable-underline;
@include relative;
Expand Down Expand Up @@ -86,17 +86,5 @@
@include nest-pagination(right, arrow-right-s-last-line, lg);
}
}

&--first,
&--prev {
@include margin-right(3.5v);
@include margin-left(-2.5v);
}

&--next,
&--last {
@include margin-right(-2.5v);
@include margin-left(3.5v);
}
}
}
6 changes: 3 additions & 3 deletions src/component/pagination/style/_setting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ $pagination-build-settings:(
selector: pagination__link,
sizes: (
md: (
font-size: 4v,
font-size: 3.5v,
min-height: 8v,
padding-x: 3v,
icon: md,
icon: sm,
icon-margin-x: 2v,
icon-only: md
icon-only: sm,
)
),
display: flex
Expand Down

0 comments on commit 4456a30

Please sign in to comment.