diff --git a/demo-shell-ng2/.angular-cli.json b/demo-shell-ng2/.angular-cli.json index b0672810d3..aa3b97d641 100644 --- a/demo-shell-ng2/.angular-cli.json +++ b/demo-shell-ng2/.angular-cli.json @@ -113,8 +113,7 @@ "testTsconfig": "tsconfig.spec.json", "prefix": "app", "styles": [ - "styles.scss", - "custom-style.scss" + "styles.scss" ], "stylePreprocessorOptions": { "includePaths": [ diff --git a/demo-shell-ng2/package.json b/demo-shell-ng2/package.json index 36793e298f..cfa5a5e763 100644 --- a/demo-shell-ng2/package.json +++ b/demo-shell-ng2/package.json @@ -79,7 +79,6 @@ "element.scrollintoviewifneeded-polyfill": "1.0.1", "hammerjs": "2.0.8", "intl": "1.2.5", - "material-design-lite": "1.2.1", "minimatch": "3.0.4", "moment": "2.15.2", "ng2-3d-editor": "0.0.18", diff --git a/demo-shell-ng2/src/custom-style.scss b/demo-shell-ng2/src/custom-style.scss index 8e02e9202c..b8789f35bb 100644 --- a/demo-shell-ng2/src/custom-style.scss +++ b/demo-shell-ng2/src/custom-style.scss @@ -16,12 +16,7 @@ @import '~@angular/material/theming'; -@include mat-core(); - -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); +@include mat-core($alfresco-typography); $primary: mat-palette($alfresco-accent-orange); $accent: mat-palette($alfresco-accent-purple); diff --git a/demo-shell-ng2/src/styles.scss b/demo-shell-ng2/src/styles.scss index f48e604af6..cba4c8ed30 100644 --- a/demo-shell-ng2/src/styles.scss +++ b/demo-shell-ng2/src/styles.scss @@ -1,12 +1,10 @@ -.mat-form-field input.mat-input-element { - line-height: normal; -} +@import '~@angular/material/theming'; +@import './custom-style.scss'; body, html { - height: 100%; - font-family: 'Muli', "Helvetica", "Arial", sans-serif !important; -} - -body { - margin: 0; -} + margin: 0; + height: 100%; + font-size: mat-font-size($alfresco-typography, body-1); + font-family: mat-font-family($alfresco-typography); + line-height: mat-line-height($alfresco-typography, body-1); +} \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-core/styles/_theming.scss b/ng2-components/ng2-alfresco-core/styles/_theming.scss index 264718077b..3b8f8d15dc 100644 --- a/ng2-components/ng2-alfresco-core/styles/_theming.scss +++ b/ng2-components/ng2-alfresco-core/styles/_theming.scss @@ -1,5 +1,6 @@ -@import './mixins'; -@import './variables'; -@import './colors'; @import '~@angular/material/theming'; +@import './colors'; +@import './variables'; +@import './mixins'; +@import './typography'; diff --git a/ng2-components/ng2-alfresco-core/styles/_typography.scss b/ng2-components/ng2-alfresco-core/styles/_typography.scss new file mode 100644 index 0000000000..dc4a6d1144 --- /dev/null +++ b/ng2-components/ng2-alfresco-core/styles/_typography.scss @@ -0,0 +1,19 @@ +@import '~@angular/material/theming'; + +$alfresco-typography: mat-typography-config( + $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif', + $display-4: mat-typography-level(112px, 112px, 300), + $display-3: mat-typography-level(56px, 56px, 400), + $display-2: mat-typography-level(45px, 48px, 400), + $display-1: mat-typography-level(34px, 40px, 400), + $headline: mat-typography-level(24px, 32px, 400), + $title: mat-typography-level(20px, 32px, 500), + $subheading-2: mat-typography-level(16px, 28px, 400), + $subheading-1: mat-typography-level(15px, 24px, 400), + $body-2: mat-typography-level(14px, 24px, 500), + $body-1: mat-typography-level(14px, 20px, 400), + $caption: mat-typography-level(12px, 20px, 400), + $button: mat-typography-level(14px, 14px, 500), + // Line-height must be unit-less fraction of the font-size. + $input: mat-typography-level(16px, 1.25, 400) +); \ No newline at end of file diff --git a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-blue-orange.scss b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-blue-orange.scss index bce33734a2..5c99503af7 100644 --- a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-blue-orange.scss +++ b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-blue-orange.scss @@ -1,12 +1,7 @@ @import '../theming'; @import './all-theme'; -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); - -@include mat-core(); +@include mat-core($alfresco-typography); $primary: mat-palette($alfresco-ecm-blue); $accent: mat-palette($alfresco-accent-orange); diff --git a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-blue-purple.scss b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-blue-purple.scss index fac7339cdf..d8ec1ffacc 100644 --- a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-blue-purple.scss +++ b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-blue-purple.scss @@ -1,12 +1,7 @@ @import '../theming'; @import './all-theme'; -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); - -@include mat-core(); +@include mat-core($alfresco-typography); $primary: mat-palette($alfresco-ecm-blue); $accent: mat-palette($alfresco-accent-purple); diff --git a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-cyan-orange.scss b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-cyan-orange.scss index cfee8e332a..c05098179f 100644 --- a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-cyan-orange.scss +++ b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-cyan-orange.scss @@ -1,12 +1,7 @@ @import '../theming'; @import './all-theme'; -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); - -@include mat-core(); +@include mat-core($alfresco-typography); $primary: mat-palette($alfresco-ecm-cyan); $accent: mat-palette($alfresco-accent-orange); diff --git a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-cyan-purple.scss b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-cyan-purple.scss index acae9b8c2e..86d4b7141d 100644 --- a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-cyan-purple.scss +++ b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-cyan-purple.scss @@ -1,12 +1,7 @@ @import '../theming'; @import './all-theme'; -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); - -@include mat-core(); +@include mat-core($alfresco-typography); $primary: mat-palette($alfresco-ecm-cyan); $accent: mat-palette($alfresco-accent-purple); diff --git a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-green-orange.scss b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-green-orange.scss index b5e5abf168..aeba626c52 100644 --- a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-green-orange.scss +++ b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-green-orange.scss @@ -1,12 +1,7 @@ @import '../theming'; @import './all-theme'; -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); - -@include mat-core(); +@include mat-core($alfresco-typography); $primary: mat-palette($alfresco-bpm-green); $accent: mat-palette($alfresco-accent-orange); diff --git a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-green-purple.scss b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-green-purple.scss index 774218e3eb..2923a25886 100644 --- a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-green-purple.scss +++ b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-green-purple.scss @@ -1,12 +1,7 @@ @import '../theming'; @import './all-theme'; -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); - -@include mat-core(); +@include mat-core($alfresco-typography); $primary: mat-palette($alfresco-bpm-green); $accent: mat-palette($alfresco-accent-purple); diff --git a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-indigo-pink.scss b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-indigo-pink.scss index d39956a444..aacddd61e4 100644 --- a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-indigo-pink.scss +++ b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-indigo-pink.scss @@ -1,12 +1,7 @@ @import '../theming'; @import './all-theme'; -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); - -@include mat-core(); +@include mat-core($alfresco-typography); $primary: mat-palette($mat-indigo); $accent: mat-palette($mat-pink, A200, A100, A400); diff --git a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-pink-bluegrey.scss b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-pink-bluegrey.scss index 40ddfdb627..2493d6d729 100644 --- a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-pink-bluegrey.scss +++ b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-pink-bluegrey.scss @@ -1,12 +1,7 @@ @import '../theming'; @import './all-theme'; -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); - -@include mat-core(); +@include mat-core($alfresco-typography); $primary: mat-palette($mat-pink, 700, 500, 900); $accent: mat-palette($mat-blue-grey, A200, A100, A400); diff --git a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-purple-green.scss b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-purple-green.scss index fa167e28e7..24372aa58a 100644 --- a/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-purple-green.scss +++ b/ng2-components/ng2-alfresco-core/styles/prebuilt/adf-purple-green.scss @@ -1,12 +1,7 @@ @import '../theming'; @import './all-theme'; -$custom-typography: mat-typography-config( - $font-family: 'Muli, Roboto, "Helvetica Neue", sans-serif' -); -@include angular-material-typography($custom-typography); - -@include mat-core(); +@include mat-core($alfresco-typography); $primary: mat-palette($mat-purple, 700, 500, 800); $accent: mat-palette($mat-green, A200, A100, A400); diff --git a/ng2-components/ng2-alfresco-login/src/components/login.component.html b/ng2-components/ng2-alfresco-login/src/components/login.component.html index 74b77f7e78..ee2bb9acab 100644 --- a/ng2-components/ng2-alfresco-login/src/components/login.component.html +++ b/ng2-components/ng2-alfresco-login/src/components/login.component.html @@ -1,127 +1,132 @@ -