mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-theming-fix] Fix theming related issues (#2276)
* First steps * Every package have separate entry points for styling mixins * Moving to config dir, and using it in demo shell * Remove webpack config include path magic from activiti-form package * Fixing all the webpack common configs and using relative paths in the prebuilt themes * Datatable header fix * Update documentation
This commit is contained in:
committed by
Mario Romano
parent
738290ce37
commit
407e11664a
@@ -19,9 +19,10 @@ module.exports = {
|
||||
|
||||
resolve: {
|
||||
alias: {
|
||||
"ng2-alfresco-core": helpers.root('../ng2-alfresco-core/index.ts')
|
||||
"ng2-alfresco-core$": helpers.root('../ng2-alfresco-core/index.ts'),
|
||||
"ng2-alfresco-core": helpers.root('../ng2-alfresco-core')
|
||||
},
|
||||
extensions: ['.ts', '.js'],
|
||||
extensions: ['.ts', '.js', '.scss'],
|
||||
symlinks: false,
|
||||
modules: [helpers.root('../../ng2-components'), helpers.root('node_modules')]
|
||||
},
|
||||
@@ -67,10 +68,7 @@ module.exports = {
|
||||
}, {
|
||||
loader: "raw-loader"
|
||||
}, {
|
||||
loader: "sass-loader",
|
||||
options: {
|
||||
includePaths: [ path.resolve(__dirname, '../../ng2-alfresco-core/styles')]
|
||||
}
|
||||
loader: "sass-loader"
|
||||
}],
|
||||
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
|
||||
},
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
@import '../form';
|
||||
@import 'mixins';
|
||||
@import '~ng2-alfresco-core/styles/mixins';
|
||||
|
||||
@mixin mat-dynamic-table-theme($theme) {
|
||||
$foreground: map-get($theme, foreground);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
|
||||
.adf {
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
|
||||
.adf {
|
||||
&-date-editor {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
|
||||
.adf {
|
||||
&-dropdown-editor-select {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
|
||||
.adf {
|
||||
&-text-editor {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
@import './hyperlink/hyperlink.widget';
|
||||
@import 'colors';
|
||||
@import '~ng2-alfresco-core/styles/colors';
|
||||
|
||||
@mixin mat-form-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@import 'theming';
|
||||
@import '~ng2-alfresco-core/styles/theming';
|
||||
@import '../form';
|
||||
|
||||
.adf {
|
||||
|
9
ng2-components/ng2-activiti-form/styles/index.scss
Normal file
9
ng2-components/ng2-activiti-form/styles/index.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
@import '../src/components/widgets/form';
|
||||
@import '../src/components/widgets/container/container.widget';
|
||||
@import '../src/components/widgets/dynamic-table/dynamic-table.widget';
|
||||
|
||||
@mixin alfresco-activity-form-theme($theme) {
|
||||
@include mat-form-theme($theme);
|
||||
@include mat-container-widget-theme($theme);
|
||||
@include mat-dynamic-table-theme($theme);
|
||||
}
|
Reference in New Issue
Block a user