@enigmatry/entry-components 1.15.1-preview.3 → 1.15.1-preview.6

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.
Files changed (78) hide show
  1. package/esm2020/dialog/entry-dialog-buttons-alignment.type.mjs +2 -1
  2. package/package.json +1 -1
  3. package/styles/_generator.scss +17 -0
  4. package/styles/modules/_default-theme.scss +90 -0
  5. package/styles/modules/components/dialogs/_generator.scss +11 -0
  6. package/styles/modules/components/forms/_generator.scss +9 -0
  7. package/styles/modules/components/forms/outlines/_field-outlines.scss +45 -0
  8. package/styles/modules/components/forms/outlines/_form-fields.scss +26 -0
  9. package/styles/modules/components/forms/outlines/_general.scss +9 -0
  10. package/styles/modules/components/forms/selectors/_checkboxes.scss +55 -0
  11. package/styles/modules/components/forms/selectors/_radio-buttons.scss +39 -0
  12. package/styles/modules/components/headers/_generator.scss +12 -0
  13. package/styles/modules/components/tables/_cells.scss +23 -0
  14. package/styles/modules/components/tables/_generator.scss +7 -0
  15. package/styles/modules/components/tables/_no-result.scss +12 -0
  16. package/styles/modules/components/tables/_rows.scss +53 -0
  17. package/styles/modules/components/tables/_sorting.scss +18 -0
  18. package/styles/modules/components/tables/_table-body.scss +11 -0
  19. package/styles/modules/elements/_generator.scss +20 -0
  20. package/styles/modules/elements/anchors/_generator.scss +16 -0
  21. package/styles/modules/elements/buttons/_default.scss +12 -0
  22. package/styles/modules/elements/buttons/_generator.scss +45 -0
  23. package/styles/modules/states/_hover.scss +11 -20
  24. package/styles/modules/typography/_fonts.scss +40 -55
  25. package/styles/partials/core/components/_index.scss +4 -0
  26. package/{dialog/styles → styles}/partials/core/components/dialogs/_general.scss +9 -10
  27. package/styles/partials/core/components/forms/_general.scss +32 -0
  28. package/styles/partials/core/components/headers/_general.scss +7 -0
  29. package/styles/partials/core/components/tables/_action-cells.scss +26 -0
  30. package/styles/partials/core/components/tables/_cells.scss +39 -0
  31. package/styles/partials/core/components/tables/_index.scss +5 -0
  32. package/styles/partials/core/components/tables/_layout.scss +47 -0
  33. package/styles/partials/core/components/tables/_rows.scss +13 -0
  34. package/styles/partials/core/components/tables/_sorting.scss +8 -0
  35. package/styles/partials/test.scss +35 -0
  36. package/styles/partials/theming.scss +1 -0
  37. package/dialog/styles/modules/_generator.scss +0 -11
  38. package/dialog/styles/modules/components/dialogs/_general.scss +0 -11
  39. package/dialog/styles/modules/components/dialogs/footers/_general.scss +0 -26
  40. package/dialog/styles/modules/components/dialogs/headers/_general.scss +0 -16
  41. package/dialog/styles/modules/theming/_default-theming.scss +0 -29
  42. package/dialog/styles/partials/core/_index.scss +0 -3
  43. package/dialog/styles/partials/core/components/_index.scss +0 -1
  44. package/dialog/styles/partials/core/components/dialogs/_index.scss +0 -1
  45. package/dialog/styles/partials/core/elements/_general.scss +0 -10
  46. package/dialog/styles/partials/core/elements/_index.scss +0 -1
  47. package/dialog/styles/partials/core/layouts/_alignments.scss +0 -13
  48. package/dialog/styles/partials/core/layouts/_index.scss +0 -1
  49. package/dialog/styles/partials/main.scss +0 -1
  50. package/header/styles/modules/_generator.scss +0 -13
  51. package/header/styles/modules/components/buttons/_general.scss +0 -26
  52. package/header/styles/modules/components/headers/_general.scss +0 -13
  53. package/header/styles/modules/theming/_default-theming.scss +0 -21
  54. package/header/styles/partials/core/_index.scss +0 -3
  55. package/header/styles/partials/core/components/_index.scss +0 -2
  56. package/header/styles/partials/core/components/buttons/_general.scss +0 -42
  57. package/header/styles/partials/core/components/buttons/_index.scss +0 -1
  58. package/header/styles/partials/core/components/headers/_general.scss +0 -9
  59. package/header/styles/partials/core/components/headers/_index.scss +0 -1
  60. package/header/styles/partials/core/elements/_index.scss +0 -1
  61. package/header/styles/partials/core/elements/headings.scss +0 -3
  62. package/header/styles/partials/core/layouts/_alignment.scss +0 -6
  63. package/header/styles/partials/core/layouts/_index.scss +0 -1
  64. package/header/styles/partials/main.scss +0 -1
  65. package/styles/_generate.scss +0 -15
  66. package/styles/modules/_breakpoints.scss +0 -37
  67. package/styles/modules/_generate.scss +0 -5
  68. package/styles/modules/_variables.scss +0 -22
  69. package/styles/modules/theming/_default-theming.scss +0 -9
  70. package/styles/modules/typography/_generate.scss +0 -7
  71. package/toolbar/styles/modules/_generate.scss +0 -10
  72. package/toolbar/styles/modules/components/toolbar/_general.scss +0 -34
  73. package/toolbar/styles/modules/theming/_default-theming.scss +0 -8
  74. package/toolbar/styles/partials/core/_index.scss +0 -1
  75. package/toolbar/styles/partials/core/components/_index.scss +0 -1
  76. package/toolbar/styles/partials/core/components/toolbar/_general.scss +0 -100
  77. package/toolbar/styles/partials/core/components/toolbar/_index.scss +0 -1
  78. package/toolbar/styles/partials/main.scss +0 -1
