@firestitch/style 13.1.0 → 13.1.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": "13.1.0",
3
+ "version": "13.1.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-style"
@@ -3,64 +3,7 @@
3
3
  @mixin layout() {
4
4
  .fs-row,
5
5
  [class*='fs-row'] {
6
- display: flex;
7
- flex-direction: row;
8
- align-items: center;
9
-
10
- &[class*='.gap-lg'],
11
- &[class*='.gap-large'],
12
- &.fs-row-gap-large {
13
- column-gap: 40px;
14
- }
15
-
16
- &[class*='.gap-md'] {
17
- column-gap: 20px;
18
- }
19
-
20
- &[class*='.gap-sm'],
21
- &[class*='.gap-small'],
22
- &.fs-row-gap-small {
23
- column-gap: 10px;
24
- }
25
-
26
- &[class*='.gap-xs'],
27
- &[class*='.gap-tiny'],
28
- &.fs-row-gap-tiny {
29
- column-gap: 5px;
30
- }
31
-
32
- &[class*='.align-start'],
33
- &.fs-row-align-start {
34
- align-items: flex-start;
35
- }
36
-
37
- &[class*='.align-end'],
38
- &.fs-row-align-end {
39
- align-items: flex-end;
40
- }
41
-
42
- &[class*='.align-baseline'],
43
- &.fs-row-align-baseline {
44
- align-items: baseline;
45
- }
46
-
47
- &[class*='.wrap'],
48
- .fs-row-wrap {
49
- flex-wrap: wrap;
50
- }
51
-
52
- &[class*='.form-field'],
53
- .fs-row-form-field {
54
- column-gap: 10px;
55
-
56
- .mat-form-field-infix {
57
- width: auto;
58
- }
59
-
60
- >* {
61
- width: 100%;
62
- }
63
- }
6
+ @include attributeRow('class');
64
7
  }
65
8
 
66
9
  .fs-column {
@@ -74,33 +17,51 @@
74
17
  flex: 1;
75
18
  }
76
19
 
20
+ @media (min-width: #{variables.$break-xsmall + 1px}) {
21
+ [fs\.gt-xs*='fs-row'] {
22
+ @include attributeRow('fs\\.gt-xs');
23
+ }
24
+ }
25
+
26
+ @media (min-width: #{variables.$break-small + 1px}) {
27
+ [fs\.gt-sm*='fs-row'] {
28
+ @include attributeRow('fs\\.gt-sm');
29
+ }
30
+ }
31
+
32
+ @media (min-width: #{variables.$break-medium + 1px}) {
33
+ [fs\.gt-md*='fs-row'] {
34
+ @include attributeRow('fs\\.gt-md');
35
+ }
36
+ }
37
+
38
+ @media (min-width: #{variables.$break-large + 1px}) {
39
+ [fs\.gt-lg*='fs-row'] {
40
+ @include attributeRow('fs\\.gt-lg');
41
+ }
42
+ }
43
+
77
44
  @media (max-width: variables.$break-xsmall) {
78
45
  [fs\.lt-xs*='fs-column'] {
79
- display: flex;
80
- flex-direction: column;
81
-
82
- @include rowGaps;
83
- @include rowGapNone;
46
+ @include columnLess;
84
47
  }
85
48
  }
86
49
 
87
50
  @media (max-width: variables.$break-small) {
88
51
  [fs\.lt-sm*='fs-column'] {
89
- display: flex;
90
- flex-direction: column;
91
-
92
- @include rowGaps;
93
- @include rowGapNone;
52
+ @include columnLess;
94
53
  }
95
54
  }
96
55
 
97
56
  @media (max-width: variables.$break-medium) {
98
57
  [fs\.lt-md*='fs-column'] {
99
- display: flex;
100
- flex-direction: column;
101
-
102
- @include rowGaps;
103
- @include rowGapNone;
58
+ @include columnLess;
59
+ }
60
+ }
61
+
62
+ @media (max-width: variables.$break-large) {
63
+ [fs\.lt-lg*='fs-column'] {
64
+ @include columnLess;
104
65
  }
105
66
  }
106
67
  }
@@ -129,4 +90,77 @@
129
90
  &[fs\.lt-md*='.gap-none'] {
130
91
  row-gap: 0px;
131
92
  }
