barbican-reset 1.9.2 → 1.9.3

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.
@@ -14,14 +14,7 @@ import { DoneIcon } from 'barbican-reset/icons/confirm'
14
14
 
15
15
  export default {
16
16
  mixins: [Animations],
17
- components: {
18
- DoneIcon,
19
- },
20
- props: {
21
- type: {
22
- type: String
23
- },
24
- },
17
+ components: { DoneIcon },
25
18
  mounted() {
26
19
  this.animateDone();
27
20
  },
@@ -13,6 +13,7 @@
13
13
 
14
14
  @mixin table-label($mq:md) {
15
15
  font-size: $font-size-lg;
16
+ margin-bottom: 0.25rem;
16
17
 
17
18
  @include media-breakpoint-up($mq) {
18
19
  @include sr-only;
@@ -33,15 +34,6 @@
33
34
  }
34
35
  }
35
36
 
36
- $columns-orders: 10rem 8rem auto 8rem;
37
- $columns-details--header: auto 10rem 8rem;
38
- $columns-details--checkbox: 2.75rem auto 10rem 8rem;
39
- $columns-etickets: 8rem auto 8rem;
40
- $columns-gifts: 3fr 5fr 5fr 2fr 2fr;
41
- $columns-membership: auto 10rem 10rem 8rem;
42
- $columns-preferences: auto repeat(2, 5rem);
43
- $columns-tickets: 2fr 5fr 5fr 2fr;
44
-
45
37
  @import "table/basket";
46
38
  @import "table/details";
47
39
  @import "table/etickets";
@@ -53,5 +45,4 @@ $columns-tickets: 2fr 5fr 5fr 2fr;
53
45
  @import "table/section";
54
46
  @import "table/tickets";
55
47
 
56
-
57
-
48
+ @import "table/row/disabled";
@@ -40,6 +40,12 @@
40
40
  th, td {
41
41
  padding: 0.75rem;
42
42
 
43
+ &[empty=true] {
44
+ @include media-breakpoint-down($mq) {
45
+ padding: 0;
46
+ }
47
+ }
48
+
43
49
  @include media-breakpoint-up($mq) {
44
50
  &:not(:last-of-type) {
45
51
  border-right: 1px solid $c-grey-l87;
@@ -0,0 +1,21 @@
1
+
2
+ @mixin disabled-row {
3
+ background-color: $c-grey-l96;
4
+ pointer-events: none;
5
+ color: $c-grey-l44;
6
+ user-select: none;
7
+
8
+ strike {
9
+ color: $c-grey-l44;
10
+ }
11
+
12
+ button {
13
+ background-color: transparent;
14
+ border-color: $c-grey-l44;
15
+ color: $c-grey-l44;
16
+ }
17
+
18
+ a {
19
+ color: $c-grey-l44;
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+
2
+ $columns-orders: 10rem 8rem auto 8rem;
3
+ $columns-details--header: auto 10rem 8rem;
4
+ $columns-details--checkbox: 2.75rem auto 10rem 8rem;
5
+ $columns-etickets: 8rem auto 8rem;
6
+ $columns-gifts: 3fr 5fr 5fr 2fr 2fr;
7
+ $columns-membership: auto 10rem 10rem 8rem;
8
+ $columns-preferences: auto repeat(2, 5rem);
9
+ $columns-tickets: 2fr 5fr 5fr 2fr;
@@ -3,4 +3,5 @@
3
3
  @import "alerts";
4
4
  @import "layout";
5
5
  @import "breakpoints";
6
- @import "typography";
6
+ @import "typography";
7
+ @import "columns";
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "_args": [
3
3
  [
4
- "barbican-reset@1.9.2",
4
+ "barbican-reset@1.9.3",
5
5
  "/Users/pheading/Sites/eticketing-vue"
6
6
  ]
7
7
  ],
8
- "_from": "barbican-reset@1.9.2",
9
- "_id": "barbican-reset@1.9.2",
8
+ "_from": "barbican-reset@1.9.3",
9
+ "_id": "barbican-reset@1.9.3",
10
10
  "_inBundle": false,
11
11
  "_integrity": "sha512-9QMrzuoZ/NZfFlFagC6go3ofn5hBhU9rtSPEeGH0krwY5dBKOlfs8oGIvqUaEGFKI+jQ3spuDOQoeyYK5NRiQw==",
12
12
  "_location": "/barbican-reset",
@@ -35,18 +35,18 @@
35
35
  "_requested": {
36
36
  "type": "version",
37
37
  "registry": true,
38
- "raw": "barbican-reset@1.9.2",
38
+ "raw": "barbican-reset@1.9.3",
39
39
  "name": "barbican-reset",
40
40
  "escapedName": "barbican-reset",
41
- "rawSpec": "1.9.2",
41
+ "rawSpec": "1.9.3",
42
42
  "saveSpec": null,
43
- "fetchSpec": "1.9.2"
43
+ "fetchSpec": "1.9.3"
44
44
  },
45
45
  "_requiredBy": [
46
46
  "/"
47
47
  ],
48
- "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-1.9.2.tgz",
49
- "_spec": "1.9.2",
48
+ "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-1.9.3.tgz",
49
+ "_spec": "1.9.3",
50
50
  "_where": "/Users/pheading/Sites/eticketing-vue",
51
51
  "author": {
52
52
  "name": "Paul Heading"
@@ -96,5 +96,5 @@
96
96
  "test": "echo \"Error: no test specified\" && exit 1"
97
97
  },
98
98
  "style": "dist/css/barbican-reset.css",
99
- "version": "1.9.2"
99
+ "version": "1.9.3"
100
100
  }
@@ -3,14 +3,28 @@
3
3
 
4
4
  input[table][type="checkbox"] {
5
5
  @include inset;
6
- margin-top: 0.625rem;
6
+ margin-top: 0.25rem;
7
7
  position: relative;
8
8
  display: block;
9
9
  z-index: 1;
10
10
 
11
+ @include media-breakpoint-up(md) {
12
+ margin-top: 0.625rem;
13
+ }
14
+
11
15
  + label {
12
16
  @include sr-only;
13
17
  }
18
+
19
+ @include focus {
20
+ outline: 1px solid $c-grey-l65;
21
+ outline-offset: 0.125rem;
22
+
23
+ ~ label {
24
+ box-shadow: none;
25
+ border: none;
26
+ }
27
+ }
14
28
  }
15
29
 
16
30
  &:not(:last-of-type) {
package/scss/_table.scss CHANGED
@@ -19,6 +19,12 @@ table.orders {
19
19
  @include default-table-style;
20
20
  }
21
21
 
22
+ tr {
23
+ &[disabled=disabled] {
24
+ @include disabled-row;
25
+ }
26
+ }
27
+
22
28
  td {
23
29
  padding: 0;
24
30
  }