@@ -1,2 +1,3 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktZGlhbG9nLWJ1dHRvbnMtYWxpZ25tZW50LnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvZGlhbG9nL2VudHJ5LWRpYWxvZy1idXR0b25zLWFsaWdubWVudC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIvKiogRGVmaW5lcyBob3Jpem9udGFsIGFsaWdubWVudCBvZiBkaWFsb2cgYnV0dG9ucy4gKi9cbmV4cG9ydCB0eXBlIEVudHJ5RGlhbG9nQnV0dG9uc0FsaWdubWVudCA9ICdhbGlnbi1sZWZ0JyB8ICdhbGlnbi1jZW50ZXInIHwgJ2FsaWduLXJpZ2h0JztcbiJdfQ==
2
+ // TODO: sort out this by using classes from Scss Foundation instead of reinventing the wheel
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktZGlhbG9nLWJ1dHRvbnMtYWxpZ25tZW50LnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvZGlhbG9nL2VudHJ5LWRpYWxvZy1idXR0b25zLWFsaWdubWVudC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSw2RkFBNkYiLCJzb3VyY2VzQ29udGVudCI6WyIvKiogRGVmaW5lcyBob3Jpem9udGFsIGFsaWdubWVudCBvZiBkaWFsb2cgYnV0dG9ucy4gKi9cbmV4cG9ydCB0eXBlIEVudHJ5RGlhbG9nQnV0dG9uc0FsaWdubWVudCA9ICdhbGlnbi1sZWZ0JyB8ICdhbGlnbi1jZW50ZXInIHwgJ2FsaWduLXJpZ2h0Jztcbi8vIFRPRE86IHNvcnQgb3V0IHRoaXMgYnkgdXNpbmcgY2xhc3NlcyBmcm9tIFNjc3MgRm91bmRhdGlvbiBpbnN0ZWFkIG9mIHJlaW52ZW50aW5nIHRoZSB3aGVlbFxuIl19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enigmatry/entry-components",
3
- "version": "1.15.1-preview.3",
3
+ "version": "1.15.1-preview.6",
4
4
  "author": "Enigmatry",
