mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-5637] Remove SCSS mixins and use CSS variables (#7250)
* remove default-class mixin and use regular import * cleanup colors * remove variables file, fix bugs in animations * proper ordering of imports, core css vars * cleanup snackbar and material themes * tags component * login component styles * app login * toolbar component styles * breadcrumb styles * dropdown breadcrumb * app layout component * demo shell: files component * aspect list styles * content metadata styles * node selector * name location cell * node share dialog * content type dialog * folder dialog * document list * datatable theme * pagination theme * viewer theme * viewer theme * user-info theme * container widget * dynamic table theme * form widgets * form theme * form renderer * sidebar menu * header theme * info drawer theme * comment list * commens and layout container * sidenav layout * empty content * error content * clipboard theme * search input * tooltip card and notification history * card view theme * remove unused keys * add permission dialog * search and permission dialogs * version comparison and column themes * upload drag area and cleanup references * remove the need for content styles * insight components * cleanup insights theme * process components * process components * process cloud themes * cleanup unsed imports * cleanup mixins * update build scripts * test fixes * remove fdescribe * css fixes * update unit tests
This commit is contained in:
87
lib/core/pagination/pagination.component.scss
Normal file
87
lib/core/pagination/pagination.component.scss
Normal file
@@ -0,0 +1,87 @@
|
||||
@import '~@angular/flex-layout/mq';
|
||||
|
||||
$adf-pagination--height: 48px !default;
|
||||
$adf-pagination--icon-button-size: 32px !default;
|
||||
$adf-pagination--border: none !default;
|
||||
$adf-pagination__empty--height: 48px !default;
|
||||
$adf-pagination__empty--border: none !default;
|
||||
|
||||
.adf-pagination {
|
||||
display: flex;
|
||||
border-top: $adf-pagination--border;
|
||||
height: $adf-pagination--height;
|
||||
line-height: 20px;
|
||||
color: var(--theme-text-fg-color);
|
||||
|
||||
&__block {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 8px;
|
||||
border-right: $adf-pagination--border;
|
||||
|
||||
&:first-child {
|
||||
flex: 1 1 auto;
|
||||
padding-left: 24px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-right-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include layout-bp(lt-sm) {
|
||||
& {
|
||||
flex-wrap: wrap;
|
||||
padding: 0 16px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
&__range-block,
|
||||
&__perpage-block {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__actualinfo-block {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
&__controls-block {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__max-items {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
&__max-items, &__current-page {
|
||||
margin-right: 5px;
|
||||
|
||||
&, & + button {
|
||||
color: var(--theme-text-fg-color);
|
||||
}
|
||||
|
||||
& + button {
|
||||
margin-left: -10px;
|
||||
}
|
||||
}
|
||||
|
||||
&__previous-button, &__next-button {
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
&__page-selector {
|
||||
max-height: 250px !important;
|
||||
}
|
||||
|
||||
&.adf-pagination__empty {
|
||||
border-top: $adf-pagination__empty--border;
|
||||
height: $adf-pagination__empty--height;
|
||||
}
|
||||
|
||||
button[mat-icon-button] {
|
||||
width: $adf-pagination--icon-button-size;
|
||||
height: $adf-pagination--icon-button-size;
|
||||
line-height: $adf-pagination--icon-button-size;
|
||||
}
|
||||
}
|
@@ -34,6 +34,7 @@ export type PaginationAction =
|
||||
selector: 'adf-pagination',
|
||||
host: { 'class': 'adf-pagination' },
|
||||
templateUrl: './pagination.component.html',
|
||||
styleUrls: ['./pagination.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
|
@@ -1,89 +0,0 @@
|
||||
@mixin adf-pagination-theme($theme) {
|
||||
$foreground: map-get($theme, foreground);
|
||||
|
||||
$adf-pagination--height: 48px !default;
|
||||
$adf-pagination--icon-button-size: 32px !default;
|
||||
$adf-pagination--border: none !default;
|
||||
$adf-pagination__empty--height: 48px !default;
|
||||
$adf-pagination__empty--border: none !default;
|
||||
|
||||
.adf-pagination {
|
||||
display: flex;
|
||||
border-top: $adf-pagination--border;
|
||||
height: $adf-pagination--height;
|
||||
line-height: 20px;
|
||||
color: mat-color($foreground, text);
|
||||
|
||||
&__block {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 8px;
|
||||
border-right: $adf-pagination--border;
|
||||
|
||||
&:first-child {
|
||||
flex: 1 1 auto;
|
||||
padding-left: 24px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-right-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include layout-bp(lt-sm) {
|
||||
& {
|
||||
flex-wrap: wrap;
|
||||
padding: 0 16px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
&__range-block,
|
||||
&__perpage-block {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__actualinfo-block {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
&__controls-block {
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__max-items {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
&__max-items, &__current-page {
|
||||
margin-right: 5px;
|
||||
|
||||
&, & + button {
|
||||
color: mat-color($foreground, text);
|
||||
}
|
||||
|
||||
& + button {
|
||||
margin-left: -10px;
|
||||
}
|
||||
}
|
||||
|
||||
&__previous-button, &__next-button {
|
||||
margin: 0 5px;
|
||||
}
|
||||
|
||||
&__page-selector {
|
||||
max-height: 250px !important;
|
||||
}
|
||||
|
||||
&.adf-pagination__empty {
|
||||
border-top: $adf-pagination__empty--border;
|
||||
height: $adf-pagination__empty--height;
|
||||
}
|
||||
|
||||
button[mat-icon-button] {
|
||||
width: $adf-pagination--icon-button-size;
|
||||
height: $adf-pagination--icon-button-size;
|
||||
line-height: $adf-pagination--icon-button-size;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user