@ng-matero/extensions 14.6.2 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/_index.scss +3 -4
- package/_theming.scss +3 -4
- package/alert/_alert-theme.import.scss +1 -1
- package/alert/_alert-theme.scss +2 -2
- package/alert/{alert.module.d.ts → alert-module.d.ts} +2 -2
- package/alert/{alert.component.d.ts → alert.d.ts} +4 -4
- package/alert/{alert.component.scss → alert.scss} +0 -0
- package/alert/public-api.d.ts +2 -2
- package/button/button-loading.d.ts +25 -0
- package/button/button-loading.scss +5 -4
- package/button/{button.module.d.ts → button-module.d.ts} +2 -2
- package/button/public-api.d.ts +2 -2
- package/checkbox-group/{checkbox-group.module.d.ts → checkbox-group-module.d.ts} +2 -2
- package/checkbox-group/{checkbox-group.component.d.ts → checkbox-group.d.ts} +4 -4
- package/checkbox-group/checkbox-group.scss +0 -0
- package/checkbox-group/{checkbox-group.interface.d.ts → interfaces.d.ts} +0 -0
- package/checkbox-group/public-api.d.ts +3 -3
- package/colorpicker/_colorpicker-theme.import.scss +1 -1
- package/colorpicker/_colorpicker-theme.scss +2 -2
- package/colorpicker/colorpicker-input.d.ts +1 -1
- package/colorpicker/colorpicker-toggle.d.ts +8 -6
- package/colorpicker/colorpicker.d.ts +2 -2
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +1 -1
- package/column-resize/column-resize-directives/column-resize.d.ts +1 -1
- package/column-resize/column-resize.d.ts +1 -1
- package/column-resize/overlay-handle.d.ts +1 -1
- package/column-resize/resizable.d.ts +1 -1
- package/core/color/_all-color.scss +28 -0
- package/core/density/_all-density.scss +24 -0
- package/core/style/_elevation.scss +20 -126
- package/core/style/_private.scss +9 -18
- package/core/style/_variables.scss +1 -1
- package/core/style/_vendor-prefixes.scss +8 -21
- package/core/theming/_all-theme.scss +38 -0
- package/core/theming/_palette.scss +1 -1
- package/core/theming/_theming.scss +55 -22
- package/core/typography/_typography.scss +195 -17
- package/datetimepicker/_datetimepicker-theme.import.scss +1 -1
- package/datetimepicker/_datetimepicker-theme.scss +3 -4
- package/datetimepicker/calendar-body.d.ts +1 -1
- package/datetimepicker/calendar.d.ts +1 -1
- package/datetimepicker/calendar.scss +3 -0
- package/datetimepicker/clock.d.ts +1 -1
- package/datetimepicker/datetimepicker-input.d.ts +1 -1
- package/datetimepicker/datetimepicker-toggle.d.ts +5 -5
- package/datetimepicker/datetimepicker.d.ts +2 -2
- package/datetimepicker/month-view.d.ts +1 -1
- package/datetimepicker/multi-year-view.d.ts +1 -1
- package/datetimepicker/time.d.ts +2 -2
- package/datetimepicker/time.scss +9 -0
- package/datetimepicker/year-view.d.ts +1 -1
- package/dialog/dialog-container.d.ts +12 -0
- package/dialog/dialog-container.scss +48 -0
- package/dialog/{dialog.module.d.ts → dialog-module.d.ts} +2 -2
- package/dialog/public-api.d.ts +2 -2
- package/drawer/_drawer-theme.import.scss +1 -1
- package/drawer/_drawer-theme.scss +2 -2
- package/drawer/drawer-container.d.ts +1 -1
- package/esm2020/alert/alert-module.mjs +18 -0
- package/esm2020/alert/alert.mjs +52 -0
- package/esm2020/alert/public-api.mjs +3 -3
- package/esm2020/button/button-loading.mjs +76 -0
- package/esm2020/button/button-module.mjs +20 -0
- package/esm2020/button/public-api.mjs +3 -3
- package/esm2020/checkbox-group/{checkbox-group.module.mjs → checkbox-group-module.mjs} +8 -8
- package/esm2020/checkbox-group/checkbox-group.mjs +234 -0
- package/esm2020/checkbox-group/interfaces.mjs +2 -0
- package/esm2020/checkbox-group/public-api.mjs +4 -4
- package/esm2020/colorpicker/colorpicker-input.mjs +3 -3
- package/esm2020/colorpicker/colorpicker-module.mjs +4 -4
- package/esm2020/colorpicker/colorpicker-toggle.mjs +33 -22
- package/esm2020/colorpicker/colorpicker.mjs +6 -6
- package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2020/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2020/column-resize/column-resize-module.mjs +4 -4
- package/esm2020/column-resize/column-resize-notifier.mjs +7 -7
- package/esm2020/column-resize/column-resize.mjs +3 -3
- package/esm2020/column-resize/column-size-store.mjs +3 -3
- package/esm2020/column-resize/event-dispatcher.mjs +3 -3
- package/esm2020/column-resize/overlay-handle.mjs +3 -3
- package/esm2020/column-resize/resizable.mjs +3 -3
- package/esm2020/column-resize/resize-strategy.mjs +9 -9
- package/esm2020/core/datetime/datetime.module.mjs +8 -8
- package/esm2020/core/datetime/native-datetime-adapter.mjs +3 -3
- package/esm2020/core/pipes/pipes.module.mjs +4 -4
- package/esm2020/core/pipes/to-observable.pipe.mjs +3 -3
- package/esm2020/datetimepicker/calendar-body.mjs +3 -3
- package/esm2020/datetimepicker/calendar.mjs +5 -5
- package/esm2020/datetimepicker/clock.mjs +4 -4
- package/esm2020/datetimepicker/datetimepicker-input.mjs +3 -3
- package/esm2020/datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2020/datetimepicker/datetimepicker-module.mjs +4 -4
- package/esm2020/datetimepicker/datetimepicker-toggle.mjs +27 -20
- package/esm2020/datetimepicker/datetimepicker.mjs +6 -6
- package/esm2020/datetimepicker/month-view.mjs +3 -3
- package/esm2020/datetimepicker/multi-year-view.mjs +3 -3
- package/esm2020/datetimepicker/time.mjs +8 -8
- package/esm2020/datetimepicker/year-view.mjs +3 -3
- package/esm2020/dialog/dialog-container.mjs +35 -0
- package/esm2020/dialog/{dialog.module.mjs → dialog-module.mjs} +8 -8
- package/esm2020/dialog/dialog.mjs +7 -7
- package/esm2020/dialog/public-api.mjs +3 -3
- package/esm2020/drawer/drawer-container.mjs +3 -3
- package/esm2020/drawer/drawer-module.mjs +4 -4
- package/esm2020/drawer/drawer.mjs +4 -4
- package/esm2020/grid/cell.mjs +130 -0
- package/esm2020/grid/column-menu.mjs +112 -0
- package/esm2020/grid/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2020/grid/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2020/grid/column-resize/column-resize-module.mjs +8 -8
- package/esm2020/grid/column-resize/overlay-handle.mjs +3 -3
- package/esm2020/grid/column-resize/resizable-directives/resizable.mjs +3 -3
- package/esm2020/grid/column-resize/resize-strategy.mjs +3 -3
- package/esm2020/grid/expansion-toggle.mjs +64 -0
- package/esm2020/grid/grid-module.mjs +115 -0
- package/esm2020/grid/grid-utils.mjs +44 -0
- package/esm2020/grid/grid.mjs +619 -0
- package/esm2020/grid/interfaces.mjs +2 -0
- package/esm2020/grid/public-api.mjs +8 -8
- package/esm2020/loader/loader-module.mjs +20 -0
- package/esm2020/loader/loader.mjs +69 -0
- package/esm2020/loader/public-api.mjs +3 -3
- package/esm2020/popover/popover-content.mjs +6 -6
- package/esm2020/popover/popover-module.mjs +4 -4
- package/esm2020/popover/popover-target.mjs +3 -3
- package/esm2020/popover/popover-trigger.mjs +3 -3
- package/esm2020/popover/popover.mjs +3 -3
- package/esm2020/progress/progress-module.mjs +18 -0
- package/esm2020/progress/progress.mjs +55 -0
- package/esm2020/progress/public-api.mjs +3 -3
- package/esm2020/select/option.mjs +57 -0
- package/esm2020/select/public-api.mjs +5 -5
- package/esm2020/select/select-module.mjs +74 -0
- package/esm2020/select/select.mjs +550 -0
- package/esm2020/select/templates.mjs +124 -0
- package/esm2020/slider/slider-module.mjs +4 -4
- package/esm2020/slider/slider.mjs +4 -4
- package/esm2020/split/interfaces.mjs +2 -0
- package/esm2020/split/public-api.mjs +5 -5
- package/esm2020/split/split-module.mjs +19 -0
- package/esm2020/split/split-pane.mjs +149 -0
- package/esm2020/split/split.mjs +619 -0
- package/esm2020/split/utils.mjs +4 -4
- package/esm2020/tooltip/tooltip-module.mjs +4 -4
- package/esm2020/tooltip/tooltip.mjs +6 -6
- package/fesm2015/mtxAlert.mjs +12 -11
- package/fesm2015/mtxAlert.mjs.map +1 -1
- package/fesm2015/mtxButton.mjs +31 -31
- package/fesm2015/mtxButton.mjs.map +1 -1
- package/fesm2015/mtxCheckboxGroup.mjs +16 -15
- package/fesm2015/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2015/mtxColorpicker.mjs +45 -31
- package/fesm2015/mtxColorpicker.mjs.map +1 -1
- package/fesm2015/mtxColumnResize.mjs +41 -40
- package/fesm2015/mtxColumnResize.mjs.map +1 -1
- package/fesm2015/mtxCore.mjs +19 -18
- package/fesm2015/mtxDatetimepicker.mjs +72 -62
- package/fesm2015/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2015/mtxDialog.mjs +20 -17
- package/fesm2015/mtxDialog.mjs.map +1 -1
- package/fesm2015/mtxDrawer.mjs +11 -10
- package/fesm2015/mtxDrawer.mjs.map +1 -1
- package/fesm2015/mtxGrid.mjs +90 -90
- package/fesm2015/mtxGrid.mjs.map +1 -1
- package/fesm2015/mtxLoader.mjs +13 -12
- package/fesm2015/mtxLoader.mjs.map +1 -1
- package/fesm2015/mtxPopover.mjs +20 -19
- package/fesm2015/mtxProgress.mjs +12 -11
- package/fesm2015/mtxProgress.mjs.map +1 -1
- package/fesm2015/mtxSelect.mjs +122 -121
- package/fesm2015/mtxSelect.mjs.map +1 -1
- package/fesm2015/mtxSlider.mjs +9 -8
- package/fesm2015/mtxSlider.mjs.map +1 -1
- package/fesm2015/mtxSplit.mjs +19 -18
- package/fesm2015/mtxSplit.mjs.map +1 -1
- package/fesm2015/mtxTooltip.mjs +11 -10
- package/fesm2015/ng-matero-extensions.mjs +1 -0
- package/fesm2020/mtxAlert.mjs +12 -11
- package/fesm2020/mtxAlert.mjs.map +1 -1
- package/fesm2020/mtxButton.mjs +31 -31
- package/fesm2020/mtxButton.mjs.map +1 -1
- package/fesm2020/mtxCheckboxGroup.mjs +16 -15
- package/fesm2020/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2020/mtxColorpicker.mjs +43 -31
- package/fesm2020/mtxColorpicker.mjs.map +1 -1
- package/fesm2020/mtxColumnResize.mjs +41 -40
- package/fesm2020/mtxColumnResize.mjs.map +1 -1
- package/fesm2020/mtxCore.mjs +19 -18
- package/fesm2020/mtxDatetimepicker.mjs +70 -62
- package/fesm2020/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2020/mtxDialog.mjs +20 -17
- package/fesm2020/mtxDialog.mjs.map +1 -1
- package/fesm2020/mtxDrawer.mjs +11 -10
- package/fesm2020/mtxDrawer.mjs.map +1 -1
- package/fesm2020/mtxGrid.mjs +90 -90
- package/fesm2020/mtxGrid.mjs.map +1 -1
- package/fesm2020/mtxLoader.mjs +13 -12
- package/fesm2020/mtxLoader.mjs.map +1 -1
- package/fesm2020/mtxPopover.mjs +20 -19
- package/fesm2020/mtxProgress.mjs +12 -11
- package/fesm2020/mtxProgress.mjs.map +1 -1
- package/fesm2020/mtxSelect.mjs +122 -121
- package/fesm2020/mtxSelect.mjs.map +1 -1
- package/fesm2020/mtxSlider.mjs +9 -8
- package/fesm2020/mtxSlider.mjs.map +1 -1
- package/fesm2020/mtxSplit.mjs +19 -18
- package/fesm2020/mtxSplit.mjs.map +1 -1
- package/fesm2020/mtxTooltip.mjs +11 -10
- package/fesm2020/ng-matero-extensions.mjs +1 -0
- package/grid/_grid-theme.import.scss +1 -1
- package/grid/_grid-theme.scss +16 -16
- package/grid/{cell.component.d.ts → cell.d.ts} +8 -8
- package/grid/{cell.component.scss → cell.scss} +0 -0
- package/grid/{column-menu.component.d.ts → column-menu.d.ts} +4 -4
- package/grid/{column-menu.component.scss → column-menu.scss} +6 -10
- package/grid/column-resize/_column-resize.scss +9 -9
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +1 -1
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +1 -1
- package/grid/column-resize/overlay-handle.d.ts +1 -1
- package/grid/column-resize/resizable-directives/resizable.d.ts +1 -1
- package/grid/{expansion-toggle.directive.d.ts → expansion-toggle.d.ts} +4 -4
- package/grid/{grid.module.d.ts → grid-module.d.ts} +5 -5
- package/grid/{grid.service.d.ts → grid-utils.d.ts} +4 -4
- package/grid/{grid.component.d.ts → grid.d.ts} +18 -17
- package/grid/{grid.component.scss → grid.scss} +17 -29
- package/grid/{grid.interface.d.ts → interfaces.d.ts} +0 -6
- package/grid/public-api.d.ts +7 -7
- package/loader/_loader-theme.import.scss +1 -1
- package/loader/_loader-theme.scss +2 -2
- package/loader/{loader.module.d.ts → loader-module.d.ts} +2 -2
- package/loader/{loader.component.d.ts → loader.d.ts} +3 -3
- package/loader/{loader.component.scss → loader.scss} +2 -2
- package/loader/public-api.d.ts +2 -2
- package/package.json +8 -24
- package/popover/_popover-theme.import.scss +1 -1
- package/popover/_popover-theme.scss +2 -2
- package/popover/popover-content.d.ts +2 -2
- package/popover/popover-target.d.ts +1 -1
- package/popover/popover-trigger.d.ts +1 -1
- package/popover/popover.d.ts +1 -1
- package/progress/_progress-theme.import.scss +1 -1
- package/progress/_progress-theme.scss +2 -2
- package/progress/{progress.module.d.ts → progress-module.d.ts} +2 -2
- package/progress/{progress.component.d.ts → progress.d.ts} +3 -3
- package/progress/{progress.component.scss → progress.scss} +0 -0
- package/progress/public-api.d.ts +2 -2
- package/select/_select-density.scss +68 -0
- package/select/_select-theme.import.scss +2 -1
- package/select/_select-theme.scss +6 -2
- package/select/{option.component.d.ts → option.d.ts} +3 -3
- package/select/public-api.d.ts +4 -4
- package/select/select-module.d.ts +12 -0
- package/select/{select.component.d.ts → select.d.ts} +5 -5
- package/select/{select.component.scss → select.scss} +14 -22
- package/select/{templates.directive.d.ts → templates.d.ts} +33 -33
- package/slider/_slider-theme.import.scss +1 -1
- package/slider/_slider-theme.scss +3 -4
- package/slider/slider.d.ts +1 -1
- package/slider/slider.scss +3 -3
- package/split/_split-theme.import.scss +1 -1
- package/split/_split-theme.scss +2 -2
- package/split/{interface.d.ts → interfaces.d.ts} +2 -2
- package/split/public-api.d.ts +4 -4
- package/split/{split.module.d.ts → split-module.d.ts} +3 -3
- package/split/{split-pane.directive.d.ts → split-pane.d.ts} +5 -5
- package/split/{split.component.d.ts → split.d.ts} +11 -11
- package/split/{split.component.scss → split.scss} +0 -0
- package/split/utils.d.ts +4 -1
- package/tooltip/_tooltip-theme.import.scss +1 -1
- package/tooltip/_tooltip-theme.scss +3 -4
- package/tooltip/tooltip.d.ts +2 -2
- package/_all-color.scss +0 -47
- package/_all-theme.scss +0 -47
- package/button/button-loading.directive.d.ts +0 -26
- package/checkbox-group/checkbox-group.component.scss +0 -12
- package/core/density/private/_compatibility.scss +0 -74
- package/dialog/dialog.component.d.ts +0 -12
- package/dialog/dialog.component.scss +0 -27
- package/esm2020/alert/alert.component.mjs +0 -52
- package/esm2020/alert/alert.module.mjs +0 -18
- package/esm2020/button/button-loading.directive.mjs +0 -77
- package/esm2020/button/button.module.mjs +0 -20
- package/esm2020/checkbox-group/checkbox-group.component.mjs +0 -234
- package/esm2020/checkbox-group/checkbox-group.interface.mjs +0 -2
- package/esm2020/dialog/dialog.component.mjs +0 -33
- package/esm2020/form-group/form-group.component.mjs +0 -37
- package/esm2020/form-group/form-group.module.mjs +0 -18
- package/esm2020/form-group/mtxFormGroup.mjs +0 -5
- package/esm2020/form-group/public-api.mjs +0 -3
- package/esm2020/grid/cell.component.mjs +0 -130
- package/esm2020/grid/column-menu.component.mjs +0 -112
- package/esm2020/grid/expansion-toggle.directive.mjs +0 -64
- package/esm2020/grid/grid.component.mjs +0 -619
- package/esm2020/grid/grid.interface.mjs +0 -2
- package/esm2020/grid/grid.module.mjs +0 -115
- package/esm2020/grid/grid.service.mjs +0 -44
- package/esm2020/loader/loader.component.mjs +0 -69
- package/esm2020/loader/loader.module.mjs +0 -20
- package/esm2020/progress/progress.component.mjs +0 -55
- package/esm2020/progress/progress.module.mjs +0 -18
- package/esm2020/select/option.component.mjs +0 -57
- package/esm2020/select/select.component.mjs +0 -549
- package/esm2020/select/select.module.mjs +0 -74
- package/esm2020/select/templates.directive.mjs +0 -124
- package/esm2020/split/interface.mjs +0 -2
- package/esm2020/split/split-pane.directive.mjs +0 -149
- package/esm2020/split/split.component.mjs +0 -619
- package/esm2020/split/split.module.mjs +0 -19
- package/esm2020/text3d/mtxText3d.mjs +0 -5
- package/esm2020/text3d/public-api.mjs +0 -3
- package/esm2020/text3d/text3d.component.mjs +0 -45
- package/esm2020/text3d/text3d.module.mjs +0 -18
- package/fesm2015/mtxFormGroup.mjs +0 -59
- package/fesm2015/mtxFormGroup.mjs.map +0 -1
- package/fesm2015/mtxText3d.mjs +0 -67
- package/fesm2015/mtxText3d.mjs.map +0 -1
- package/fesm2020/mtxFormGroup.mjs +0 -59
- package/fesm2020/mtxFormGroup.mjs.map +0 -1
- package/fesm2020/mtxText3d.mjs +0 -67
- package/fesm2020/mtxText3d.mjs.map +0 -1
- package/form-group/_form-group-theme.import.scss +0 -2
- package/form-group/_form-group-theme.scss +0 -95
- package/form-group/form-group.component.d.ts +0 -15
- package/form-group/form-group.component.scss +0 -103
- package/form-group/form-group.module.d.ts +0 -8
- package/form-group/index.d.ts +0 -5
- package/form-group/public-api.d.ts +0 -2
- package/select/select.module.d.ts +0 -12
- package/text3d/_text3d-theme.import.scss +0 -2
- package/text3d/_text3d-theme.scss +0 -48
- package/text3d/index.d.ts +0 -5
- package/text3d/public-api.d.ts +0 -2
- package/text3d/text3d.component.d.ts +0 -14
- package/text3d/text3d.component.scss +0 -21
- package/text3d/text3d.module.d.ts +0 -8
package/core/style/_private.scss
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use './elevation';
|
|
3
3
|
|
|
4
|
-
@mixin private-theme-elevation($zValue, $config
|
|
4
|
+
@mixin private-theme-elevation($zValue, $config) {
|
|
5
5
|
$foreground: map.get($config, foreground);
|
|
6
6
|
$elevation-color: map.get($foreground, elevation);
|
|
7
7
|
$elevation-color-or-default: if($elevation-color == null, elevation.$color, $elevation-color);
|
|
8
8
|
|
|
9
|
-
@include elevation.elevation($zValue, $elevation-color-or-default
|
|
9
|
+
@include elevation.elevation($zValue, $elevation-color-or-default);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
@mixin private-theme-overridable-elevation($zValue, $config
|
|
12
|
+
@mixin private-theme-overridable-elevation($zValue, $config) {
|
|
13
13
|
$foreground: map.get($config, foreground);
|
|
14
14
|
$elevation-color: map.get($foreground, elevation);
|
|
15
15
|
$elevation-color-or-default: if($elevation-color == null, elevation.$color, $elevation-color);
|
|
16
16
|
|
|
17
|
-
@include elevation.overridable-elevation($zValue, $elevation-color-or-default
|
|
17
|
+
@include elevation.overridable-elevation($zValue, $elevation-color-or-default);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
// If the mat-animation-noop class is present on the components root element,
|
|
@@ -22,20 +22,11 @@
|
|
|
22
22
|
// NOTE: Currently this mixin should only be used with components that do not
|
|
23
23
|
// have any projected content.
|
|
24
24
|
@mixin private-animation-noop() {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// .my-subclass {
|
|
31
|
-
// @include mat-private-animation-noop();
|
|
32
|
-
// }
|
|
33
|
-
// }
|
|
34
|
-
// results in:
|
|
35
|
-
// ._mat-animation-noopable.my-root .my-subclass { ... }
|
|
36
|
-
@at-root ._mat-animation-noopable#{&} {
|
|
37
|
-
transition: none;
|
|
38
|
-
animation: none;
|
|
25
|
+
&._mat-animation-noopable {
|
|
26
|
+
// Use !important here since we don't know what context this mixin will
|
|
27
|
+
// be included in and MDC can have some really specific selectors.
|
|
28
|
+
transition: none !important;
|
|
29
|
+
animation: none !important;
|
|
39
30
|
@content;
|
|
40
31
|
}
|
|
41
32
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/* stylelint-disable value-no-vendor-prefix */
|
|
2
|
-
/* stylelint-disable selector-no-vendor-prefix */
|
|
3
1
|
/* stylelint-disable property-no-vendor-prefix */
|
|
2
|
+
/* stylelint-disable selector-no-vendor-prefix */
|
|
4
3
|
// stylelint-disable material/no-prefixes
|
|
5
4
|
@mixin user-select($value) {
|
|
6
5
|
-webkit-user-select: $value;
|
|
7
|
-
-moz-user-select: $value;
|
|
8
6
|
user-select: $value;
|
|
9
7
|
}
|
|
10
8
|
|
|
@@ -28,33 +26,22 @@
|
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
|
|
31
|
-
@mixin cursor-grab {
|
|
32
|
-
cursor: -webkit-grab;
|
|
33
|
-
cursor: grab;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@mixin cursor-grabbing {
|
|
37
|
-
cursor: -webkit-grabbing;
|
|
38
|
-
cursor: grabbing;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
29
|
@mixin backface-visibility($value) {
|
|
42
30
|
-webkit-backface-visibility: $value;
|
|
43
31
|
backface-visibility: $value;
|
|
44
32
|
}
|
|
45
33
|
|
|
46
|
-
@mixin
|
|
47
|
-
position: -webkit-sticky #{if($important, '!important', '')};
|
|
48
|
-
position: sticky #{if($important, '!important', '')};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@mixin private-color-adjust($value) {
|
|
34
|
+
@mixin color-adjust($value) {
|
|
52
35
|
-webkit-print-color-adjust: $value;
|
|
53
|
-
|
|
36
|
+
color-adjust: $value;
|
|
54
37
|
}
|
|
55
38
|
|
|
56
39
|
@mixin private-background-clip($value) {
|
|
57
40
|
-webkit-background-clip: $value;
|
|
58
41
|
background-clip: $value;
|
|
59
42
|
}
|
|
60
|
-
|
|
43
|
+
|
|
44
|
+
@mixin clip-path($value) {
|
|
45
|
+
-webkit-clip-path: $value;
|
|
46
|
+
clip-path: $value;
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Import all the theming functionality.
|
|
2
|
+
@use '../../alert/alert-theme';
|
|
3
|
+
@use '../../colorpicker/colorpicker-theme';
|
|
4
|
+
@use '../../datetimepicker/datetimepicker-theme';
|
|
5
|
+
@use '../../drawer/drawer-theme';
|
|
6
|
+
@use '../../grid/grid-theme';
|
|
7
|
+
@use '../../loader/loader-theme';
|
|
8
|
+
@use '../../popover/popover-theme';
|
|
9
|
+
@use '../../progress/progress-theme';
|
|
10
|
+
@use '../../select/select-theme';
|
|
11
|
+
@use '../../slider/slider-theme';
|
|
12
|
+
@use '../../split/split-theme';
|
|
13
|
+
@use '../../tooltip/tooltip-theme';
|
|
14
|
+
@use './theming';
|
|
15
|
+
|
|
16
|
+
// Create a theme.
|
|
17
|
+
@mixin all-component-themes($theme-or-color-config) {
|
|
18
|
+
$dedupe-key: 'angular-material-extensions-theme';
|
|
19
|
+
@include theming.private-check-duplicate-theme-styles($theme-or-color-config, $dedupe-key) {
|
|
20
|
+
@include alert-theme.theme($theme-or-color-config);
|
|
21
|
+
@include colorpicker-theme.theme($theme-or-color-config);
|
|
22
|
+
@include datetimepicker-theme.theme($theme-or-color-config);
|
|
23
|
+
@include drawer-theme.theme($theme-or-color-config);
|
|
24
|
+
@include grid-theme.theme($theme-or-color-config);
|
|
25
|
+
@include loader-theme.theme($theme-or-color-config);
|
|
26
|
+
@include popover-theme.theme($theme-or-color-config);
|
|
27
|
+
@include progress-theme.theme($theme-or-color-config);
|
|
28
|
+
@include select-theme.theme($theme-or-color-config);
|
|
29
|
+
@include slider-theme.theme($theme-or-color-config);
|
|
30
|
+
@include split-theme.theme($theme-or-color-config);
|
|
31
|
+
@include tooltip-theme.theme($theme-or-color-config);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// @deprecated Use `all-component-themes`.
|
|
36
|
+
@mixin material-extensions-theme($theme-or-color-config) {
|
|
37
|
+
@include all-component-themes($theme-or-color-config);
|
|
38
|
+
}
|
|
@@ -703,7 +703,7 @@ $dark-theme-background-palette: (
|
|
|
703
703
|
selected-disabled-button: map.get($grey-palette, 800),
|
|
704
704
|
disabled-button-toggle: black,
|
|
705
705
|
unselected-chip: map.get($grey-palette, 700),
|
|
706
|
-
disabled-list-option:
|
|
706
|
+
disabled-list-option: rgba(white, .12),
|
|
707
707
|
tooltip: map.get($grey-palette, 700),
|
|
708
708
|
);
|
|
709
709
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'sass:meta';
|
|
4
4
|
@use 'palette';
|
|
5
|
-
@use '../density/private/compatibility';
|
|
6
5
|
|
|
7
6
|
// Whether duplication warnings should be disabled. Warnings enabled by default.
|
|
8
7
|
$theme-ignore-duplication-warnings: false !default;
|
|
@@ -12,7 +11,22 @@ $_generate-default-density: true !default;
|
|
|
12
11
|
|
|
13
12
|
// Warning that will be printed if duplicated styles are generated by a theme.
|
|
14
13
|
$_duplicate-warning: 'Read more about how style duplication can be avoided in a dedicated ' +
|
|
15
|
-
'guide. https://github.com/angular/components/blob/
|
|
14
|
+
'guide. https://github.com/angular/components/blob/main/guides/duplicate-theming-styles.md';
|
|
15
|
+
|
|
16
|
+
// Warning that will be printed if the legacy theming API is used.
|
|
17
|
+
$_legacy-theme-warning: 'Angular Material themes should be created from a map containing the ' +
|
|
18
|
+
'keys "color", "typography", and "density". The color value should be a map containing the ' +
|
|
19
|
+
'palette values for "primary", "accent", and "warn". ' +
|
|
20
|
+
'See https://material.angular.io/guide/theming for more information.';
|
|
21
|
+
|
|
22
|
+
// Flag whether theme config getter functions should warn if a key is expected to exist but not
|
|
23
|
+
// present in the config. This can be transformed internally in Google to ensure all clients have
|
|
24
|
+
// comprehensive theme configurations.
|
|
25
|
+
$_enable-strict-theme-config: false;
|
|
26
|
+
|
|
27
|
+
// Flag whether to disable theme definitions copying color values to the top-level theme config.
|
|
28
|
+
// This copy is to preserve backwards compatibility.
|
|
29
|
+
$_disable-color-backwards-compatibility: false;
|
|
16
30
|
|
|
17
31
|
// These variable are not intended to be overridden externally. They use `!default` to
|
|
18
32
|
// avoid being reset every time this file is imported.
|
|
@@ -20,6 +34,17 @@ $_emitted-color: () !default;
|
|
|
20
34
|
$_emitted-typography: () !default;
|
|
21
35
|
$_emitted-density: () !default;
|
|
22
36
|
|
|
37
|
+
/// Extracts a color from a palette or throws an error if it doesn't exist.
|
|
38
|
+
/// @param {Map} $palette The palette from which to extract a color.
|
|
39
|
+
/// @param {String | Number} $hue The hue for which to get the color.
|
|
40
|
+
@function _get-color-from-palette($palette, $hue) {
|
|
41
|
+
@if map.has-key($palette, $hue) {
|
|
42
|
+
@return map.get($palette, $hue);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@error 'Hue "' + $hue + '" does not exist in palette. Available hues are: ' + map.keys($palette);
|
|
46
|
+
}
|
|
47
|
+
|
|
23
48
|
/// For a given hue in a palette, return the contrast color from the map of contrast palettes.
|
|
24
49
|
/// @param {Map} $palette The palette from which to extract a color.
|
|
25
50
|
/// @param {String | Number} $hue The hue for which to get a contrast color.
|
|
@@ -41,10 +66,10 @@ $text: $default) {
|
|
|
41
66
|
$result: map.merge(
|
|
42
67
|
$base-palette,
|
|
43
68
|
(
|
|
44
|
-
default:
|
|
45
|
-
lighter:
|
|
46
|
-
darker:
|
|
47
|
-
text:
|
|
69
|
+
default: _get-color-from-palette($base-palette, $default),
|
|
70
|
+
lighter: _get-color-from-palette($base-palette, $lighter),
|
|
71
|
+
darker: _get-color-from-palette($base-palette, $darker),
|
|
72
|
+
text: _get-color-from-palette($base-palette, $text),
|
|
48
73
|
default-contrast: get-contrast-color-from-palette($base-palette, $default),
|
|
49
74
|
lighter-contrast: get-contrast-color-from-palette($base-palette, $lighter),
|
|
50
75
|
darker-contrast: get-contrast-color-from-palette($base-palette, $darker)
|
|
@@ -66,7 +91,7 @@ $text: $default) {
|
|
|
66
91
|
|
|
67
92
|
/// Gets a color from a theme palette (the output of mat-palette).
|
|
68
93
|
/// The hue can be one of the standard values (500, A400, etc.), one of the three preconfigured
|
|
69
|
-
/// hues (default, lighter, darker), or any of the aforementioned
|
|
94
|
+
/// hues (default, lighter, darker), or any of the aforementioned suffixed with "-contrast".
|
|
70
95
|
///
|
|
71
96
|
/// @param {Map} $palette The palette from which to extract a color.
|
|
72
97
|
/// @param {String | Number} $hue The hue from the palette to use. If this is a value between 0
|
|
@@ -159,6 +184,7 @@ $text: $default) {
|
|
|
159
184
|
// If the legacy pattern is used, we generate a container object only with a light-themed
|
|
160
185
|
// configuration for the `color` theming part.
|
|
161
186
|
@if $accent != null {
|
|
187
|
+
@warn $_legacy-theme-warning;
|
|
162
188
|
@return private-create-backwards-compatibility-theme(_mat-validate-theme((
|
|
163
189
|
_is-legacy-theme: true,
|
|
164
190
|
color: _mat-create-light-color-config($primary, $accent, $warn),
|
|
@@ -199,6 +225,7 @@ $text: $default) {
|
|
|
199
225
|
// If the legacy pattern is used, we generate a container object only with a dark-themed
|
|
200
226
|
// configuration for the `color` theming part.
|
|
201
227
|
@if $accent != null {
|
|
228
|
+
@warn $_legacy-theme-warning;
|
|
202
229
|
@return private-create-backwards-compatibility-theme(_mat-validate-theme((
|
|
203
230
|
_is-legacy-theme: true,
|
|
204
231
|
color: _mat-create-dark-color-config($primary, $accent, $warn),
|
|
@@ -239,6 +266,9 @@ $text: $default) {
|
|
|
239
266
|
@if map.has-key($theme, color) {
|
|
240
267
|
@return map.get($theme, color);
|
|
241
268
|
}
|
|
269
|
+
@else if ($_enable-strict-theme-config) {
|
|
270
|
+
@error 'Angular Material theme configuration is missing a "color" value';
|
|
271
|
+
}
|
|
242
272
|
@return $default;
|
|
243
273
|
}
|
|
244
274
|
|
|
@@ -258,6 +288,9 @@ $text: $default) {
|
|
|
258
288
|
@if map.has-key($theme-or-config, density) {
|
|
259
289
|
@return map.get($theme-or-config, density);
|
|
260
290
|
}
|
|
291
|
+
@else if ($_enable-strict-theme-config) {
|
|
292
|
+
@error 'Angular Material theme configuration is missing a "density" value';
|
|
293
|
+
}
|
|
261
294
|
@return $default;
|
|
262
295
|
}
|
|
263
296
|
|
|
@@ -278,6 +311,9 @@ $text: $default) {
|
|
|
278
311
|
@if (map.has-key($theme-or-config, typography)) {
|
|
279
312
|
@return map.get($theme-or-config, typography);
|
|
280
313
|
}
|
|
314
|
+
@else if ($_enable-strict-theme-config) {
|
|
315
|
+
@error 'Angular Material theme configuration is missing a "typography" value';
|
|
316
|
+
}
|
|
281
317
|
@return $default;
|
|
282
318
|
}
|
|
283
319
|
|
|
@@ -295,7 +331,7 @@ $text: $default) {
|
|
|
295
331
|
//
|
|
296
332
|
// The mixin keeps track of all configurations in a list that is scoped to the specified
|
|
297
333
|
// id. This is necessary because a given theme can be passed to multiple disjoint theme mixins
|
|
298
|
-
// (e.g. `all-component-themes` and `all-
|
|
334
|
+
// (e.g. `all-component-themes` and `all-legacy-component-themes`) without causing any
|
|
299
335
|
// style duplication.
|
|
300
336
|
@mixin private-check-duplicate-theme-styles($theme-or-color-config, $id) {
|
|
301
337
|
$theme: private-legacy-get-theme($theme-or-color-config);
|
|
@@ -354,21 +390,8 @@ $text: $default) {
|
|
|
354
390
|
$orig-mat-theme-ignore-duplication-warnings: $theme-ignore-duplication-warnings;
|
|
355
391
|
$theme-ignore-duplication-warnings: true !global;
|
|
356
392
|
|
|
357
|
-
// If duplicate default density styles would be generated for a legacy constructed theme,
|
|
358
|
-
// we adjust the density generation so that no density styles are generated by default.
|
|
359
|
-
// If no default density styles have been generated yet, we ensure that the styles
|
|
360
|
-
// are generated at root. For legacy themes our goal is to generate default density
|
|
361
|
-
// styles **once** and at root. This matches the old behavior where density styles were
|
|
362
|
-
// part of the base component styles (that did not use view encapsulation).
|
|
363
|
-
// TODO: Remove this compatibility logic when the legacy theming API is removed.
|
|
364
|
-
compatibility.$private-density-generate-at-root: private-is-legacy-constructed-theme($theme);
|
|
365
|
-
compatibility.$private-density-generate-styles: not $duplicate-legacy-density;
|
|
366
|
-
|
|
367
393
|
@content;
|
|
368
394
|
$theme-ignore-duplication-warnings: $orig-mat-theme-ignore-duplication-warnings !global;
|
|
369
|
-
|
|
370
|
-
compatibility.$private-density-generate-at-root: false;
|
|
371
|
-
compatibility.$private-density-generate-styles: true;
|
|
372
395
|
}
|
|
373
396
|
|
|
374
397
|
// Checks whether the given value resolves to a theme object. Theme objects are always
|
|
@@ -405,7 +428,7 @@ $text: $default) {
|
|
|
405
428
|
// is stored in `$theme.color` which contains a property for `primary`. This method copies
|
|
406
429
|
// the map from `$theme.color` to `$theme` for backwards compatibility.
|
|
407
430
|
@function private-create-backwards-compatibility-theme($theme) {
|
|
408
|
-
@if not map.get($theme, color) {
|
|
431
|
+
@if ($_disable-color-backwards-compatibility or not map.get($theme, color)) {
|
|
409
432
|
@return $theme;
|
|
410
433
|
}
|
|
411
434
|
$color: map.get($theme, color);
|
|
@@ -423,8 +446,18 @@ $text: $default) {
|
|
|
423
446
|
@if private-is-theme-object($theme-or-color-config) {
|
|
424
447
|
@return $theme-or-color-config;
|
|
425
448
|
}
|
|
449
|
+
|
|
450
|
+
@warn $_legacy-theme-warning;
|
|
426
451
|
@return private-create-backwards-compatibility-theme((
|
|
427
452
|
_is-legacy-theme: true,
|
|
428
453
|
color: $theme-or-color-config
|
|
429
454
|
));
|
|
430
455
|
}
|
|
456
|
+
|
|
457
|
+
// Approximates an rgba color into a solid hex color, given a background color.
|
|
458
|
+
@function private-rgba-to-hex($color, $background-color) {
|
|
459
|
+
// We convert the rgba color into a solid one by taking the opacity from the rgba
|
|
460
|
+
// value and using it to determine the percentage of the background to put
|
|
461
|
+
// into foreground when mixing the colors together.
|
|
462
|
+
@return mix($background-color, rgba($color, 1), (1 - opacity($color)) * 100%);
|
|
463
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/// @param {String | Number} $font-weight The font-weight for this level.
|
|
9
9
|
/// @param {String} $font-family The font-family for this level.
|
|
10
10
|
/// @param {String} $letter-spacing The letter-spacing for this level.
|
|
11
|
-
/// @returns {Map} A map representing the definition of this
|
|
11
|
+
/// @returns {Map} A map representing the definition of this typographic level.
|
|
12
12
|
@function define-typography-level(
|
|
13
13
|
$font-size,
|
|
14
14
|
$line-height: $font-size,
|
|
@@ -46,7 +46,11 @@
|
|
|
46
46
|
/// @param {Map} $button Configuration for the "button" typographic level.
|
|
47
47
|
/// @param {Map} $input Configuration for the "input" typographic level.
|
|
48
48
|
/// @returns {Map} A typography config for the application.
|
|
49
|
-
|
|
49
|
+
///
|
|
50
|
+
/// @deprecated Use `mat.define-typography-config` instead.
|
|
51
|
+
/// See https://material.angular.io/guide/mdc-migration for information about migrating.
|
|
52
|
+
/// @breaking-change 17.0.0
|
|
53
|
+
@function define-legacy-typography-config(
|
|
50
54
|
$font-family: 'Roboto, "Helvetica Neue", sans-serif',
|
|
51
55
|
$display-4: define-typography-level(112px, 112px, 300, $letter-spacing: -.05em),
|
|
52
56
|
$display-3: define-typography-level(56px, 56px, 400, $letter-spacing: -.02em),
|
|
@@ -136,7 +140,7 @@
|
|
|
136
140
|
$non-null-args: map.merge($non-null-args, ($key: $value));
|
|
137
141
|
}
|
|
138
142
|
}
|
|
139
|
-
@return define-typography-config($non-null-args...);
|
|
143
|
+
@return define-legacy-typography-config($non-null-args...);
|
|
140
144
|
}
|
|
141
145
|
@return $config;
|
|
142
146
|
}
|
|
@@ -165,7 +169,7 @@
|
|
|
165
169
|
body-2: map.get($config, body-1),
|
|
166
170
|
button: map.get($config, button),
|
|
167
171
|
caption: map.get($config, caption),
|
|
168
|
-
overline: if(map.get($config, overline), map.get($config, overline),
|
|
172
|
+
overline: if(map.get($config, overline), map.get($config, overline),define-typography-level(12px, 32px, 500))
|
|
169
173
|
);
|
|
170
174
|
}
|
|
171
175
|
@return $config;
|
|
@@ -176,27 +180,185 @@
|
|
|
176
180
|
/// @param {String} $selector Ancestor selector under which native elements, such as h1, will
|
|
177
181
|
/// be styled.
|
|
178
182
|
@mixin typography-hierarchy($config-or-theme, $selector: '.mat-typography') {
|
|
183
|
+
$config: private-typography-to-2018-config(theming.get-typography-config($config-or-theme));
|
|
184
|
+
|
|
185
|
+
// Note that it seems redundant to prefix the class rules with the `$selector`, however it's
|
|
186
|
+
// necessary if we want to allow people to overwrite the tag selectors. This is due to
|
|
187
|
+
// selectors like `#{$selector} h1` being more specific than ones like `.mat-title`.
|
|
188
|
+
.mat-h1,
|
|
189
|
+
.mat-headline-5,
|
|
190
|
+
#{$selector} .mat-h1,
|
|
191
|
+
#{$selector} .mat-headline-5,
|
|
192
|
+
#{$selector} h1 {
|
|
193
|
+
@include typography-utils.typography-level($config, headline-5);
|
|
194
|
+
|
|
195
|
+
margin: 0 0 16px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mat-h2,
|
|
199
|
+
.mat-headline-6,
|
|
200
|
+
#{$selector} .mat-h2,
|
|
201
|
+
#{$selector} .mat-headline-6,
|
|
202
|
+
#{$selector} h2 {
|
|
203
|
+
@include typography-utils.typography-level($config, headline-6);
|
|
204
|
+
|
|
205
|
+
margin: 0 0 16px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.mat-h3,
|
|
209
|
+
.mat-subtitle-1,
|
|
210
|
+
#{$selector} .mat-h3,
|
|
211
|
+
#{$selector} .mat-subtitle-1,
|
|
212
|
+
#{$selector} h3 {
|
|
213
|
+
@include typography-utils.typography-level($config, subtitle-1);
|
|
214
|
+
|
|
215
|
+
margin: 0 0 16px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.mat-h4,
|
|
219
|
+
.mat-body-1,
|
|
220
|
+
#{$selector} .mat-h4,
|
|
221
|
+
#{$selector} .mat-body-1,
|
|
222
|
+
#{$selector} h4 {
|
|
223
|
+
@include typography-utils.typography-level($config, body-1);
|
|
224
|
+
|
|
225
|
+
margin: 0 0 16px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Note: the spec doesn't have anything that would correspond to h5 and h6, but we add these for
|
|
229
|
+
// consistency. The font sizes come from the Chrome user agent styles which have h5 at 0.83em
|
|
230
|
+
// and h6 at 0.67em.
|
|
231
|
+
.mat-h5,
|
|
232
|
+
#{$selector} .mat-h5,
|
|
233
|
+
#{$selector} h5 {
|
|
234
|
+
@include typography-utils.font-shorthand(
|
|
235
|
+
|
|
236
|
+
calc(#{typography-utils.font-size($config, body-2)} * .83),
|
|
237
|
+
typography-utils.font-weight($config, body-2),
|
|
238
|
+
typography-utils.line-height($config, body-2),
|
|
239
|
+
typography-utils.font-family($config, body-2)
|
|
240
|
+
);
|
|
241
|
+
|
|
242
|
+
margin: 0 0 12px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.mat-h6,
|
|
246
|
+
#{$selector} .mat-h6,
|
|
247
|
+
#{$selector} h6 {
|
|
248
|
+
@include typography-utils.font-shorthand(
|
|
249
|
+
|
|
250
|
+
calc(#{typography-utils.font-size($config, body-2)} * .67),
|
|
251
|
+
typography-utils.font-weight($config, body-2),
|
|
252
|
+
typography-utils.line-height($config, body-2),
|
|
253
|
+
typography-utils.font-family($config, body-2)
|
|
254
|
+
);
|
|
255
|
+
|
|
256
|
+
margin: 0 0 12px;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.mat-body-strong,
|
|
260
|
+
.mat-subtitle-2,
|
|
261
|
+
#{$selector} .mat-body-strong,
|
|
262
|
+
#{$selector} .mat-subtitle-2 {
|
|
263
|
+
@include typography-utils.typography-level($config, subtitle-2);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.mat-body,
|
|
267
|
+
.mat-body-2,
|
|
268
|
+
#{$selector} .mat-body,
|
|
269
|
+
#{$selector} .mat-body-2,
|
|
270
|
+
#{$selector} {
|
|
271
|
+
@include typography-utils.typography-level($config, body-2);
|
|
272
|
+
|
|
273
|
+
p {
|
|
274
|
+
margin: 0 0 12px;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.mat-small,
|
|
279
|
+
.mat-caption,
|
|
280
|
+
#{$selector} .mat-small,
|
|
281
|
+
#{$selector} .mat-caption {
|
|
282
|
+
@include typography-utils.typography-level($config, caption);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.mat-headline-1,
|
|
286
|
+
#{$selector} .mat-headline-1 {
|
|
287
|
+
@include typography-utils.typography-level($config, headline-1);
|
|
288
|
+
|
|
289
|
+
margin: 0 0 56px;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.mat-headline-2,
|
|
293
|
+
#{$selector} .mat-headline-2 {
|
|
294
|
+
@include typography-utils.typography-level($config, headline-2);
|
|
295
|
+
|
|
296
|
+
margin: 0 0 64px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.mat-headline-3,
|
|
300
|
+
#{$selector} .mat-headline-3 {
|
|
301
|
+
@include typography-utils.typography-level($config, headline-3);
|
|
302
|
+
|
|
303
|
+
margin: 0 0 64px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.mat-headline-4,
|
|
307
|
+
#{$selector} .mat-headline-4 {
|
|
308
|
+
@include typography-utils.typography-level($config, headline-4);
|
|
309
|
+
|
|
310
|
+
margin: 0 0 64px;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
/// Emits baseline typographic styles based on a given config.
|
|
315
|
+
/// @param {Map} $config-or-theme A typography config for an entire theme.
|
|
316
|
+
/// @param {String} $selector Ancestor selector under which native elements, such as h1, will
|
|
317
|
+
/// be styled.
|
|
318
|
+
/// @deprecated Use `mat.typography-hierarchy` instead.
|
|
319
|
+
/// See https://material.angular.io/guide/mdc-migration for information about migrating.
|
|
320
|
+
/// @breaking-change 17.0.0
|
|
321
|
+
@mixin legacy-typography-hierarchy($config-or-theme, $selector: '.mat-typography') {
|
|
179
322
|
$config: private-typography-to-2014-config(theming.get-typography-config($config-or-theme));
|
|
180
323
|
|
|
181
|
-
|
|
324
|
+
// Note that it seems redundant to prefix the class rules with the `$selector`, however it's
|
|
325
|
+
// necessary if we want to allow people to overwrite the tag selectors. This is due to
|
|
326
|
+
// selectors like `#{$selector} h1` being more specific than ones like `.mat-title`.
|
|
327
|
+
.mat-h1,
|
|
328
|
+
.mat-headline,
|
|
329
|
+
#{$selector} .mat-h1,
|
|
330
|
+
#{$selector} .mat-headline,
|
|
331
|
+
#{$selector} h1 {
|
|
182
332
|
@include typography-utils.typography-level($config, headline);
|
|
183
333
|
|
|
184
334
|
margin: 0 0 16px;
|
|
185
335
|
}
|
|
186
336
|
|
|
187
|
-
.mat-h2,
|
|
337
|
+
.mat-h2,
|
|
338
|
+
.mat-title,
|
|
339
|
+
#{$selector} .mat-h2,
|
|
340
|
+
#{$selector} .mat-title,
|
|
341
|
+
#{$selector} h2 {
|
|
188
342
|
@include typography-utils.typography-level($config, title);
|
|
189
343
|
|
|
190
344
|
margin: 0 0 16px;
|
|
191
345
|
}
|
|
192
346
|
|
|
193
|
-
.mat-h3,
|
|
347
|
+
.mat-h3,
|
|
348
|
+
.mat-subheading-2,
|
|
349
|
+
#{$selector} .mat-h3,
|
|
350
|
+
#{$selector} .mat-subheading-2,
|
|
351
|
+
#{$selector} h3 {
|
|
194
352
|
@include typography-utils.typography-level($config, subheading-2);
|
|
195
353
|
|
|
196
354
|
margin: 0 0 16px;
|
|
197
355
|
}
|
|
198
356
|
|
|
199
|
-
.mat-h4,
|
|
357
|
+
.mat-h4,
|
|
358
|
+
.mat-subheading-1,
|
|
359
|
+
#{$selector} .mat-h4,
|
|
360
|
+
#{$selector} .mat-subheading-1,
|
|
361
|
+
#{$selector} h4 {
|
|
200
362
|
@include typography-utils.typography-level($config, subheading-1);
|
|
201
363
|
|
|
202
364
|
margin: 0 0 16px;
|
|
@@ -205,7 +367,9 @@
|
|
|
205
367
|
// Note: the spec doesn't have anything that would correspond to h5 and h6, but we add these for
|
|
206
368
|
// consistency. The font sizes come from the Chrome user agent styles which have h5 at 0.83em
|
|
207
369
|
// and h6 at 0.67em.
|
|
208
|
-
.mat-h5,
|
|
370
|
+
.mat-h5,
|
|
371
|
+
#{$selector} .mat-h5,
|
|
372
|
+
#{$selector} h5 {
|
|
209
373
|
@include typography-utils.font-shorthand(
|
|
210
374
|
|
|
211
375
|
calc(#{typography-utils.font-size($config, body-1)} * .83),
|
|
@@ -217,7 +381,9 @@
|
|
|
217
381
|
margin: 0 0 12px;
|
|
218
382
|
}
|
|
219
383
|
|
|
220
|
-
.mat-h6,
|
|
384
|
+
.mat-h6,
|
|
385
|
+
#{$selector} .mat-h6,
|
|
386
|
+
#{$selector} h6 {
|
|
221
387
|
@include typography-utils.font-shorthand(
|
|
222
388
|
|
|
223
389
|
calc(#{typography-utils.font-size($config, body-1)} * .67),
|
|
@@ -230,11 +396,17 @@
|
|
|
230
396
|
}
|
|
231
397
|
|
|
232
398
|
.mat-body-strong,
|
|
233
|
-
.mat-body-2
|
|
399
|
+
.mat-body-2,
|
|
400
|
+
#{$selector} .mat-body-strong,
|
|
401
|
+
#{$selector} .mat-body-2 {
|
|
234
402
|
@include typography-utils.typography-level($config, body-2);
|
|
235
403
|
}
|
|
236
404
|
|
|
237
|
-
.mat-body,
|
|
405
|
+
.mat-body,
|
|
406
|
+
.mat-body-1,
|
|
407
|
+
#{$selector} .mat-body,
|
|
408
|
+
#{$selector} .mat-body-1,
|
|
409
|
+
#{$selector} {
|
|
238
410
|
@include typography-utils.typography-level($config, body-1);
|
|
239
411
|
|
|
240
412
|
p {
|
|
@@ -243,29 +415,35 @@
|
|
|
243
415
|
}
|
|
244
416
|
|
|
245
417
|
.mat-small,
|
|
246
|
-
.mat-caption
|
|
418
|
+
.mat-caption,
|
|
419
|
+
#{$selector} .mat-small,
|
|
420
|
+
#{$selector} .mat-caption {
|
|
247
421
|
@include typography-utils.typography-level($config, caption);
|
|
248
422
|
}
|
|
249
423
|
|
|
250
|
-
.mat-display-4,
|
|
424
|
+
.mat-display-4,
|
|
425
|
+
#{$selector} .mat-display-4 {
|
|
251
426
|
@include typography-utils.typography-level($config, display-4);
|
|
252
427
|
|
|
253
428
|
margin: 0 0 56px;
|
|
254
429
|
}
|
|
255
430
|
|
|
256
|
-
.mat-display-3,
|
|
431
|
+
.mat-display-3,
|
|
432
|
+
#{$selector} .mat-display-3 {
|
|
257
433
|
@include typography-utils.typography-level($config, display-3);
|
|
258
434
|
|
|
259
435
|
margin: 0 0 64px;
|
|
260
436
|
}
|
|
261
437
|
|
|
262
|
-
.mat-display-2,
|
|
438
|
+
.mat-display-2,
|
|
439
|
+
#{$selector} .mat-display-2 {
|
|
263
440
|
@include typography-utils.typography-level($config, display-2);
|
|
264
441
|
|
|
265
442
|
margin: 0 0 64px;
|
|
266
443
|
}
|
|
267
444
|
|
|
268
|
-
.mat-display-1,
|
|
445
|
+
.mat-display-1,
|
|
446
|
+
#{$selector} .mat-display-1 {
|
|
269
447
|
@include typography-utils.typography-level($config, display-1);
|
|
270
448
|
|
|
271
449
|
margin: 0 0 64px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
@forward 'datetimepicker-theme' hide $selected-today-box-shadow-width, $calendar-body-font-size,
|
|
2
2
|
$calendar-weekday-table-font-size, $calendar-header-font-size, $clock-font-size,
|
|
3
3
|
color, theme, typography;
|
|
4
|
-
@forward 'datetimepicker-theme' as mtx-datetimepicker
|
|
4
|
+
@forward 'datetimepicker-theme' as mtx-datetimepicker-*;
|
|
@@ -203,21 +203,20 @@ $clock-font-size: 14px !default;
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
@mixin
|
|
206
|
+
@mixin density($config-or-theme) {}
|
|
207
207
|
|
|
208
208
|
@mixin theme($theme-or-color-config) {
|
|
209
209
|
$theme: theming.private-legacy-get-theme($theme-or-color-config);
|
|
210
210
|
@include theming.private-check-duplicate-theme-styles($theme, 'mtx-datetimepicker') {
|
|
211
211
|
$color: theming.get-color-config($theme);
|
|
212
212
|
$density: theming.get-density-config($theme);
|
|
213
|
-
$typography
|
|
214
|
-
$typography: theming.get-typography-config($theme, $typography-default);
|
|
213
|
+
$typography: theming.get-typography-config($theme);
|
|
215
214
|
|
|
216
215
|
@if $color != null {
|
|
217
216
|
@include color($color);
|
|
218
217
|
}
|
|
219
218
|
@if $density != null {
|
|
220
|
-
@include
|
|
219
|
+
@include density($density);
|
|
221
220
|
}
|
|
222
221
|
@if $typography != null {
|
|
223
222
|
@include typography($typography);
|