@madj2k/fe-frontend-kit 2.0.30 → 2.0.31

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": "@madj2k/fe-frontend-kit",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
4
4
  "description": "Shared frontend utilities, menus and mixins for projects",
5
5
  "main": "index.js",
6
6
  "style": "index.scss",
@@ -90,11 +90,13 @@
90
90
  $wrap-class: '.fullwidth',
91
91
  $default-padding: 16px,
92
92
  $padding-class: $page-wrap-class,
93
- $version: 1,
94
93
  ) {
95
94
 
96
95
  /** addition class which simply contains the normal padding */
97
96
  #{$padding-class}-padding {
97
+ @include page-padding-only($default-padding);
98
+ }
99
+ #{$padding-class}-padding-full {
98
100
  @include page-padding-only($default-padding, 'full');
99
101
  }
100
102
 
@@ -103,12 +105,18 @@
103
105
  @include media-breakpoint-up($breakpoint) {
104
106
  /** addition class which simply contains the normal padding */
105
107
  #{$padding-class}-padding {
108
+ @include page-padding-only($padding-x);
109
+ }
110
+ #{$padding-class}-padding-full {
106
111
  @include page-padding-only($padding-x, 'full');
107
112
  }
108
113
 
109
114
  body {
110
115
  /** addition class which simply contains the normal padding */
111
116
  #{$padding-class}-#{$breakpoint}-padding {
117
+ @include page-padding-only($padding-x);
118
+ }
119
+ #{$padding-class}-#{$breakpoint}-padding-full {
112
120
  @include page-padding-only($padding-x, 'full');
113
121
  }
114
122
  }
@@ -206,11 +214,8 @@
206
214
  /** ensure dominance with body-prefix */
207
215
  body #{$page-wrap-class} {
208
216
 
209
- // seems to be a bug in older version. But we keep it for compatibility
210
- @if ($version < 2) {
211
- padding-left: $padding-x - math.div($grid-gutter-width, 2);
212
- padding-right: $padding-x - math.div($grid-gutter-width, 2);
213
- }
217
+ padding-left: $padding-x - math.div($grid-gutter-width, 2);
218
+ padding-right: $padding-x - math.div($grid-gutter-width, 2);
214
219
 
215
220
  /** addition class which simply contains the normal padding */
216
221
  #{$padding-class}-#{$breakpoint}-padding {