[ADF-5406] SCSS and HTML template path fixes (#7063)

* remove useless mixin

* fix scss paths

* style fixes

* fix styles

* style fixes

* style fixes

* style fixes

* style fixes

* insights fixes

* css and template path fixes

* bug fixes
This commit is contained in:
Denys Vuika
2021-06-01 09:21:00 +01:00
committed by GitHub
parent 9e0000a307
commit e94b2f99bd
229 changed files with 557 additions and 934 deletions

View File

@@ -24,7 +24,6 @@ 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

@@ -43,7 +43,6 @@ 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

@@ -32,7 +32,6 @@ import { takeUntil } from 'rxjs/operators';
providers: [
{provide: DateAdapter, useClass: MomentDateAdapter},
{provide: MAT_DATE_FORMATS, useValue: MOMENT_DATE_FORMATS}],
styleUrls: ['./date-range.widget.scss'],
encapsulation: ViewEncapsulation.None
})
export class DateRangeWidgetComponent implements OnInit, OnDestroy {

View File

@@ -1,76 +1,73 @@
@mixin adf-diagram-tooltip-theme($theme) {
.adf {
&-diagram-tooltip {
transform: scale(0);
transform-origin: top center;
z-index: 999;
display: inline-block;
font-weight: 500;
line-height: 14px;
font-size: 14px;
max-width: 300px;
position: fixed;
top: -500px;
left: -500px;
text-align: left;
will-change: unset;
border: 1px solid #c5c5c5;
word-wrap: break-word;
}
&-diagram-tooltip.adf-is-active {
animation: tooltipAnimation 200ms cubic-bezier(0, 0, 0.2, 1) forwards;
}
&-diagram-tooltip-header {
background-color: rgba(43, 65, 79, 0.95);
color: #fff;
padding: 8px;
font-weight: bold;
min-width: 200px;
line-height: 20px;
}
&-diagram-tooltip-body {
color: #4a4a4a;
background-color: rgba(255, 255, 255, 0.95);
}
&-diagram-tooltip-body > div {
padding: 4px 8px;
}
&-diagram-tooltip-body > div:first-child {
padding-top: 8px;
}
&-diagram-tooltip-body > div:last-child {
padding-bottom: 8px;
}
&-diagram-propertyName {
font-weight: bold;
margin-right: 5px;
}
&-diagram-propertyValue {
font-style: italic;
}
.adf {
&-diagram-tooltip {
transform: scale(0);
transform-origin: top center;
z-index: 999;
display: inline-block;
font-weight: 500;
line-height: 14px;
font-size: 14px;
max-width: 300px;
position: fixed;
top: -500px;
left: -500px;
text-align: left;
will-change: unset;
border: 1px solid #c5c5c5;
word-wrap: break-word;
}
@keyframes tooltipAnimation {
0% {
transform: scale(0);
opacity: 0;
}
50% {
transform: scale(0.99);
}
100% {
transform: scale(1);
opacity: 1;
visibility: visible;
}
&-diagram-tooltip.adf-is-active {
animation: tooltipAnimation 200ms cubic-bezier(0, 0, 0.2, 1) forwards;
}
&-diagram-tooltip-header {
background-color: rgba(43, 65, 79, 0.95);
color: #fff;
padding: 8px;
font-weight: bold;
min-width: 200px;
line-height: 20px;
}
&-diagram-tooltip-body {
color: #4a4a4a;
background-color: rgba(255, 255, 255, 0.95);
}
&-diagram-tooltip-body > div {
padding: 4px 8px;
}
&-diagram-tooltip-body > div:first-child {
padding-top: 8px;
}
&-diagram-tooltip-body > div:last-child {
padding-bottom: 8px;
}
&-diagram-propertyName {
font-weight: bold;
margin-right: 5px;
}
&-diagram-propertyValue {
font-style: italic;
}
}
@keyframes tooltipAnimation {
0% {
transform: scale(0);
opacity: 0;
}
50% {
transform: scale(0.99);
}
100% {
transform: scale(1);
opacity: 1;
visibility: visible;
}
}

View File

@@ -1,10 +1,8 @@
@import '../diagram/components/tooltip/diagram-tooltip.component';
@import '../analytics-process/components/analytics-report-parameters.component';
@import '../analytics-process/components/analytics-report-list.component';
@import '../analytics-process/components/widgets/date-range/date-range.widget';
@mixin adf-insights-theme($theme) {
@include adf-diagram-tooltip-theme($theme);
@include adf-analytics-report-list-theme($theme);
@include adf-analytics-date-range-widget-theme($theme);
@include adf-analytics-report-parameters-theme($theme);