mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
[ADF-1478] Make the pagination more responsive (#2315)
This commit is contained in:
parent
2fc9b63f5c
commit
45038c52ce
@ -1,4 +1,4 @@
|
|||||||
<div class="adf-pagination__block">
|
<div class="adf-pagination__block adf-pagination__range-block">
|
||||||
<span class="adf-pagination__range">
|
<span class="adf-pagination__range">
|
||||||
{{
|
{{
|
||||||
'CORE.PAGINATION.ITEMS_RANGE' | translate: {
|
'CORE.PAGINATION.ITEMS_RANGE' | translate: {
|
||||||
@ -9,7 +9,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="adf-pagination__block">
|
<div class="adf-pagination__block adf-pagination__perpage-block">
|
||||||
<span>
|
<span>
|
||||||
{{ 'CORE.PAGINATION.ITEMS_PER_PAGE' | translate }}
|
{{ 'CORE.PAGINATION.ITEMS_PER_PAGE' | translate }}
|
||||||
</span>
|
</span>
|
||||||
@ -32,7 +32,7 @@
|
|||||||
</md-menu>
|
</md-menu>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="adf-pagination__block">
|
<div class="adf-pagination__block adf-pagination__actualinfo-block">
|
||||||
<span class="adf-pagination__current-page">
|
<span class="adf-pagination__current-page">
|
||||||
{{ 'CORE.PAGINATION.CURRENT_PAGE' | translate: { number: current } }}
|
{{ 'CORE.PAGINATION.CURRENT_PAGE' | translate: { number: current } }}
|
||||||
</span>
|
</span>
|
||||||
@ -58,7 +58,7 @@
|
|||||||
</md-menu>
|
</md-menu>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="adf-pagination__block">
|
<div class="adf-pagination__block adf-pagination__controls-block">
|
||||||
<button
|
<button
|
||||||
class="adf-pagination__previous-button"
|
class="adf-pagination__previous-button"
|
||||||
md-icon-button
|
md-icon-button
|
||||||
|
@ -29,6 +29,48 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 500px) {
|
||||||
|
|
||||||
|
& {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
padding-bottom: 24px;
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__range-block.adf-pagination__block:first-child {
|
||||||
|
order: 1;
|
||||||
|
width: 50%;
|
||||||
|
flex: 0 0 auto;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-left: 16px;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__perpage-block {
|
||||||
|
order: 3;
|
||||||
|
width: 50%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-left: 16px;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__actualinfo-block {
|
||||||
|
order: 2;
|
||||||
|
width: 50%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-right: 16px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__controls-block {
|
||||||
|
order: 4;
|
||||||
|
width: 50%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding-right: 16px;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__max-items {
|
&__max-items {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user