[ACS-7531] - Search page (#3816)

This commit is contained in:
jacekpluta
2024-04-25 12:04:54 +02:00
committed by GitHub
parent fc2d68b28f
commit 538cf38176
8 changed files with 76 additions and 20 deletions

View File

@@ -32,7 +32,9 @@ import { NodeCommentsModule } from '@alfresco/adf-content-services';
standalone: true, standalone: true,
imports: [MatCardModule, NodeCommentsModule], imports: [MatCardModule, NodeCommentsModule],
selector: 'app-comments-tab', selector: 'app-comments-tab',
template: `<mat-card class="adf-comments-tab-container" appearance="raised"><adf-node-comments [readOnly]="!canUpdateNode" [nodeId]="node?.id"></adf-node-comments></mat-card>`, template: `<mat-card class="adf-comments-tab-container" appearance="raised"
><adf-node-comments [readOnly]="!canUpdateNode" [nodeId]="node?.id"></adf-node-comments
></mat-card>`,
styles: ['app-comments-tab mat-card { padding: 16px }'], styles: ['app-comments-tab mat-card { padding: 16px }'],
encapsulation: ViewEncapsulation.None, encapsulation: ViewEncapsulation.None,
styleUrls: ['./comments-tab.component.scss'] styleUrls: ['./comments-tab.component.scss']

View File

@@ -1,5 +1,3 @@
$top-margin: 12px;
.app-suffix-search-icon-wrapper { .app-suffix-search-icon-wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -19,12 +17,11 @@ $top-margin: 12px;
} }
.app-search-container { .app-search-container {
margin-top: -$top-margin; position: relative;
padding-top: 2px; top: -5px;
font-size: 16px; font-size: 16px;
padding-left: 15px; padding-left: 19px;
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 12px;
.app-input-form-field-input + span { .app-input-form-field-input + span {
cursor: text; cursor: text;
@@ -33,6 +30,7 @@ $top-margin: 12px;
.app-input-form-field { .app-input-form-field {
letter-spacing: -0.7px; letter-spacing: -0.7px;
font-size: 16px;
width: calc(100% - 56px); width: calc(100% - 56px);
&-input { &-input {
@@ -46,6 +44,12 @@ $top-margin: 12px;
display: none; display: none;
} }
} }
/* stylelint-disable selector-class-pattern */
.mat-mdc-form-field-icon-suffix {
position: relative;
right: -14px;
}
} }
.mat-mdc-form-field-flex { .mat-mdc-form-field-flex {
@@ -65,8 +69,7 @@ $top-margin: 12px;
} }
.app-search-button { .app-search-button {
top: 2px; left: -12px;
left: -8px;
&-icon { &-icon {
font-size: 24px; font-size: 24px;

View File

@@ -18,7 +18,7 @@
[placeholder]="'SEARCH.INPUT.PLACEHOLDER' | translate" [placeholder]="'SEARCH.INPUT.PLACEHOLDER' | translate"
/> />
<div matSuffix class="app-suffix-search-icon-wrapper"> <div matSuffix class="app-suffix-search-icon-wrapper app-icon-arrow">
<mat-icon>arrow_drop_down</mat-icon> <mat-icon>arrow_drop_down</mat-icon>
</div> </div>

View File

@@ -10,7 +10,7 @@ $top-margin: 12px;
max-width: $search-width; max-width: $search-width;
height: $search-height + $top-margin; height: $search-height + $top-margin;
.app-search-button { .app-search-button:is(button) {
width: 32px; width: 32px;
height: 32px; height: 32px;
margin-left: 0; margin-left: 0;
@@ -19,6 +19,10 @@ $top-margin: 12px;
} }
.app-input-form-field { .app-input-form-field {
.app-suffix-search-icon-wrapper.app-icon-arrow {
margin-top: 16px;
}
.app-suffix-search-icon-wrapper.app-close-button { .app-suffix-search-icon-wrapper.app-close-button {
height: 6px; height: 6px;
@@ -42,11 +46,19 @@ $top-margin: 12px;
/* stylelint-disable-next-line */ /* stylelint-disable-next-line */
.app-search-options-menu.mat-mdc-menu-panel { .app-search-options-menu.mat-mdc-menu-panel {
position: relative;
top: -5px;
margin-top: 2px;
background-color: var(--theme-dialog-background-color); background-color: var(--theme-dialog-background-color);
width: $search-width; width: $search-width;
max-width: unset; max-width: unset;
border-radius: $search-border-radius; border-radius: $search-border-radius;
margin-top: 3px;
/* stylelint-disable-next-line */
.mdc-list {
padding-top: 10px;
padding-right: 10px;
}
} }
.aca-search-input { .aca-search-input {
@@ -59,7 +71,7 @@ $top-margin: 12px;
padding-bottom: 26px; padding-bottom: 26px;
.app-search-container { .app-search-container {
margin: 0; margin: 10px 0 0 0;
} }
} }
@@ -70,19 +82,35 @@ $top-margin: 12px;
.app-search-options { .app-search-options {
color: var(--theme-text-color); color: var(--theme-text-color);
border-top: 1px solid var(--theme-divider-color); border-top: 1px solid var(--theme-divider-color);
padding: 20px 0; padding: 20px 10px;
font-size: 16px; font-size: 16px;
letter-spacing: -0.7px; letter-spacing: -0.7px;
margin-bottom: -8px; margin-bottom: -8px;
.app-search-options-checkbox label { /* stylelint-disable-next-line */
max-width: 155px; .mat-mdc-checkbox {
} .mdc-form-field {
.mdc-checkbox {
.mdc-checkbox__background {
height: 18px;
width: 18px;
}
}
}
}
&-checkbox { .app-search-options-checkbox label {
padding: 3px 24px 3px 19px; max-width: 155px;
font-size: 16px;
padding-left: 6px;
padding-top: 2px;
letter-spacing: -1px;
}
/* stylelint-disable-next-line no-descending-specificity */ &-checkbox {
padding: 3px 36px 3px 20px;
/* stylelint-disable-next-line no-descending-specificity */
label { label {
padding: 0 0 0 11px; padding: 0 0 0 11px;
overflow: hidden; overflow: hidden;

View File

@@ -30,8 +30,15 @@ aca-search-results {
border-bottom: 1px solid var(--theme-border-color); border-bottom: 1px solid var(--theme-border-color);
.aca-content__advanced-filters { .aca-content__advanced-filters {
/* stylelint-disable-next-line */
.mat-mdc-chip-action {
padding-left: 10px;
padding-right: 10px;
}
/* stylelint-disable-next-line */ /* stylelint-disable-next-line */
.mdc-evolution-chip__text-label { .mdc-evolution-chip__text-label {
padding-top: 4px;
color: var(--theme-selected-text-color); color: var(--theme-selected-text-color);
} }
@@ -39,6 +46,9 @@ aca-search-results {
.adf-search-filter-chip-tabbed { .adf-search-filter-chip-tabbed {
background-color: var(--theme-dropdown-color); background-color: var(--theme-dropdown-color);
color: var(--theme-selected-text-color); color: var(--theme-selected-text-color);
height: 32px;
margin-top: 0;
box-sizing: border-box;
&:hover, &:hover,
&:focus { &:focus {
@@ -137,6 +147,8 @@ aca-search-results {
} }
&__reset-action { &__reset-action {
margin-top: 5px;
margin-right: 2px;
line-height: 33px; line-height: 33px;
font-weight: lighter; font-weight: lighter;
} }

View File

@@ -124,6 +124,12 @@ mat-slide-toggle {
} }
} }
.mdc-evolution-chip__action.mat-mdc-chip-action {
.mdc-evolution-chip__graphic.mat-mdc-chip-graphic {
padding: 0;
}
}
.mdc-dialog { .mdc-dialog {
.mdc-dialog__title { .mdc-dialog__title {
margin-bottom: 20px; margin-bottom: 20px;

View File

@@ -1,6 +1,7 @@
<div class="aca-content-header"> <div class="aca-content-header">
<button *ngIf="(appNavNarMode$ | async) === 'collapsed'" <button *ngIf="(appNavNarMode$ | async) === 'collapsed'"
mat-icon-button mat-icon-button
class="aca-content-header-button"
(click)="toggleClick()" (click)="toggleClick()"
title="{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}"> title="{{'APP.TOOLTIPS.EXPAND_NAVIGATION' | translate}}">
<mat-icon>keyboard_double_arrow_right</mat-icon> <mat-icon>keyboard_double_arrow_right</mat-icon>

View File

@@ -9,6 +9,10 @@
padding: 0 24px; padding: 0 24px;
display: flex; display: flex;
align-items: center; align-items: center;
&-button {
margin-top: -1px;
}
} }
.aca-page-layout-header { .aca-page-layout-header {