132
- }
93
+ }
94
+
95
+ @mixin columnLess {
96
+ & {
97
+ display: flex;
98
+ flex-direction: column;
99
+
100
+ @include rowGaps;
101
+ @include rowGapNone;
102
+ }
103
+ }
104
+
105
+ @mixin attributeRow($attributeName) {
106
+ & {
107
+ display: flex;
108
+ flex-direction: row;
109
+ align-items: center;
110
+
111
+ &[#{$attributeName}*='.gap-lg'],
112
+ &[#{$attributeName}*='.gap-large'],
113
+ &.fs-row-gap-large {
114
+ column-gap: 40px;
115
+ }
116
+
117
+ &[#{$attributeName}*='.gap-md'] {
118
+ column-gap: 20px;
119
+ }
120
+
121
+ &[#{$attributeName}*='.gap-sm'],
122
+ &[#{$attributeName}*='.gap-small'],
123
+ &.fs-row-gap-small {
124
+ column-gap: 10px;
125
+ }
126
+
127
+ &[#{$attributeName}*='.gap-xs'],
128
+ &[#{$attributeName}*='.gap-tiny'],
129
+ &.fs-row-gap-tiny {
130
+ column-gap: 5px;
131
+ }
132
+
133
+ &[#{$attributeName}*='.align-start'],
134
+ &.fs-row-align-start {
135
+ align-items: flex-start;
136
+ }
137
+
138
+ &[#{$attributeName}*='.align-end'],
139
+ &.fs-row-align-end {
140
+ align-items: flex-end;
141
+ }
142
+
143
+ &[#{$attributeName}*='.align-baseline'],
144
+ &.fs-row-align-baseline {
145
+ align-items: baseline;
146
+ }
147
+
148
+ &[#{$attributeName}*='.wrap'],
149
+ .fs-row-wrap {
150
+ flex-wrap: wrap;
151
+ }
152
+
153
+ &[#{$attributeName}*='.form-field'],
154
+ .fs-row-form-field {
155
+ column-gap: 10px;
156
+
157
+ .mat-form-field-infix {
158
+ width: auto;
159
+ }
160
+
161
+ >* {
162
+ width: 100%;
163
+ }
164
+ }
165
+ }
166
+ }
@@ -1,31 +1,16 @@
1
1
  @mixin overflow() {
2
2
  .overflow-shadow {
3
- position: relative;
4
- z-index: 1;
5
- //transform: perspective(1px);
6
- background: #FFF no-repeat;
7
- background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(213, 213, 213, 0) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.1068802521) 0%, rgba(213, 213, 213, 0) 100%);
8
- background-position: 0 0, 0 100%;
9
- background-size: 100% 5px;
10
-
11
- &:before,
12
- &:after {
13
- content: "";
14
- position: relative;
15
- z-index: -1;
16
- display: block;
17
- height: 10px;
18
- background: linear-gradient(to bottom, #FFF, #FFF 30%, rgba(255, 255, 255, 0));
19
- }
20
-
21
- &:before {
22
- margin-bottom: -10px;
23
- }
24
-
25
- &:after {
26
- background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), color-stop(70%, #FFF), to(#FFF));
27
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #FFF 70%, #FFF);
28
-
29
- }
3
+ overflow: auto;
4
+ -webkit-overflow-scrolling: touch;
5
+ overflow-scrolling: touch;
6
+ background:
7
+ /* Shadow Cover TOP */ linear-gradient(white 30%, rgba(219, 49, 49, 0)) center top,
8
+ /* Shadow Cover BOTTOM */ linear-gradient(rgba(223, 10, 10, 0), white 70%) center bottom,
9
+ /* Shadow Cover TOP */ linear-gradient(rgba(0, 0, 0, 0.2) 0% , rgba(0, 0, 0, 0) 30%) center top,
10
+ /* Shadow Cover TOP */ linear-gradient(rgba(0, 0, 0, 0) 70% , rgba(0, 0, 0, 0.2) 100%) center bottom;
11
+ background-repeat: no-repeat;
12
+ background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
13
+ background-attachment: local, local, scroll, scroll;
14
+ height: 100%;
30
15
  }
31
16
  };