barbican-reset 1.4.1 → 1.4.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.
@@ -197,6 +197,16 @@
197
197
  }
198
198
  }
199
199
 
200
+ @mixin btn-remove-gift {
201
+ @include media-breakpoint-down(xl) {
202
+ @include btn-remove;
203
+ width: 100%;
204
+ }
205
+ @include media-breakpoint-up(xl) {
206
+ @include btn-link;
207
+ }
208
+ }
209
+
200
210
  @mixin btn-membership-card {
201
211
  @include button-outline(
202
212
  $color: $white,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/scss/_atomic.scss CHANGED
@@ -54,6 +54,10 @@ $aligns: "left", "center", "right";
54
54
  margin-top: 0.5rem;
55
55
  }
56
56
 
57
+ .margin-top-025 {
58
+ margin-top: 0.25rem;
59
+ }
60
+
57
61
  .overflow-hidden {
58
62
  overflow: hidden;
59
63
  }
package/scss/_btn.scss CHANGED
@@ -52,6 +52,10 @@
52
52
  @include btn-remove-ticket;
53
53
  }
54
54
 
55
+ &.btn-remove-gift {
56
+ @include btn-remove-gift;
57
+ }
58
+
55
59
  &.btn-membership-card {
56
60
  @include btn-membership-card;
57
61
  }
@@ -0,0 +1,8 @@
1
+ .custom-select {
2
+ background-color: $c-grey-alpine;
3
+ border-color: $c-grey-concrete;
4
+ border-radius: $border-radius;
5
+ padding: 0.75rem 0.5rem;
6
+ color: $c-grey-night;
7
+ width: 100%;
8
+ }
@@ -0,0 +1,11 @@
1
+ .promo-form {
2
+ @include basket-row-grid;
3
+ margin-top: 0.5rem;
4
+ }
5
+
6
+ .promo-added {
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ display: flex;
10
+ gap: 1rem;
11
+ }
package/scss/index.scss CHANGED
@@ -13,6 +13,7 @@
13
13
  @import "loading-animation.scss";
14
14
  @import "close-icon.scss";
15
15
  @import "table/index.scss";
16
+ @import "promo.scss";
16
17
 
17
18
  // bootstrap component styles
18
19
  @import "btn.scss";
@@ -20,6 +21,7 @@
20
21
  @import "card-group.scss";
21
22
  @import "checkbox.scss";
22
23
  @import "checkbox-group.scss";
24
+ @import "custom-select.scss";
23
25
  @import "form.scss";
24
26
  @import "list.scss";
25
27
  @import "input.scss";
@@ -28,9 +28,4 @@ table.basket tr {
28
28
  width: 100%;
29
29
  }
30
30
  }
31
- }
32
-
33
- table.basket .promo-form {
34
- @include basket-row-grid;
35
- margin-top: 0.5rem;
36
- }
31
+ }
@@ -0,0 +1,56 @@
1
+ table.gifts {
2
+
3
+ $mq: xl;
4
+
5
+ thead {
6
+ @include media-breakpoint-down($mq) {
7
+ display: none;
8
+ }
9
+ }
10
+
11
+ th {
12
+ font-weight: 700;
13
+ }
14
+
15
+ tr {
16
+ @include media-breakpoint-up($mq) {
17
+ @include table-row;
18
+ grid-template-columns: 3fr 5fr 5fr 2fr 2fr;
19
+ display: grid;
20
+ gap: 0.75rem;
21
+
22
+ label {
23
+ display: none;
24
+ }
25
+ }
26
+
27
+ @include media-breakpoint-down($mq) {
28
+ border-radius: $border-radius-lg;
29
+ border: 1px solid $c-grey-pearl;
30
+ display: block;
31
+ padding: 1rem;
32
+
33
+ &:not(:last-of-type) {
34
+ margin-bottom: 1rem;
35
+ }
36
+
37
+ td {
38
+ justify-content: space-between;
39
+ display: flex;
40
+
41
+ &:not(:last-of-type) {
42
+ padding-bottom: 0.25rem;
43
+ padding-top: 0.25rem;
44
+ }
45
+
46
+ &:not(:first-of-type):not(:last-of-type) {
47
+ border-top: 1px solid $c-grey-pearl;
48
+ }
49
+
50
+ &:last-of-type {
51
+ margin-top: 0.5rem;
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
@@ -7,6 +7,7 @@
7
7
  @import "preferences.scss";
8
8
  @import "etickets.scss";
9
9
  @import "membership.scss";
10
+ @import "gifts.scss";
10
11
 
11
12
  table {
12
13
  border-spacing: 0;