barbican-reset 1.9.0 → 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
  },
@@ -10,6 +10,10 @@
10
10
  background-color: $fade;
11
11
  border-color: $light;
12
12
  color: $main;
13
+
14
+ svg {
15
+ fill: $main;
16
+ }
13
17
  }
14
18
 
15
19
  @mixin br-alert-wrap--toggle {
@@ -116,16 +116,17 @@
116
116
  @mixin button-link(
117
117
  $color: inherit,
118
118
  $background: transparent,
119
- $padding: false,
119
+ $padding: 0,
120
120
  $line-height: false) {
121
121
  background-color: $background;
122
122
  text-decoration: underline;
123
123
  font-weight: inherit;
124
+ padding: $padding;
124
125
  border-radius: 0;
126
+ text-align: left;
125
127
  color: $color;
126
128
 
127
129
  @if $line-height { line-height: $line-height; }
128
- @if $padding { padding: $padding; }
129
130
  }
130
131
 
131
132
  @mixin btn-primary {
@@ -212,7 +213,7 @@
212
213
  }
213
214
 
214
215
  @mixin btn-link {
215
- @include button-link;
216
+ @include button-link($line-height: 1.3);
216
217
  @include focus {
217
218
  @include single-box($c-grey-l21);
218
219
  background-color: $c-grey-l21;
@@ -225,7 +226,6 @@
225
226
  $padding: 1.25em,
226
227
  $background: $c-grey-l96);
227
228
  font-weight: 700;
228
- text-align: left;
229
229
  width: 100%;
230
230
 
231
231
  @include focus {
@@ -3,6 +3,10 @@
3
3
  border: 1px solid $c-grey-l87;
4
4
  border-radius: $border-radius-lg;
5
5
  background-color: white;
6
+
7
+ + .card {
8
+ margin-top: 1rem;
9
+ }
6
10
  }
7
11
 
8
12
  @mixin card-header {
@@ -39,6 +39,12 @@
39
39
  background-color: $c-grey-l96;
40
40
  }
41
41
 
42
+ @mixin default-label-focus {
43
+ @include single-box($c-grey-l44, 0.0625rem);
44
+ border: 1px solid $c-grey-l44;
45
+ background-color: $c-grey-l96;
46
+ }
47
+
42
48
  @mixin neutral-status-colors {
43
49
  background-color: $c-status-neutral-fade;
44
50
  border: 1px solid $c-status-neutral;
@@ -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";
@@ -24,9 +24,7 @@
24
24
  outline: none;
25
25
 
26
26
  ~ label {
27
- @include single-box($c-grey-l44, 0.0625rem);
28
- border: 1px solid $c-grey-l44;
29
- background-color: $c-grey-l96;
27
+ @include default-label-focus;
30
28
  }
31
29
 
32
30
  &:checked ~ label {
@@ -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;
@@ -22,4 +22,6 @@ $height-dashboard-banner: 25rem;
22
22
  $width-power-related: 66rem;
23
23
  $gap-accordion: 2rem;
24
24
 
25
- $select-arrow: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e";
25
+ $select-arrow: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e";
26
+
27
+ $box-shadow-card: 0 0 0.5rem rgba($black, 0.1);
@@ -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,31 +1,56 @@
1
1
  {
2
- "name": "barbican-reset",
3
- "version": "1.9.0",
4
- "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
2
+ "_args": [
3
+ [
4
+ "barbican-reset@1.9.3",
5
+ "/Users/pheading/Sites/eticketing-vue"
6
+ ]
7
+ ],
8
+ "_from": "barbican-reset@1.9.3",
9
+ "_id": "barbican-reset@1.9.3",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-9QMrzuoZ/NZfFlFagC6go3ofn5hBhU9rtSPEeGH0krwY5dBKOlfs8oGIvqUaEGFKI+jQ3spuDOQoeyYK5NRiQw==",
12
+ "_location": "/barbican-reset",
13
+ "_phantomChildren": {
14
+ "array-flatten": "1.1.1",
15
+ "content-type": "1.0.4",
16
+ "cookie-signature": "1.0.6",
17
+ "ee-first": "1.1.1",
18
+ "encodeurl": "1.0.2",
19
+ "escape-html": "1.0.3",
20
+ "etag": "1.8.1",
21
+ "fresh": "0.5.2",
22
+ "iconv-lite": "0.4.24",
23
+ "inherits": "2.0.4",
24
+ "merge-descriptors": "1.0.1",
25
+ "methods": "1.1.2",
26
+ "parseurl": "1.3.3",
27
+ "path-to-regexp": "0.1.7",
28
+ "range-parser": "1.2.1",
29
+ "side-channel": "1.0.4",
30
+ "type-is": "1.6.18",
31
+ "unpipe": "1.0.0",
32
+ "utils-merge": "1.0.1",
33
+ "vary": "1.1.2"
8
34
  },
9
- "style": "dist/css/barbican-reset.css",
10
- "sass": "scss/index.scss",
11
- "repository": {
12
- "type": "git",
13
- "url": "https://bitbucket.org/barbicandev/barbican-reset/"
35
+ "_requested": {
36
+ "type": "version",
37
+ "registry": true,
38
+ "raw": "barbican-reset@1.9.3",
39
+ "name": "barbican-reset",
40
+ "escapedName": "barbican-reset",
41
+ "rawSpec": "1.9.3",
42
+ "saveSpec": null,
43
+ "fetchSpec": "1.9.3"
14
44
  },
15
- "files": [
16
- "animations/**/*",
17
- "components/**/*",
18
- "dist/**/*",
19
- "fonts/*.{woff,woff2}",
20
- "helpers/**/*",
21
- "icons/**/*",
22
- "library/**/*",
23
- "logos/*",
24
- "scss/**/*",
25
- "focus-visible.min.js"
45
+ "_requiredBy": [
46
+ "/"
26
47
  ],
27
- "author": "Paul Heading",
28
- "license": "MIT",
48
+ "_resolved": "https://registry.npmjs.org/barbican-reset/-/barbican-reset-1.9.3.tgz",
49
+ "_spec": "1.9.3",
50
+ "_where": "/Users/pheading/Sites/eticketing-vue",
51
+ "author": {
52
+ "name": "Paul Heading"
53
+ },
29
54
  "dependencies": {
30
55
  "bootstrap": "^5.1.3",
31
56
  "bootstrap-vue": "^2.21.2",
@@ -44,5 +69,32 @@
44
69
  "sass": "^1.41.0",
45
70
  "vue-moment": "^4.1.0",
46
71
  "vue-slick-carousel": "^1.0.6"
47
- }
72
+ },
73
+ "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
74
+ "files": [
75
+ "animations/**/*",
76
+ "components/**/*",
77
+ "dist/**/*",
78
+ "fonts/*.{woff,woff2}",
79
+ "helpers/**/*",
80
+ "icons/**/*",
81
+ "library/**/*",
82
+ "logos/*",
83
+ "scss/**/*",
84
+ "focus-visible.min.js"
85
+ ],
86
+ "homepage": "https://bitbucket.org/barbicandev/barbican-reset#readme",
87
+ "license": "MIT",
88
+ "main": "index.js",
89
+ "name": "barbican-reset",
90
+ "repository": {
91
+ "type": "git",
92
+ "url": "git+https://bitbucket.org/barbicandev/barbican-reset.git"
93
+ },
94
+ "sass": "scss/index.scss",
95
+ "scripts": {
96
+ "test": "echo \"Error: no test specified\" && exit 1"
97
+ },
98
+ "style": "dist/css/barbican-reset.css",
99
+ "version": "1.9.3"
48
100
  }
package/scss/_btn.scss CHANGED
@@ -94,6 +94,17 @@
94
94
  @include btn-resale;
95
95
  }
96
96
 
97
+ &.btn-radio {
98
+ border: 1px solid hsl(0deg, 0%, 65%);
99
+ padding: 0.75rem 0.75rem 0.625rem;
100
+ font-weight: normal;
101
+ margin: 0.25rem;
102
+
103
+ @include focus {
104
+ @include default-label-focus;
105
+ }
106
+ }
107
+
97
108
  // modifyers
98
109
  &.expand {
99
110
  @include btn-expand;
@@ -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
  }
@@ -1,5 +1,5 @@
1
1
 
2
2
  .card[block] {
3
- box-shadow: 0 0 0.625rem rgba($black, 0.1);
3
+ box-shadow: $box-shadow-card;
4
4
  border: none;
5
5
  }