[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:
Denys Vuika
2021-09-29 13:17:05 +01:00
committed by GitHub
parent 8113b9b10b
commit 6f968f7e4a
335 changed files with 7703 additions and 8339 deletions

View File

@@ -0,0 +1,93 @@
.adf-analytics-report-list {
.adf-activiti-filters__entry {
cursor: pointer;
}
.adf-activiti-filters__entry-icon {
position: relative;
top: 5px;
}
.adf-activiti-filters__label {
white-space: nowrap;
overflow: hidden;
}
.mat-nav-list .mat-list-item .mat-list-item-content {
line-height: 48px;
}
.adf-activiti-filters__entry.adf-active {
color: var(--theme-primary-color);
}
.adf-activiti-filters__entry.adf-active .adf-activiti-filters__entry-icon {
color: var(--theme-primary-color);
}
.adf-report-card-grids {
display: flex;
padding: 8px;
flex-flow: row wrap;
margin: 0 auto;
align-items: stretch;
}
.adf-report-card {
margin: 8px;
width: calc(33.3333333333% - 16px);
position: relative;
min-height: 200px;
overflow: hidden;
background-color: var(--theme-background-color);
display: flex;
flex-direction: column;
cursor: pointer;
&-logo {
position: absolute;
right: 20px;
top: 35px;
z-index: 6;
&-icon {
font-size: 70px;
color: var(--theme-accent-color);
width: 1em;
height: 1em;
display: inline-block;
}
}
&-title {
padding: 16px;
z-index: 7;
.adf-application-title {
font-size: 24px;
margin: 0;
}
}
&-content {
padding: 16px;
flex-grow: 1;
}
&-actions {
border-top: 1px solid var(--theme-fg-divider);
padding: 8px;
box-sizing: border-box;
height: 40px;
&-icon {
color: var(--theme-text-color);
&:hover {
color: var(--theme-text-bold-color);
}
}
}
}
}

View File

@@ -24,6 +24,7 @@ import { share } from 'rxjs/operators';
@Component({
selector: 'adf-analytics-report-list',
templateUrl: './analytics-report-list.component.html',
styleUrls: ['./analytics-report-list.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class AnalyticsReportListComponent implements OnInit {

View File

@@ -1,101 +0,0 @@
@mixin adf-analytics-report-list-theme($theme) {
$primary: map-get($theme, primary);
$accent: map-get($theme, accent );
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
.adf-analytics-report-list {
.adf-activiti-filters__entry {
cursor: pointer;
}
.adf-activiti-filters__entry-icon {
position: relative;
top: 5px;
}
.adf-activiti-filters__label {
white-space: nowrap;
overflow: hidden;
}
.mat-nav-list .mat-list-item .mat-list-item-content {
line-height: 48px;
}
.adf-activiti-filters__entry.adf-active {
color: mat-color($primary);
}
.adf-activiti-filters__entry.adf-active .adf-activiti-filters__entry-icon {
color: mat-color($primary);
}
.adf-report-card-grids {
display: flex;
padding: 8px;
flex-flow: row wrap;
margin: 0 auto;
align-items: stretch;
}
.adf-report-card {
margin: 8px;
width: calc(33.3333333333% - 16px);
position: relative;
min-height: 200px;
overflow: hidden;
background-color: mat-color($background, background);
display: flex;
flex-direction: column;
cursor: pointer;
&-logo {
position: absolute;
right: 20px;
top: 35px;
z-index: 6;
&-icon {
font-size: 70px;
color: mat-color($accent);
width: 1em;
height: 1em;
display: inline-block;
}
}
&-title {
padding: 16px;
z-index: 7;
.adf-application-title {
font-size: 24px;
margin: 0;
}
}
&-content {
padding: 16px;
flex-grow: 1;
}
&-actions {
border-top: 1px solid mat-color($foreground, divider);
padding: 8px;
box-sizing: border-box;
height: 40px;
&-icon {
color: mat-color($primary, 50);
&:hover {
color: mat-color($primary, 100);
}
}
}
}
}
}

View File

@@ -0,0 +1,102 @@
.adf-dropdown-widget {
width: 100%;
}
.adf-dropdown-widget__select {
width: 100%;
}
.adf-dropdown-widget__invalid .adf-dropdown-widget__select {
border-color: var(--theme-warn-color);
}
.adf-dropdown-widget__invalid .adf-dropdown-widget__label {
color: var(--theme-warn-color);
}
.adf-dropdown-widget__invalid .adf-dropdown-widget__label::after {
background-color: var(--theme-warn-color);
}
.adf-edit-report-title {
float: left;
font-size: 20px!important;
padding-top: 19px;
}
.adf-report-icon {
float: left;
padding: 5px 5px 0 0;
visibility: hidden;
}
.adf-report-title-container {
cursor: pointer;
width: 100%;
margin-bottom: 12px;
:hover .adf-report-icon {
color: var(--theme-primary-color);
visibility: visible;
}
}
.adf-report-title {
padding-top: 10px;
}
.adf-full-width-input {
width: 100%;
}
.adf-is-hide {
height: 0;
overflow: hidden;
transition: height 0.5s;
}
.adf-report-report-container {
border-bottom: solid 1px var(--theme-fg-divider);
padding-top: 10px;
.mat-toolbar {
border: 0 !important;
padding: 0 !important;
}
}
.adf-report-container-setting {
padding-left: 10px;
}
.adf-option_button_details {
padding-top: 20px;
}
.adf-export-message {
background-color: var(--theme-background-color);
}
.adf-save-export-input {
width: 100%;
}
.adf-delete-parameter {
position: absolute;
margin-left: 60%;
padding-top: 5px;
}
.adf-hide {
display: none;
}
.adf-report-dialog {
.mat-form-field {
width: 100%;
}
.mat-dialog-actions {
justify-content: flex-end;
}
}

View File

@@ -43,6 +43,7 @@ import { takeUntil } from 'rxjs/operators';
@Component({
selector: 'adf-analytics-report-parameters',
templateUrl: './analytics-report-parameters.component.html',
styleUrls: ['./analytics-report-parameters.component.scss'],
encapsulation: ViewEncapsulation.None
})
export class AnalyticsReportParametersComponent implements OnInit, OnChanges, OnDestroy, AfterContentChecked {

View File

@@ -1,110 +0,0 @@
@mixin adf-analytics-report-parameters-theme($theme) {
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);
$warn: map-get($theme, warn);
$foreground: map-get($theme, foreground);
$background: map-get($theme, background);
.adf-dropdown-widget {
width: 100%;
}
.adf-dropdown-widget__select {
width: 100%;
}
.adf-dropdown-widget__invalid .adf-dropdown-widget__select {
border-color: mat-color($warn);
}
.adf-dropdown-widget__invalid .adf-dropdown-widget__label {
color: mat-color($warn);
}
.adf-dropdown-widget__invalid .adf-dropdown-widget__label::after {
background-color: mat-color($warn);
}
.adf-edit-report-title {
float: left;
font-size: 20px!important;
padding-top: 19px;
}
.adf-report-icon {
float: left;
padding: 5px 5px 0 0;
visibility: hidden;
}
.adf-report-title-container {
cursor: pointer;
width: 100%;
margin-bottom: 12px;
:hover .adf-report-icon {
color: mat-color($primary);
visibility: visible;
}
}
.adf-report-title {
padding-top: 10px;
}
.adf-full-width-input {
width: 100%;
}
.adf-is-hide {
height: 0;
overflow: hidden;
transition: height 0.5s;
}
.adf-report-report-container {
border-bottom: solid 1px mat-color($foreground, divider);
padding-top: 10px;
.mat-toolbar {
border: 0 !important;
padding: 0 !important;
}
}
.adf-report-container-setting {
padding-left: 10px;
}
.adf-option_button_details {
padding-top: 20px;
}
.adf-export-message {
background-color: mat-color($background, background);
}
.adf-save-export-input {
width: 100%;
}
.adf-delete-parameter {
position: absolute;
margin-left: 60%;
padding-top: 5px;
}
.adf-hide {
display: none;
}
.adf-report-dialog {
.mat-form-field {
width: 100%;
}
.mat-dialog-actions {
justify-content: flex-end;
}
}
}

View File

@@ -1,7 +0,0 @@
@mixin adf-analytics-date-range-widget-theme($theme) {
$warn: map-get($theme, warn);
.adf-date-range-analytics-text-danger {
color: mat-color($warn);
}
}

View File

@@ -0,0 +1,3 @@
.adf-date-range-analytics-text-danger {
color: var(--theme-warn-color);
}

View File

@@ -29,6 +29,7 @@ import { takeUntil } from 'rxjs/operators';
@Component({
selector: 'adf-date-range-widget',
templateUrl: './date-range.widget.html',
styleUrls: ['./date-range.widget.scss'],
providers: [
{provide: DateAdapter, useClass: MomentDateAdapter},
{provide: MAT_DATE_FORMATS, useValue: MOMENT_DATE_FORMATS}],

View File

@@ -1,9 +0,0 @@
@import '../analytics-process/components/analytics-report-parameters.theme';
@import '../analytics-process/components/analytics-report-list.theme';
@import '../analytics-process/components/widgets/date-range/date-range.theme';
@mixin adf-insights-theme($theme) {
@include adf-analytics-report-list-theme($theme);
@include adf-analytics-date-range-widget-theme($theme);
@include adf-analytics-report-parameters-theme($theme);
}