@firestitch/style 18.0.0 → 18.0.2

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": "@firestitch/style",
3
- "version": "18.0.0",
3
+ "version": "18.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-style"
package/styles/_core.scss CHANGED
@@ -4,6 +4,7 @@
4
4
  @use 'overflow';
5
5
  @use 'typography';
6
6
  @use 'form-field';
7
+ @use 'material';
7
8
 
8
9
  @mixin core() {
9
10
  @include headings.headings();
@@ -12,4 +13,5 @@
12
13
  @include layout.layout();
13
14
  @include overflow.overflow();
14
15
  @include typography.typography();
16
+ @include material.material();
15
17
  }
@@ -1,91 +1,25 @@
1
- @use 'form-field-multiline-subscript' as *;
2
1
  @use 'functions';
3
2
 
4
- @use '../variables';
5
-
6
3
  @mixin form-field {
7
- .form-field-lineless:not(.mat-focused) {
8
- &:hover {
9
- .mat-form-field-underline {
10
- border-top: 1px dashed functions.color-rgb(variables.$palette, .3);
11
- }
12
- }
13
- }
14
-
15
- .form-field-multiline-subscript {
16
- @include form-field-multiline-subscript;
17
- }
18
-
19
- .mat-form-field {
20
- &.mat-form-field-appearance-legacy {
21
- &.form-field-padless-top, &.form-field-padless {
22
- .mat-form-field-infix {
23
- border-top: 0;
24
- }
4
+ mat-form-field {
5
+ &.form-field-multiline-subscript {
6
+ .mat-mdc-form-field-bottom-align::before {
7
+ display: none;
25
8
  }
26
-
27
- &.form-field-padless-bottom, &.form-field-padless {
28
- .mat-form-field-underline {
29
- bottom: 0;
30
- }
31
-
32
- .mat-form-field-wrapper {
33
- padding-bottom: 0;
34
-
35
- .mat-form-field-subscript-wrapper {
36
- position: absolute !important;
37
- top: unset;
38
- margin-top: 0;
39
- }
40
- }
9
+ .mat-mdc-form-field-hint-wrapper {
10
+ position: relative;
11
+ padding-top: 3px;
41
12
  }
42
13
  }
43
14
 
44
- &.mat-form-field-appearance-standard,
45
- &.mat-form-field-appearance-outline {
46
- &.form-field-padless-top,
47
- &.form-field-padless {
48
- .mat-form-field-flex {
49
- padding-top: 0;
50
- margin-top: 0;
51
- }
52
-
53
- .mat-form-field-wrapper {
54
- margin: 0;
55
- }
56
-
57
- .mat-select-arrow-wrapper {
58
- transform: none;
59
- }
60
-
61
- .mat-form-field-infix {
62
- border-top-width: 0;
63
- }
64
-
65
- .mat-form-field-outline {
66
- top: 0;
67
- }
68
- }
69
-
70
- &.form-field-padless-bottom, &.form-field-padless {
71
- .mat-form-field-underline {
72
- bottom: 0;
73
- }
74
-
75
- .mat-form-field-wrapper {
76
- padding-bottom: 0;
77
-
78
- .mat-form-field-subscript-wrapper {
79
- position: absolute !important;
80
- top: unset;
81
- margin-top: 0;
82
- }
83
- }
15
+ &.form-field-padless-bottom,
16
+ &.form-field-padless {
17
+ .mat-mdc-form-field-subscript-wrapper {
18
+ display: none;
84
19
  }
85
20
  }
86
21
  }
87
22
 
88
-
89
23
  .form-field-grow {
90
24
  .mat-form-field-infix {
91
25
  width: fit-content;
@@ -98,8 +32,8 @@
98
32
  }
99
33
 
100
34
  .form-field-lineless:not(.mat-focused) {
101
- .mat-form-field-underline {
102
- background-color: transparent;
35
+ .mdc-text-field--outlined .mat-mdc-notch-piece {
36
+ border-color: transparent;
103
37
  }
104
38
 
105
39
  input {
@@ -0,0 +1,11 @@
1
+ @mixin material() {
2
+ :root {
3
+ --mat-sidenav-container-shape: 16px;
4
+ --mdc-protected-button-container-shape: 999px;
5
+ --mdc-text-button-container-shape: 999px;
6
+ --mat-protected-button-horizontal-padding: 24px;
7
+ --mdc-protected-button-container-height: 40px;
8
+ --mdc-elevated-card-container-shape: 12px;
9
+ --mdc-outlined-text-field-outline-color: rgb(127 127 127 / 38%);
10
+ }
11
+ }
@@ -1,26 +0,0 @@
1
- @mixin form-field-multiline-subscript {
2
- .mat-form-field-wrapper {
3
- padding-bottom: 0 !important;
4
-
5
- .mat-form-field-underline {
6
- position: initial;
7
- display: block;
8
- margin-top: -1px;
9
- }
10
-
11
- .mat-form-field-subscript-wrapper,
12
- .mat-form-field-ripple {
13
- position: initial;
14
- display: table;
15
-
16
- mat-hint:not(:empty),
17
- .fs-form-error {
18
- margin-bottom: 1em;
19
- display: block;
20
- }
21
- }
22
- .mat-form-field-subscript-wrapper {
23
- min-height: calc(1em + 1px);
24
- }
25
- }
26
- }