@rypen-dev/shared-components 3.0.6 → 3.0.8

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@rypen-dev/shared-components",
3
3
  "description": "Shared styles and Vuejs ui components for Rypen projects.",
4
- "version": "3.0.6",
4
+ "version": "3.0.8",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
7
7
  "build": "webpack --config ./webpack.config.js",
@@ -162,6 +162,9 @@ $form-field-padding: 0.625rem 1rem !default;
162
162
  $grid-container-gutter: 1.25rem !default;
163
163
  $grid-container-gutter-medium: 0.9375rem !default;
164
164
 
165
+ $grid-cell-padding: 0.625rem !default;
166
+ $grid-cell-padding-medium: 0.9375rem !default;
167
+
165
168
  $true-max-width: 1920px !default;
166
169
 
167
170
  $dealer-base-radius: 5px !default;
@@ -511,6 +511,10 @@ button,
511
511
  width: 300px;
512
512
  }
513
513
 
514
+ &.flat {
515
+ box-shadow: none !important;
516
+ }
517
+
514
518
  &.primary {
515
519
  background-color: $primary;
516
520
  color: $white;
@@ -626,6 +630,17 @@ button,
626
630
  }
627
631
  }
628
632
 
633
+ &.attention {
634
+ background-color: $attention;
635
+ color: $white;
636
+
637
+ &:hover,
638
+ &:focus {
639
+ background-color: $button-hover-bg-color;
640
+ color: $attention;
641
+ }
642
+ }
643
+
629
644
  &.dark-gray {
630
645
  background-color: $dark-gray;
631
646
  color: $white;
@@ -111,9 +111,6 @@
111
111
  .form {
112
112
  margin: 30px 0 20px;
113
113
 
114
- &.restricted {
115
- }
116
-
117
114
  &.side-by-side {
118
115
  label:not(.button) {
119
116
  text-transform: none;
@@ -209,6 +206,28 @@
209
206
  }
210
207
  }
211
208
 
209
+ &.accommodate-grid {
210
+ .scrollable-content {
211
+ overflow-x: hidden;
212
+ }
213
+
214
+ .modal-body {
215
+ margin-left: -$grid-cell-padding;
216
+ margin-right: -$grid-cell-padding;
217
+ padding-left: $grid-cell-padding;
218
+ padding-right: $grid-cell-padding;
219
+ }
220
+
221
+ @media (min-width: map-get($breakpoints, medium)) {
222
+ .modal-body {
223
+ margin-left: -$grid-cell-padding-medium;
224
+ margin-right: -$grid-cell-padding-medium;
225
+ padding-left: $grid-cell-padding-medium;
226
+ padding-right: $grid-cell-padding-medium;
227
+ }
228
+ }
229
+ }
230
+
212
231
  @media (max-width: map-get($breakpoints, medium) - 1px) {
213
232
  .modal-header {
214
233
  padding-top: 20px;
@@ -293,6 +312,13 @@
293
312
  flex-grow: 1;
294
313
  margin-bottom: 0;
295
314
 
315
+ &.value {
316
+ height: 44px;
317
+ display: flex;
318
+ align-items: center;
319
+ color: $dark-gray;
320
+ }
321
+
296
322
  button,
297
323
  .button {
298
324
  &.full {