5
5
  "description": "Enigmatry entry angular material components",
6
6
  "homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/entry-components#readme",
@@ -0,0 +1,17 @@
1
+ @use 'modules/components/dialogs/generator' as dialog;
2
+ @use 'modules/components/headers/generator' as header;
3
+ @use 'modules/components/tables/generator' as table;
4
+ @use 'modules/components/forms/generator' as form;
5
+ @use 'modules/elements/generator' as elements;
6
+ @use 'modules/default-theme' as default;
7
+ @use 'sass:map';
8
+
9
+ @mixin generate-from($custom-theme: ()) {
10
+ $merged-theme: map.deep-merge(default.$theme, $custom-theme);
11
+
12
+ @include elements.generate-from($merged-theme);
13
+ @include table.generate-from($merged-theme);
14
+ @include form.generate-from($merged-theme);
15
+ @include dialog.generate-from($merged-theme);
16
+ @include header.generate-from($merged-theme);
17
+ }
@@ -0,0 +1,90 @@
1
+ /* stylelint-disable number-max-precision */
2
+ $theme: (
3
+ general: (
4
+ colors: (
5
+ primary: #2581C4,
6
+ accent: #EA518D,
7
+ dark: #323232,
8
+ disabled: #D9D9D9,
9
+ disabled-light: #F5F5F5
10
+ ),
11
+ font: (
12
+ family: '',
13
+ size: 14px
14
+ ),
15
+ buttons: (
16
+ color: #FFF
17
+ ),
18
+ inputs: (
19
+ background-color: #FFF
20
+ )
21
+ ),
22
+ forms: (
23
+ fields: (
24
+ infix-padding-top: .4375em,
25
+ infix-padding-bottom: .4375em,
26
+ label-color: #0000008A,
27
+ underline-display: block,
28
+ outline: (
29
+ border: 2px solid #EBEBEB,
30
+ border-hover: 2px solid #2581C4,
31
+ border-right: none,
32
+ border-left: none,
33
+ disabled-background: #F5F5F5,
34
+ disabled-hover: 2px solid #EBEBEB,
35
+ )
36
+ ),
37
+ checkboxes: (
38
+ width: 20px,
39
+ height: 20px,
40
+ background-color: #FFF,
41
+ checkmark-color: #000,
42
+ selected-border-color: #000,
43
+ selected-background-color: #FFF,
44
+ border: 2px solid #0000008A,
45
+ border-hover: 2px solid #0000008A,
46
+ border-radius: 0,
47
+ label-breaking: nowrap,
48
+ ),
49
+ radio-buttons: (
50
+ align: flex-start,
51
+ white-space: nowrap,
52
+ ),
53
+ ),
54
+ tables: (
55
+ cells: (
56
+ first-cell-padding-left: 4px,
57
+ last-cell-padding-right: 4px,
58
+ min-width: unset
59
+ ),
60
+ rows: (
61
+ selected-background-color: #06C,
62
+ selected-color: #FFF,
63
+ odd-even-row: odd,
64
+ odd-even-background: #F0F0F0
65
+ ),
66
+ columns: (
67
+ sorted: (
68
+ font-weight: 700,
69
+ content-align: left
70
+ )
71
+ ),
72
+ contents: (
73
+ no-result: (
74
+ font-size: 13px,
75
+ font-weight: 500,
76
+ text-transform: none
77
+ )
78
+ )
79
+ ),
80
+ headers: (
81
+ title: (
82
+ size: 32px
83
+ )
84
+ ),
85
+ dialogs: (
86
+ title: (
87
+ size: 20px
88
+ )
89
+ )
90
+ );
@@ -0,0 +1,11 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ .entry-dialog {
5
+ .title {
6
+ color: map.get($theme, 'general', 'colors', 'dark');
7
+ font-size: map.get($theme, 'dialogs', 'title', 'size');
8
+ }
9
+ font-size: map.get($theme, 'general', 'font', 'size');
10
+ }
11
+ }
@@ -0,0 +1,9 @@
1
+ @use 'outlines/general' as appearance-outlines;
2
+ @use 'selectors/checkboxes';
3
+ @use 'selectors/radio-buttons';
4
+
5
+ @mixin generate-from($theme) {
6
+ @include appearance-outlines.generate-from($theme);
7
+ @include checkboxes.generate-from($theme);
8
+ @include radio-buttons.generate-from($theme);
9
+ }
@@ -0,0 +1,45 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin -generate($border-value, $theme) {
4
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
5
+ .mat-form-field-outline-start, .mat-form-field-outline-gap, .mat-form-field-outline-end {
6
+ border: $border-value;
7
+ }
8
+
9
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
10
+ .mat-form-field-outline-start, .mat-form-field-outline-gap {
11
+ border-right-style: map.get($theme, 'forms', 'fields', 'outline', 'border-right');
12
+ }
13
+
14
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
15
+ .mat-form-field-outline-end, .mat-form-field-outline-gap {
16
+ border-left-style: map.get($theme, 'forms', 'fields', 'outline', 'border-left');
17
+ }
18
+ }
19
+
20
+ @mixin generate-from($theme) {
21
+ @include -generate(map.get($theme, 'forms', 'fields', 'outline', 'border'), $theme);
22
+
23
+ &.mat-focused, &:hover {
24
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
25
+ .mat-form-field-outline {
26
+ border-bottom: map.get($theme, 'forms', 'fields', 'outline', 'border-hover');
27
+ }
28
+
29
+ @include -generate(transparent, $theme);
30
+ }
31
+
32
+ &.mat-form-field-disabled {
33
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
34
+ .mat-form-field-outline {
35
+ background-color: map.get($theme, 'forms', 'fields', 'outline', 'disabled-background');
36
+ }
37
+
38
+ &:hover {
39
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
40
+ .mat-form-field-outline-start, .mat-form-field-outline-gap, .mat-form-field-outline-end {
41
+ border-color: map.get($theme, 'forms', 'fields', 'outline', 'disabled-hover');
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,26 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
5
+ .mat-form-field-label {
6
+ color: map.get($theme, 'forms', 'fields', 'label-color');
7
+ }
8
+
9
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
10
+ .mat-form-field-infix {
11
+ padding: {
12
+ top: map.get($theme, 'forms', 'fields', 'infix-padding-top');
13
+ bottom: map.get($theme, 'forms', 'fields', 'infix-padding-bottom');
14
+ }
15
+ }
16
+
17
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
18
+ .mat-form-field-flex {
19
+ background-color: map.get($theme, 'general', 'inputs', 'background-color');
20
+ }
21
+
22
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
23
+ .mat-form-field-underline {
24
+ display: map.get($theme, 'forms', 'fields', 'underline-display');
25
+ }
26
+ }
@@ -0,0 +1,9 @@
1
+ @use 'field-outlines';
2
+ @use 'form-fields';
3
+
4
+ @mixin generate-from($theme) {
5
+ .mat-form-field-appearance-outline {
6
+ @include field-outlines.generate-from($theme);
7
+ @include form-fields.generate-from($theme);
8
+ }
9
+ }
@@ -0,0 +1,55 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ .mat-checkbox {
5
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
6
+ .mat-checkbox-inner-container {
7
+ width: map.get($theme, 'forms', 'checkboxes', 'width');
8
+ height: map.get($theme, 'forms', 'checkboxes', 'height');
9
+ background-color: map.get($theme, 'forms', 'checkboxes', 'background-color');
10
+ }
11
+
12
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
13
+ .mat-checkbox-label {
14
+ white-space: map.get($theme, 'forms', 'checkboxes', 'label-breaking');
15
+ }
16
+
17
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
18
+ .mat-checkbox-frame {
19
+ border: map.get($theme, 'forms', 'checkboxes', 'border');
20
+ border-radius: map.get($theme, 'forms', 'checkboxes', 'border-radius');
21
+ }
22
+
23
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
24
+ .mat-checkbox-checkmark-path {
25
+ /* stylelint-disable-next-line declaration-no-important */
26
+ stroke: map.get($theme, 'forms', 'checkboxes', 'checkmark-color') !important;
27
+ }
28
+
29
+ &:hover {
30
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
31
+ .mat-checkbox-frame {
32
+ border: map.get($theme, 'forms', 'checkboxes', 'border-hover');
33
+ }
34
+ }
35
+
36
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
37
+ &.mat-checkbox-checked {
38
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
39
+ .mat-checkbox-background {
40
+ background-color: map.get($theme, 'forms', 'checkboxes', 'selected-background-color');
41
+
42
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
43
+ .mat-checkbox-checkmark-path {
44
+ /* stylelint-disable-next-line declaration-no-important */
45
+ stroke: map.get($theme, 'forms', 'checkboxes', 'selected-checkmark-color') !important;
46
+ }
47
+ }
48
+
49
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
50
+ .mat-checkbox-frame {
51
+ border-color: map.get($theme, 'forms', 'checkboxes', 'selected-background-color');
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,39 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
5
+ .mat-radio-group {
6
+
7
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
8
+ .mat-radio-label {
9
+ align-items: map.get($theme, 'forms', 'radio-buttons', 'align');
10
+ white-space: map.get($theme, 'forms', 'radio-buttons', 'white-space');
11
+ }
12
+
13
+ $background: map.get($theme, 'general', 'inputs', 'background-color');
14
+
15
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
16
+ .mat-radio-button {
17
+
18
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
19
+ .mat-radio-outer-circle {
20
+ border-color: $background;
21
+ background-color: $background;
22
+ }
23
+
24
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
25
+ &.mat-radio-checked {
26
+
27
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
28
+ .mat-radio-outer-circle {
29
+ border-color: $background;
30
+ }
31
+
32
+ /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */
33
+ .mat-radio-inner-circle {
34
+ background-color: map.get($theme, 'general', 'colors', 'primary');
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,12 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ .entry-header {
5
+ background-color: map.get($theme, 'general', 'colors', 'primary');
6
+
7
+ .title {
8
+ color: map.get($theme, 'general', 'colors', 'dark');
9
+ font-size: map.get($theme, 'headers', 'title', 'size');
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,23 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ .mat-mdc-cell {
5
+ color: map.get($theme, 'general', 'colors', 'dark');
6
+ }
7
+
8
+ .mat-mdc-cell, .mat-mdc-header-cell {
9
+ font-size: map.get($theme, 'general', 'font', 'size');
10
+ }
11
+
12
+ .mat-mdc-header-cell:first-of-type, .mat-mdc-cell:first-of-type, .mat-mdc-footer-cell:first-of-type {
13
+ padding-left: map.get($theme, 'tables', 'cells', 'first-cell-padding-left');
14
+ }
15
+
16
+ .mat-mdc-header-cell:last-of-type, .mat-mdc-cell:last-of-type, .mat-mdc-footer-cell:last-of-type {
17
+ padding-right: map.get($theme, 'tables', 'cells', 'last-cell-padding-right');
18
+ }
19
+
20
+ .entry-table-checkbox-cell, .entry-table-context-menu-cell {
21
+ min-width: map.get($theme, 'tables', 'cells', 'min-width');
22
+ }
23
+ }
@@ -0,0 +1,7 @@
1
+ @use 'no-result';
2
+ @use 'table-body' as table;
3
+
4
+ @mixin generate-from($theme) {
5
+ @include table.generate-from($theme);
6
+ @include no-result.generate-from($theme);
7
+ }
@@ -0,0 +1,12 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ .entry-table-no-result {
5
+ text-transform: map.get($theme, 'tables', 'contents', 'no-result', 'text-transform');
6
+
7
+ font: {
8
+ size: map.get($theme, 'tables', 'contents', 'no-result', 'font-size');
9
+ weight: map.get($theme, 'tables', 'contents', 'no-result', 'font-weight');
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,53 @@
1
+ @use 'sass:map';
2
+ @use '@enigmatry/scss-foundation/src/modules/lists/row-coloring' as list;
3
+
4
+ @mixin generate-from($theme) {
5
+ .mat-mdc-row {
6
+ $edge-selected-color: map.get($theme, 'forms', 'checkboxes', 'selected-border-color');
7
+
8
+ @include list.row-coloring(map.get($theme, 'tables', 'rows', 'odd-even-background'),
9
+ map.get($theme, 'tables', 'rows', 'odd-even-row'));
10
+
11
+ /* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
12
+ .mat-checkbox-inner-container {
13
+ background-color: map.get($theme, 'forms', 'checkboxes', 'background-color');
14
+ }
15
+
16
+ &.selected {
17
+ background-color: map.get($theme, 'tables', 'rows', 'selected-background-color');
18
+
19
+ .mat-mdc-cell {
20
+ color: map.get($theme, 'tables', 'rows', 'selected-color');
21
+ }
22
+
23
+ /* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
24
+ .mat-checkbox-checked {
25
+ /* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
26
+ .mat-checkbox-background {
27
+ background-color: map.get($theme, 'forms', 'checkboxes', 'selected-background-color');
28
+
29
+ /* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
30
+ /* stylelint-disable-next-line max-nesting-depth, selector-max-combinators, selector-max-compound-selectors */
31
+ .mat-checkbox-checkmark-path {
32
+ /* stylelint-disable-next-line declaration-no-important */
33
+ stroke: $edge-selected-color !important;
34
+ }
35
+ }
36
+
37
+ /* TODO(mdc-migration): The following rule targets internal classes of checkbox that may no longer apply for the MDC version. */
38
+ .mat-checkbox-frame {
39
+ border-color: $edge-selected-color;
40
+ }
41
+ }
42
+ }
43
+ }
44
+
45
+ .mat-row-disabled {
46
+ background-color: map.get($theme, 'general', 'colors', 'disabled-light');
47
+ }
48
+
49
+ .entry-table-menu .context-menu-item:hover {
50
+ background-color: map.get($theme, 'general', 'colors', 'accent');
51
+ color: map.get($theme, 'general', 'colors', 'dark');
52
+ }
53
+ }
@@ -0,0 +1,18 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ .mat-sort-header-sorted {
5
+ font: {
6
+ size: map.get($theme, 'general', 'font', 'size');
7
+ weight: map.get($theme, 'tables', 'columns', 'sorted', 'font-weight');
8
+ }
9
+ }
10
+
11
+ .mat-sort-header-sorted, .mat-sort-header-arrow {
12
+ color: map.get($theme, 'general', 'colors', 'dark');
13
+ }
14
+
15
+ .mat-sort-header-content {
16
+ text-align: map.get($theme, 'tables', 'columns', 'sorted', 'content-align');
17
+ }
18
+ }
@@ -0,0 +1,11 @@
1
+ @use 'rows';
2
+ @use 'sorting';
3
+ @use 'cells';
4
+
5
+ @mixin generate-from($theme) {
6
+ .entry-table {
7
+ @include rows.generate-from($theme);
8
+ @include sorting.generate-from($theme);
9
+ @include cells.generate-from($theme);
10
+ }
11
+ }
@@ -0,0 +1,20 @@
1
+ @use 'sass:map';
2
+ @use '../default-theme' as default;
3
+ @use '../typography/fonts';
4
+ @use 'anchors/generator' as anchors;
5
+ @use 'buttons/generator' as buttons;
6
+
7
+ $default-theme: default.$theme;
8
+
9
+ @mixin generate-from($custom-theme: ()) {
10
+ $merged-theme: map.deep-merge($default-theme, $custom-theme);
11
+
12
+ $font-family: map.get($merged-theme, 'general', 'font', 'family');
13
+
14
+ @if $font-family == '' {
15
+ // @include fonts.generate-default-font();
16
+ }
17
+
18
+ @include anchors.generate-from($merged-theme);
19
+ @include buttons.generate-from($merged-theme);
20
+ }
@@ -0,0 +1,16 @@
1
+ @use 'sass:map';
2
+
3
+ @mixin generate-from($theme) {
4
+ $colors: map.get($theme, 'general', 'colors');
5
+ $primary-color: map.get($colors, 'primary');
6
+ $accent-color: map.get($colors, 'accent');
7
+
8
+ .entry-link {
9
+ color: $primary-color;
10
+ text-decoration: none;
11
+
12
+ &:hover {
13
+ color: $accent-color;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,12 @@
1
+ %entry-button {
2
+ display: inline-block;
3
+ padding: 10px 20px;
4
+ transition: .4s;
5
+ border: 0;
6
+ line-height: 1.25;
7
+ cursor: pointer;
8
+ text: {
9
+ align: center;
10
+ decoration: none;
11
+ }
12
+ }
@@ -0,0 +1,45 @@
1
+ @use 'default';
2
+ @use 'sass:map';
3
+ @use '../../typography/fonts';
4
+ @use '../../states/hover';
5
+
6
+ @mixin generate-from($theme) {
7
+ $button-color: map.get($theme, 'general', 'buttons', 'color');
8
+ $colors: map.get($theme, 'general', 'colors');
9
+ $primary-color: map.get($colors, 'primary');
10
+ $accent-color: map.get($colors, 'accent');
11
+ $disabled-color: map.get($colors, 'disabled');
12
+
13
+ .entry-button-accent, .entry-button-primary, .entry-button-dark {
14
+ @extend %entry-button;
15
+ @include fonts.font-family-from($theme) {
16
+ @include fonts.main-bolded-font();
17
+ }
18
+ color: $button-color;
19
+ }
20
+
21
+ .entry-button-primary {
22
+ @include hover.default($primary-color, $accent-color, $button-color, $disabled-color);
23
+ }
24
+
25
+ .entry-button-accent {
26
+ @include hover.default($accent-color, $primary-color, $button-color, $disabled-color);
27
+ }
28
+
29
+ .entry-button-dark {
30
+ @include hover.default(map.get($colors, 'dark'), $primary-color, $button-color, $disabled-color);
31
+ }
32
+
33
+ .entry-button-blank {
34
+ @include fonts.font-family-from($theme) {
35
+ @include fonts.main-font();
36
+ }
37
+
38
+ @include hover.default(transparent, transparent, $accent-color, transparent);
39
+ color: $primary-color;
40
+
41
+ &:disabled {
42
+ color: $primary-color;
43
+ }
44
+ }
45
+ }
@@ -1,27 +1,18 @@
1
- @use '../variables' as vars;
1
+ @mixin default($background, $hover-background, $color, $disabled-background) {
2
+ background-color: $background;
2
3
 
3
- // TODO: remove this once implemented https://jira.enigmatry.com/browse/ETL-484
4
- @mixin default($default: vars.$accent, $hover: vars.$body-font-color) {
5
- transition: vars.$default-transition;
6
- color: $default;
7
-
8
- &:active {
9
- color: $hover;
4
+ &:hover, &:active {
5
+ background-color: $hover-background;
6
+ color: $color;
10
7
  }
11
8
 
12
- // Had to be done this way since at least Chrome isn't triggering on-touch-end on mobile so hover state remains.
13
- /* stylelint-disable-next-line at-rule-allowed-list, media-feature-name-allowed-list */
14
- @media (hover: hover) {
9
+ &:disabled, &.disabled {
10
+ background-color: $disabled-background;
11
+ cursor: not-allowed;
12
+
13
+ /* stylelint-disable-next-line selector-max-pseudo-class */
15
14
  &:hover {
16
- color: $hover;
15
+ background-color: $disabled-background;
17
16
  }
18
17
  }
19
- }
20
-
21
- @mixin background-hover($regular-background, $hover-background) {
22
- background-color: $regular-background;
23
-
24
- &:hover {
25
- background-color: $hover-background;
26
- }
27
18
  }