mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
* Add classes to pagination to better style the layout, improve an i18n translation * Fix default pagination only if there’s no input on init
55 lines
1.2 KiB
SCSS
55 lines
1.2 KiB
SCSS
@import 'theming';
|
|
|
|
$adf-pagination--height: 48px;
|
|
$adf-pagination--icon-button-size: 32px;
|
|
$adf-pagination--border: 1px solid $alfresco-divider-color;
|
|
|
|
.adf-pagination {
|
|
display: flex;
|
|
border-top: $adf-pagination--border;
|
|
height: $adf-pagination--height;
|
|
line-height: $adf-pagination--height;
|
|
color: $alfresco-secondary-text-color;
|
|
|
|
&__block {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 12px;
|
|
border-right: $adf-pagination--border;
|
|
|
|
&:first-child {
|
|
flex: 1 1 auto;
|
|
padding-left: 24px;
|
|
}
|
|
|
|
&:last-child {
|
|
border-right-width: 0;
|
|
}
|
|
}
|
|
|
|
&__max-items {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
&__max-items, &__current-page {
|
|
margin-right: 5px;
|
|
|
|
&, & + button {
|
|
color: $alfresco-primary-text-color;
|
|
}
|
|
|
|
& + button {
|
|
margin-left: -10px;
|
|
}
|
|
}
|
|
|
|
&__previous-button, &__next-button {
|
|
margin: 0 5px;
|
|
}
|
|
|
|
button[md-icon-button] {
|
|
width: $adf-pagination--icon-button-size;
|
|
height: $adf-pagination--icon-button-size;
|
|
line-height: $adf-pagination--icon-button-size;
|
|
}
|
|
} |