replace legacy component
This commit is contained in:
@@ -13,9 +13,13 @@
|
||||
// If you specify typography styles for the components you use elsewhere, you should delete this line.
|
||||
// If you don't need the default component typographies but still want the hierarchy styles,
|
||||
// you can delete this line and instead use:
|
||||
// `@include mat.legacy-typography-hierarchy(mat.define-legacy-typography-config());`
|
||||
// `@include mat.legacy-typography-hierarchy(mat.define-typography-config());`
|
||||
/* TODO(mdc-migration): Remove all-legacy-component-typographies once all legacy components are migrated*/
|
||||
@include mat.all-legacy-component-typographies();
|
||||
@include mat.all-component-typographies();
|
||||
/* TODO(mdc-migration): Remove legacy-core once all legacy components are migrated*/
|
||||
@include mat.legacy-core();
|
||||
@include mat.core();
|
||||
|
||||
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
||||
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
||||
@@ -33,13 +37,17 @@ $candy-app-theme: mat.define-light-theme((
|
||||
primary: $candy-app-primary,
|
||||
accent: $candy-app-accent,
|
||||
warn: $candy-app-warn,
|
||||
)
|
||||
),
|
||||
//typography: mat.define-typography-config(),
|
||||
density: -1,
|
||||
));
|
||||
|
||||
// Include theme styles for core and each component used in your app.
|
||||
// Alternatively, you can import and @include the theme mixins for each component
|
||||
// that you are using.
|
||||
/* TODO(mdc-migration): Remove all-legacy-component-themes once all legacy components are migrated*/
|
||||
@include mat.all-legacy-component-themes($candy-app-theme);
|
||||
@include mat.all-component-themes($candy-app-theme);
|
||||
|
||||
|
||||
|
||||
@@ -63,6 +71,14 @@ grey
|
||||
*/
|
||||
$background-color: #CBD7F4;
|
||||
|
||||
.mat-mdc-option span.mdc-list-item__primary-text,
|
||||
.mdc-list-item__primary-text {
|
||||
font-size: 1rem;
|
||||
}
|
||||
mat-form-field .mat-mdc-option span.mdc-list-item__primary-text{
|
||||
--mdc-typography-subtitle1-font-size: 14px;
|
||||
}
|
||||
|
||||
*, body {
|
||||
font-family: Arial;
|
||||
font-size: 14px;
|
||||
@@ -86,9 +102,6 @@ h2 {
|
||||
height: 1em;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
.mat-button .mat-button-wrapper .icon-inline {
|
||||
vertical-align: text-top;
|
||||
}
|
||||
|
||||
button[disabled] .icon-inline {
|
||||
opacity: 0.5;
|
||||
@@ -128,18 +141,8 @@ button[disabled] .icon-inline {
|
||||
height: 1.5em;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
.mat-option-disabled .icon-select {
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
mat-option.mat-option {
|
||||
height: 2em;
|
||||
line-height: 2em;
|
||||
}
|
||||
|
||||
mat-option.mat-option.mat-active {
|
||||
background-color: #ccc;
|
||||
}
|
||||
|
||||
a ,a:visited {
|
||||
color: blue;
|
||||
@@ -169,34 +172,24 @@ a.external-link:after {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
body .mat-select-panel, body .mat-autocomplete-panel {
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
mat-form-field {
|
||||
mat-form-field.pdb-form-full-width {
|
||||
width: 100%;
|
||||
margin-right: 1ex;
|
||||
}
|
||||
mat-form-field:last-child {
|
||||
margin-right: 0ex;
|
||||
}
|
||||
mat-form-field.pdb-form-number {
|
||||
width: 3.5em;
|
||||
width: 5.5em;
|
||||
}
|
||||
mat-form-field.pdb-form-number-long {
|
||||
width: 7em;
|
||||
}
|
||||
.pdb-form-icon-small {
|
||||
display: inline-block;
|
||||
width: 2em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
mat-form-field.pdb-form-mid {
|
||||
width: 7.5em;
|
||||
width: 9.5em;
|
||||
}
|
||||
mat-form-field.pdb-form-wide {
|
||||
width: 10em;
|
||||
}
|
||||
.mat-mdc-form-field-subscript-wrapper {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.errorPanel {
|
||||
padding: 1ex;
|
||||
|
||||
Reference in New Issue
Block a user