@smitag/angular-shared-ui 0.0.1
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/.eslintrc.json +43 -0
- package/README.md +29 -0
- package/jest.config.ts +22 -0
- package/ng-package.json +7 -0
- package/package.json +18 -0
- package/project.json +36 -0
- package/src/index.ts +2 -0
- package/src/lib/angular-material.module.ts +81 -0
- package/src/lib/shared-ui.module.ts +8 -0
- package/src/lib/styles/components/_base.scss +58 -0
- package/src/lib/styles/components/_card.scss +42 -0
- package/src/lib/styles/components/_dialog.scss +85 -0
- package/src/lib/styles/components/_drawer.scss +24 -0
- package/src/lib/styles/components/_form.scss +75 -0
- package/src/lib/styles/components/_header.scss +23 -0
- package/src/lib/styles/components/_helper.scss +90 -0
- package/src/lib/styles/components/_layout.scss +336 -0
- package/src/lib/styles/components/_tab.scss +8 -0
- package/src/lib/styles/components/_toolbar.scss +43 -0
- package/src/lib/styles/fonts/IBMPlexSans-Bold.ttf +0 -0
- package/src/lib/styles/fonts/IBMPlexSans-Light.ttf +0 -0
- package/src/lib/styles/fonts/IBMPlexSans-Medium.ttf +0 -0
- package/src/lib/styles/fonts/IBMPlexSans-Regular.ttf +0 -0
- package/src/lib/styles/fonts/IBMPlexSans-SemiBold.ttf +0 -0
- package/src/lib/styles/fonts/IBMPlexSansCondensed-Medium.ttf +0 -0
- package/src/lib/styles/fonts/IBMPlexSansCondensed-Regular.ttf +0 -0
- package/src/lib/styles/fonts/IBMPlexSansCondensed-SemiBold.ttf +0 -0
- package/src/lib/styles/fonts/MaterialIcons-Regular.ttf +0 -0
- package/src/lib/styles/fonts/Poppins-Bold.ttf +0 -0
- package/src/lib/styles/fonts/Poppins-Light.ttf +0 -0
- package/src/lib/styles/fonts/Poppins-Medium.ttf +0 -0
- package/src/lib/styles/fonts/Poppins-Regular.ttf +0 -0
- package/src/lib/styles/fonts/Poppins-SemiBold.ttf +0 -0
- package/src/lib/styles/fonts/SourceSansPro-Bold.ttf +0 -0
- package/src/lib/styles/fonts/SourceSansPro-Light.ttf +0 -0
- package/src/lib/styles/fonts/SourceSansPro-Regular.ttf +0 -0
- package/src/lib/styles/fonts/SourceSansPro-SemiBold.ttf +0 -0
- package/src/lib/styles/fonts/_typo.scss +152 -0
- package/src/lib/styles/styles.scss +191 -0
- package/src/test-setup.ts +8 -0
- package/tsconfig.json +29 -0
- package/tsconfig.lib.json +17 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +16 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["../.eslintrc.json"],
|
|
3
|
+
"ignorePatterns": ["!**/*"],
|
|
4
|
+
"overrides": [
|
|
5
|
+
{
|
|
6
|
+
"files": ["*.ts"],
|
|
7
|
+
"extends": [
|
|
8
|
+
"plugin:@nx/angular",
|
|
9
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
10
|
+
],
|
|
11
|
+
"rules": {
|
|
12
|
+
"@angular-eslint/directive-selector": [
|
|
13
|
+
"error",
|
|
14
|
+
{
|
|
15
|
+
"type": "attribute",
|
|
16
|
+
"prefix": "lib",
|
|
17
|
+
"style": "camelCase"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"@angular-eslint/component-selector": [
|
|
21
|
+
"error",
|
|
22
|
+
{
|
|
23
|
+
"type": "element",
|
|
24
|
+
"prefix": "lib",
|
|
25
|
+
"style": "kebab-case"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"files": ["*.html"],
|
|
32
|
+
"extends": ["plugin:@nx/angular-template"],
|
|
33
|
+
"rules": {}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"files": ["*.json"],
|
|
37
|
+
"parser": "jsonc-eslint-parser",
|
|
38
|
+
"rules": {
|
|
39
|
+
"@nx/dependency-checks": "error"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# shared/ui
|
|
2
|
+
|
|
3
|
+
Zweck: Elemente und Methoden, die von allen Taa-Apps geteilt werden.
|
|
4
|
+
|
|
5
|
+
## Beschreibung
|
|
6
|
+
|
|
7
|
+
#### mocks
|
|
8
|
+
|
|
9
|
+
Die mocks sind für die unit-tests zuständig.
|
|
10
|
+
|
|
11
|
+
#### models
|
|
12
|
+
|
|
13
|
+
**objects**: Enthält alle Daten in Bezug auf den Nutzer.
|
|
14
|
+
|
|
15
|
+
**parameter**: Alle Parameter, die das Backend benötigt, werden hier definiert.
|
|
16
|
+
|
|
17
|
+
#### services
|
|
18
|
+
|
|
19
|
+
- **auth**: Sendet die Daten aus dem Login-Formular an das Backend.
|
|
20
|
+
- **theme**: Alle Methoden im Bezug auf die Themen.
|
|
21
|
+
- **mail**: Alle Abfragen, die das Versenden von E-Mails behandeln.
|
|
22
|
+
|
|
23
|
+
**notification**: Steuert die Anzeige von Benachrichtigungen.
|
|
24
|
+
|
|
25
|
+
#### style
|
|
26
|
+
|
|
27
|
+
- **components**: Anpassung des Designs von Material Design-Komponenten.
|
|
28
|
+
- **fonts**: Schriftarten werden hier abgelegt.
|
|
29
|
+
- **themes**: Enthält die verschiedenen Themen.
|
package/jest.config.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
export default {
|
|
3
|
+
displayName: 'shared-ui',
|
|
4
|
+
preset: '../jest.preset.js',
|
|
5
|
+
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
|
|
6
|
+
coverageDirectory: '../coverage/shared-ui',
|
|
7
|
+
transform: {
|
|
8
|
+
'^.+\\.(ts|mjs|js|html)$': [
|
|
9
|
+
'jest-preset-angular',
|
|
10
|
+
{
|
|
11
|
+
tsconfig: '<rootDir>/tsconfig.spec.json',
|
|
12
|
+
stringifyContentPathRegex: '\\.(html|svg)$',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
|
|
17
|
+
snapshotSerializers: [
|
|
18
|
+
'jest-preset-angular/build/serializers/no-ng-attributes',
|
|
19
|
+
'jest-preset-angular/build/serializers/ng-snapshot',
|
|
20
|
+
'jest-preset-angular/build/serializers/html-comment',
|
|
21
|
+
],
|
|
22
|
+
};
|
package/ng-package.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smitag/angular-shared-ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Benjamin Speidel"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"@angular/common": "^17.3.0",
|
|
12
|
+
"@angular/core": "^17.3.0"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"tslib": "^2.3.0"
|
|
16
|
+
},
|
|
17
|
+
"sideEffects": false
|
|
18
|
+
}
|
package/project.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "shared-ui",
|
|
3
|
+
"$schema": "../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"sourceRoot": "shared-ui/src",
|
|
5
|
+
"prefix": "lib",
|
|
6
|
+
"projectType": "library",
|
|
7
|
+
"tags": [],
|
|
8
|
+
"targets": {
|
|
9
|
+
"build": {
|
|
10
|
+
"executor": "@nx/angular:package",
|
|
11
|
+
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
|
|
12
|
+
"options": {
|
|
13
|
+
"project": "shared-ui/ng-package.json"
|
|
14
|
+
},
|
|
15
|
+
"configurations": {
|
|
16
|
+
"production": {
|
|
17
|
+
"tsConfig": "shared-ui/tsconfig.lib.prod.json"
|
|
18
|
+
},
|
|
19
|
+
"development": {
|
|
20
|
+
"tsConfig": "shared-ui/tsconfig.lib.json"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"defaultConfiguration": "production"
|
|
24
|
+
},
|
|
25
|
+
"test": {
|
|
26
|
+
"executor": "@nx/jest:jest",
|
|
27
|
+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
28
|
+
"options": {
|
|
29
|
+
"jestConfig": "shared-ui/jest.config.ts"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"lint": {
|
|
33
|
+
"executor": "@nx/eslint:lint"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
4
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
5
|
+
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
|
6
|
+
import { MatCardModule } from '@angular/material/card';
|
|
7
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
8
|
+
import { MatDialogModule } from '@angular/material/dialog';
|
|
9
|
+
import { MatChipsModule } from '@angular/material/chips';
|
|
10
|
+
import {
|
|
11
|
+
MAT_DATE_LOCALE,
|
|
12
|
+
MatRippleModule,
|
|
13
|
+
MatNativeDateModule,
|
|
14
|
+
} from '@angular/material/core';
|
|
15
|
+
import { MatDividerModule } from '@angular/material/divider';
|
|
16
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
17
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
18
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
19
|
+
import { MatInputModule } from '@angular/material/input';
|
|
20
|
+
import { MatListModule } from '@angular/material/list';
|
|
21
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
22
|
+
import { MatPaginatorModule } from '@angular/material/paginator';
|
|
23
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
24
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
25
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
26
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
27
|
+
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
28
|
+
import { MatSnackBarModule } from '@angular/material/snack-bar';
|
|
29
|
+
import { MatSortModule } from '@angular/material/sort';
|
|
30
|
+
import { MatTableModule } from '@angular/material/table';
|
|
31
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
32
|
+
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
33
|
+
import { MatBadgeModule } from '@angular/material/badge';
|
|
34
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
35
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
36
|
+
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
37
|
+
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
38
|
+
import { MatGridListModule } from '@angular/material/grid-list';
|
|
39
|
+
|
|
40
|
+
const materialModules = [
|
|
41
|
+
MatAutocompleteModule,
|
|
42
|
+
MatButtonModule,
|
|
43
|
+
MatCardModule,
|
|
44
|
+
MatCheckboxModule,
|
|
45
|
+
MatChipsModule,
|
|
46
|
+
MatDialogModule,
|
|
47
|
+
MatDividerModule,
|
|
48
|
+
MatExpansionModule,
|
|
49
|
+
MatIconModule,
|
|
50
|
+
MatInputModule,
|
|
51
|
+
MatListModule,
|
|
52
|
+
MatMenuModule,
|
|
53
|
+
MatProgressSpinnerModule,
|
|
54
|
+
MatPaginatorModule,
|
|
55
|
+
MatRippleModule,
|
|
56
|
+
MatSelectModule,
|
|
57
|
+
MatSlideToggleModule,
|
|
58
|
+
MatSidenavModule,
|
|
59
|
+
MatSnackBarModule,
|
|
60
|
+
MatSortModule,
|
|
61
|
+
MatTableModule,
|
|
62
|
+
MatTabsModule,
|
|
63
|
+
MatToolbarModule,
|
|
64
|
+
MatFormFieldModule,
|
|
65
|
+
MatButtonToggleModule,
|
|
66
|
+
MatBadgeModule,
|
|
67
|
+
MatRadioModule,
|
|
68
|
+
MatDatepickerModule,
|
|
69
|
+
MatTooltipModule,
|
|
70
|
+
MatSlideToggleModule,
|
|
71
|
+
MatProgressBarModule,
|
|
72
|
+
MatNativeDateModule,
|
|
73
|
+
DragDropModule,
|
|
74
|
+
MatGridListModule,
|
|
75
|
+
];
|
|
76
|
+
@NgModule({
|
|
77
|
+
imports: [CommonModule, ...materialModules],
|
|
78
|
+
exports: [...materialModules],
|
|
79
|
+
providers: [{ provide: MAT_DATE_LOCALE, useValue: 'de-DE' }],
|
|
80
|
+
})
|
|
81
|
+
export class AngularMaterialModule {}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use './helper';
|
|
3
|
+
|
|
4
|
+
// theme-independant variables
|
|
5
|
+
$base-colors: (
|
|
6
|
+
color-warn: (
|
|
7
|
+
50: #f9e0e0,
|
|
8
|
+
100: #f0b3b3,
|
|
9
|
+
200: #e68080,
|
|
10
|
+
300: #db4d4d,
|
|
11
|
+
400: #d42626,
|
|
12
|
+
500: #cc0000,
|
|
13
|
+
600: #c70000,
|
|
14
|
+
700: #c00000,
|
|
15
|
+
800: #b90000,
|
|
16
|
+
900: #ad0000,
|
|
17
|
+
A100: #ffd7d7,
|
|
18
|
+
A200: #ffa4a4,
|
|
19
|
+
A400: #ff7171,
|
|
20
|
+
A700: #ff5858,
|
|
21
|
+
contrast: (
|
|
22
|
+
50: #000000,
|
|
23
|
+
100: #000000,
|
|
24
|
+
200: #000000,
|
|
25
|
+
300: #ffffff,
|
|
26
|
+
400: #ffffff,
|
|
27
|
+
500: #ffffff,
|
|
28
|
+
600: #ffffff,
|
|
29
|
+
700: #ffffff,
|
|
30
|
+
800: #ffffff,
|
|
31
|
+
900: #ffffff,
|
|
32
|
+
A100: #000000,
|
|
33
|
+
A200: #000000,
|
|
34
|
+
A400: #000000,
|
|
35
|
+
A700: #000000,
|
|
36
|
+
),
|
|
37
|
+
),
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
@include helper.generateCssVariables($base-colors);
|
|
41
|
+
|
|
42
|
+
@include helper.generateClasses($base-colors);
|
|
43
|
+
|
|
44
|
+
$color-text-dark: #000000;
|
|
45
|
+
$color-text-light: #ffffff;
|
|
46
|
+
$color-text-disabled: #d7d5d5;
|
|
47
|
+
$color-text-inactive: #9e9e9e;
|
|
48
|
+
$color-background-dark: #e5e5e5;
|
|
49
|
+
$color-background-light: #f2f2f2;
|
|
50
|
+
$color-background-white: #ffffff;
|
|
51
|
+
$color-footer: #444444;
|
|
52
|
+
|
|
53
|
+
$shadow-bottom: 0 1px 1px 0 rgba(60, 64, 67, 0.08),
|
|
54
|
+
0 1px 3px 0 rgba(60, 64, 67, 0.16);
|
|
55
|
+
$shadow-top: 0px -1px 1px rgba(60, 64, 67, 0.08),
|
|
56
|
+
0px -1px 3px rgba(60, 64, 67, 0.16);
|
|
57
|
+
|
|
58
|
+
@include mat.core();
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.card-right-icon {
|
|
2
|
+
margin-right: 16px;
|
|
3
|
+
text-align: right;
|
|
4
|
+
mat-icon {
|
|
5
|
+
font-size: 36px;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.mat-mdc-card,
|
|
10
|
+
.mat-mdc-card .mat-expansion-panel {
|
|
11
|
+
box-shadow: 0 1px 1px 0 rgba(60, 64, 67, 0.08),
|
|
12
|
+
0 1px 3px 0 rgba(60, 64, 67, 0.16) !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.mat-mdc-card-subtitle {
|
|
16
|
+
margin-top: -8px !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.mat-mdc-card.flat-card,
|
|
20
|
+
mat-accordion.flat-card,
|
|
21
|
+
mat-expansion-panel.flat-card {
|
|
22
|
+
box-shadow: none !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.mat-mdc-card-title {
|
|
26
|
+
margin-bottom: 8px !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mat-mdc-card-actions {
|
|
30
|
+
justify-content: end;
|
|
31
|
+
padding: 8px 16px !important;
|
|
32
|
+
.mdc-button + .mdc-button {
|
|
33
|
+
margin-left: 8px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (min-width: 1280px) {
|
|
38
|
+
.card-container {
|
|
39
|
+
margin: 0 auto;
|
|
40
|
+
width: 1170px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.dialog {
|
|
2
|
+
.mat-mdc-card {
|
|
3
|
+
margin-bottom: 0px !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.mat-divider {
|
|
7
|
+
border-top-color: #e5e5e5 !important;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
mat-dialog-container.mat-mdc-dialog-container {
|
|
12
|
+
overflow: unset;
|
|
13
|
+
|
|
14
|
+
mat-divider.mat-divider.mat-divider-horizontal {
|
|
15
|
+
margin-bottom: 0 !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mat-mdc-dialog-title {
|
|
19
|
+
.mat-icon {
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
margin-right: 8px;
|
|
22
|
+
height: 32px;
|
|
23
|
+
width: 32px;
|
|
24
|
+
font-size: 32px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.mat-mdc-card.flat-card {
|
|
29
|
+
box-shadow: none;
|
|
30
|
+
margin-bottom: 0 !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.mat-card-avatar > em {
|
|
34
|
+
font-size: 40px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.mat-card-avatar.icon-left {
|
|
38
|
+
margin-right: 16px;
|
|
39
|
+
padding-top: 2px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.mat-card-header .mat-card-subtitle {
|
|
43
|
+
margin-top: -2px;
|
|
44
|
+
line-height: 21px;
|
|
45
|
+
color: rgba(0, 0, 0, 0.6);
|
|
46
|
+
letter-spacing: 1.5px;
|
|
47
|
+
margin-bottom: 8px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.mat-mdc-dialog-content {
|
|
51
|
+
color: #333;
|
|
52
|
+
font-size: 14px;
|
|
53
|
+
|
|
54
|
+
.mat-mdc-card-title {
|
|
55
|
+
margin-top: 4px;
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.mat-divider {
|
|
60
|
+
margin: 8px 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.mat-icon {
|
|
64
|
+
vertical-align: baseline;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.label {
|
|
69
|
+
margin-bottom: 4px;
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mat-mdc-dialog-actions {
|
|
74
|
+
justify-content: end;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (max-width: 959px) {
|
|
79
|
+
.dialog {
|
|
80
|
+
max-width: unset !important;
|
|
81
|
+
width: 100% !important;
|
|
82
|
+
max-height: unset !important;
|
|
83
|
+
height: 100% !important;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.mat-drawer-container {
|
|
2
|
+
background-color: #f2f2f6 !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.mat-drawer {
|
|
6
|
+
width: 100%;
|
|
7
|
+
|
|
8
|
+
.drawer-title {
|
|
9
|
+
padding: 16px 16px 0 16px;
|
|
10
|
+
font-size: 20px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.mat-icon-button {
|
|
14
|
+
margin: 14px 8px;
|
|
15
|
+
color: #9e9e9e;
|
|
16
|
+
font-size: 24px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (min-width: 960px) {
|
|
21
|
+
.mat-drawer {
|
|
22
|
+
width: 33%;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
mat-hint.mat-hint {
|
|
2
|
+
margin-top: -2px;
|
|
3
|
+
min-height: 18px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.mat-mdc-form-field {
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.text-hint,
|
|
11
|
+
.attachment-hint {
|
|
12
|
+
line-height: 1.125;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.attachment-hint {
|
|
16
|
+
font-size: 75%;
|
|
17
|
+
padding: 0 16px;
|
|
18
|
+
margin-top: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.logo-hint {
|
|
22
|
+
font-size: 75%;
|
|
23
|
+
margin-top: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.email-hint {
|
|
27
|
+
line-height: 14px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.mat-form-field-hint {
|
|
31
|
+
margin-bottom: 28px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
input[type='file'] {
|
|
35
|
+
width: 100%;
|
|
36
|
+
margin-left: -16px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
input[type='file']::file-selector-button {
|
|
40
|
+
color: #fff;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
position: relative;
|
|
43
|
+
-webkit-user-select: none;
|
|
44
|
+
-moz-user-select: none;
|
|
45
|
+
-ms-user-select: none;
|
|
46
|
+
user-select: none;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
outline: none;
|
|
49
|
+
border: none;
|
|
50
|
+
-webkit-tap-highlight-color: transparent;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
text-decoration: none;
|
|
54
|
+
vertical-align: baseline;
|
|
55
|
+
text-align: center;
|
|
56
|
+
min-width: 64px;
|
|
57
|
+
line-height: 36px;
|
|
58
|
+
padding: 0 16px;
|
|
59
|
+
border-radius: 4px;
|
|
60
|
+
overflow: visible;
|
|
61
|
+
transform: translate3d(0, 0, 0);
|
|
62
|
+
transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),
|
|
63
|
+
box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
64
|
+
margin: 1rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.mat-error {
|
|
68
|
+
height: 16px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (max-width: 1280px) {
|
|
72
|
+
.mat-form-field-hint {
|
|
73
|
+
margin-bottom: 45px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
mat-toolbar {
|
|
2
|
+
.header-logo {
|
|
3
|
+
max-width: 140px;
|
|
4
|
+
margin-top: 8px;
|
|
5
|
+
margin-right: 32px;
|
|
6
|
+
color: #fff;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
a {
|
|
10
|
+
color: lightgray;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
|
|
14
|
+
&:hover,
|
|
15
|
+
&:active {
|
|
16
|
+
color: #fff;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mat-mini-fab {
|
|
21
|
+
background-color: #fff;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generateCssVariables($variables) {
|
|
4
|
+
:root {
|
|
5
|
+
@each $name, $color in $variables {
|
|
6
|
+
@if type-of($color) == 'map' {
|
|
7
|
+
--theme-#{$name}: #{map.get($color, 500)};
|
|
8
|
+
@include generateCssVariablesWithPrefix($color, $name);
|
|
9
|
+
} @else {
|
|
10
|
+
--theme-#{$name}: #{$color};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin generateCssVariablesWithPrefix($variables, $prefix) {
|
|
17
|
+
@each $name, $color in $variables {
|
|
18
|
+
@if type-of($color) == 'map' {
|
|
19
|
+
@include generateCssVariablesWithPrefix($color, #{$prefix}-#{$name});
|
|
20
|
+
} @else {
|
|
21
|
+
--theme-#{$prefix}-#{$name}: #{$color};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin generateClasses($variables) {
|
|
27
|
+
@each $name, $color in $variables {
|
|
28
|
+
@if type-of($color) == 'map' {
|
|
29
|
+
.theme-#{$name} {
|
|
30
|
+
color: map.get($color, 500);
|
|
31
|
+
}
|
|
32
|
+
@include generateClassesWithPrefix($color, $name);
|
|
33
|
+
} @else {
|
|
34
|
+
.theme-#{$name} {
|
|
35
|
+
color: $color;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin generateClassesWithPrefix($variables, $prefix) {
|
|
42
|
+
@each $name, $color in $variables {
|
|
43
|
+
@if type-of($color) == 'map' {
|
|
44
|
+
@include generateClassesWithPrefix($color, #{$prefix}-#{$name});
|
|
45
|
+
} @else {
|
|
46
|
+
.theme-#{$prefix}-#{$name} {
|
|
47
|
+
color: $color;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin customComponents($primary, $secondary, $tertiary) {
|
|
54
|
+
.mat-mdc-card-title.colored {
|
|
55
|
+
background-color: rgba($secondary, 0.1);
|
|
56
|
+
color: $primary;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
a,
|
|
60
|
+
a:visited {
|
|
61
|
+
color: $primary;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
input[type='file']::file-selector-button {
|
|
65
|
+
background-color: $primary;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@mixin whiteToolbar($primary, $second-color) {
|
|
70
|
+
.mat-toolbar.first-toolbar {
|
|
71
|
+
background-color: #fff !important;
|
|
72
|
+
|
|
73
|
+
.mdc-fab {
|
|
74
|
+
background-color: $primary;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.mdc-button__label {
|
|
78
|
+
color: #fff;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.mat-toolbar.second-toolbar {
|
|
83
|
+
background-image: linear-gradient(220deg, $primary, $second-color);
|
|
84
|
+
|
|
85
|
+
.mat-icon,
|
|
86
|
+
.toolbar-title {
|
|
87
|
+
color: #fff;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|