@enigmatry/entry-components 1.15.1-preview.17 → 1.15.1-preview.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enigmatry/entry-components",
3
- "version": "1.15.1-preview.17",
3
+ "version": "1.15.1-preview.19",
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",
@@ -1,37 +1,61 @@
1
1
  @use 'sass:map';
2
2
 
3
- $font-path: 'assets/fonts/';
3
+ $font-path: '/assets/fonts/';
4
4
  $font-sources: (
5
5
  (
6
- name: 'OpenSans',
6
+ name: 'Roboto',
7
7
  style: normal,
8
- formats: ('eot', 'woff', 'woff2', 'ttf')
8
+ formats: ('woff2'),
9
+ weight: 400
9
10
  ),
10
11
  (
11
- name: 'OpenSans',
12
+ name: 'Roboto',
12
13
  style: bold,
13
- formats: ('eot', 'woff', 'woff2', 'ttf')
14
- ),
15
- (
16
- name: 'Montserrat',
17
- style: bold,
18
- formats: ('eot', 'woff', 'woff2', 'ttf')
14
+ formats: ('woff2'),
15
+ weight: 500
19
16
  )
20
17
  );
21
18
 
19
+ // $font-sources: (
20
+ // (
21
+ // name: 'OpenSans',
22
+ // style: normal,
23
+ // formats: ('eot', 'woff', 'woff2', 'ttf')
24
+ // ),
25
+ // (
26
+ // name: 'OpenSans',
27
+ // style: bold,
28
+ // formats: ('eot', 'woff', 'woff2', 'ttf')
29
+ // ),
30
+ // (
31
+ // name: 'Montserrat',
32
+ // style: bold,
33
+ // formats: ('eot', 'woff', 'woff2', 'ttf')
34
+ // )
35
+ // );
36
+
22
37
  @mixin generate-default-font() {
23
38
  @each $font in $font-sources {
24
39
  $name: map.get($font, name);
25
40
  $style: map.get($font, style);
26
41
  $formats: map.get($font, formats);
42
+ $weight: map.get($font, weight);
27
43
 
28
44
  @each $format in $formats {
29
45
  $url: '#{$font-path}#{$name}/#{$name}-#{$style}.#{$format}';
30
46
 
31
47
  @font-face {
32
48
  font: {
33
- family: '#{$name}-#{$style}';
34
49
  style: '#{$style}';
50
+
51
+ @if $weight {
52
+ family: '#{$name}';
53
+ weight: $weight;
54
+ }
55
+
56
+ @else {
57
+ family: '#{$name}-#{$style}';
58
+ }
35
59
  }
36
60
  src: url('#{$url}') format('#{$format}');
37
61
  }
@@ -67,6 +67,7 @@
67
67
  $typography: -set-text-groups-for($typography, $body-font, $buttons-font);
68
68
  $typography: -set-typography-group($typography, ('headline-1', 'headline-2', 'headline-3', 'headline-4'), $hero-titles-font);
69
69
  $typography: -set-typography-group($typography, ('headline-5', 'headline-6', 'subtitle-1', 'subtitle-2'), $titles-font);
70
+ $typography: map.set($typography, 'font-family', '"#{$buttons-font}"');
70
71
 
71
72
  @return $typography;
72
73
  }
@@ -78,9 +79,10 @@
78
79
  }
79
80
 
80
81
  @function -generate-defaults-from($typography) {
81
- $typography: -set-text-groups-for($typography, 'OpenSans-normal', 'OpenSans-bold');
82
- $typography: -set-typography-group($typography,('headline-1', 'headline-2', 'headline-3',
83
- 'headline-4', 'headline-5', 'headline-6', 'subtitle-1', 'subtitle-2'),'Montserrat-bold');
82
+ // Return Roboto (default Angular Material's font (for now).
83
+ // $typography: -set-text-groups-for($typography, 'OpenSans-normal', 'OpenSans-bold');
84
+ // $typography: -set-typography-group($typography,('headline-1', 'headline-2', 'headline-3',
85
+ // 'headline-4', 'headline-5', 'headline-6', 'subtitle-1', 'subtitle-2'),'Montserrat-bold');
84
86
  @return $typography;
85
87
  }
86
88
 
@@ -93,6 +95,6 @@
93
95
  }
94
96
 
95
97
  @function -set-typography-font($typography, $section, $font) {
96
- $typography: map.set($typography, $section, 'font-family', $font);
98
+ $typography: map.set($typography, $section, 'font-family', '"#{$font}"');
97
99
  @return $typography;
98
100
  }
@@ -12,14 +12,14 @@
12
12
  .entry-checkbox {
13
13
  display: block;
14
14
  }
15
- }
16
15
 
17
- .mat-mdc-form-field {
18
- margin-bottom: 20px;
19
- }
20
-
21
- .mdc-form-field {
22
- margin-bottom: 10px;
16
+ .mat-mdc-form-field {
17
+ margin-bottom: 20px;
18
+ }
19
+
20
+ .mdc-form-field {
21
+ margin-bottom: 10px;
22
+ }
23
23
  }
24
24
 
25
25
  .datetimepicker {
@@ -14,6 +14,10 @@
14
14
  overflow: auto;
15
15
  }
16
16
 
17
+ .entry-table-content {
18
+ flex-direction: column;
19
+ }
20
+
17
21
  .entry-table-footer {
18
22
  position: relative;
19
23
  z-index: 1;