barbican-reset 1.8.9 → 1.9.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.
@@ -22,6 +22,7 @@ export default {
22
22
  <style lang="scss" module>
23
23
 
24
24
  .label {
25
+ @include sr-only;
25
26
  text-transform: uppercase;
26
27
  height: 0;
27
28
  width: 0;
@@ -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 {
@@ -21,7 +21,7 @@
21
21
  }
22
22
  }
23
23
 
24
- @mixin button-display($display:'ib',$gap:1em) {
24
+ @mixin button-display($display:'ib',$gap:1) {
25
25
  @if $display == 'ib' {
26
26
  vertical-align: middle;
27
27
  display: inline-block;
@@ -34,7 +34,7 @@
34
34
  @else if $display == 'flex' {
35
35
  display: inline-flex;
36
36
  align-items: center;
37
- gap: $gap;
37
+ gap: #{$gap}rem;
38
38
  }
39
39
  }
40
40
 
@@ -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 {
@@ -4,8 +4,8 @@
4
4
  border-radius: $border-radius-lg;
5
5
  background-color: white;
6
6
 
7
- &:not(:first-child) {
8
- margin-top: 1.25rem;
7
+ + .card {
8
+ margin-top: 1rem;
9
9
  }
10
10
  }
11
11
 
@@ -24,7 +24,6 @@
24
24
 
25
25
  @mixin card-body {
26
26
  padding: 1.75rem 1.75rem 1.5rem;
27
- // padding: 1.5rem;
28
27
  }
29
28
 
30
29
  @mixin card-footer {
@@ -44,10 +43,8 @@
44
43
  @mixin form-card {
45
44
  .card-header {
46
45
  @include card-header;
47
- // padding: 1.5rem 1.75rem 1.25rem;
48
46
  }
49
47
  .card-body {
50
48
  @include card-body;
51
- // padding: 1.75rem 1.75rem 1.5rem;
52
49
  }
53
50
  }
@@ -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;
@@ -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 {
@@ -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);
package/package.json CHANGED
@@ -1,31 +1,56 @@
1
1
  {
2
- "name": "barbican-reset",
3
- "version": "1.8.9",
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.2",
5
+ "/Users/pheading/Sites/eticketing-vue"
6
+ ]
7
+ ],
8
+ "_from": "barbican-reset@1.9.2",
9
+ "_id": "barbican-reset@1.9.2",
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.2",
39
+ "name": "barbican-reset",
40
+ "escapedName": "barbican-reset",
41
+ "rawSpec": "1.9.2",
42
+ "saveSpec": null,
43
+ "fetchSpec": "1.9.2"
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.2.tgz",
49
+ "_spec": "1.9.2",
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.2"
48
100
  }
package/scss/_atomic.scss CHANGED
@@ -77,4 +77,8 @@ $paddings05: "padding-top", "padding-bottom", "padding-right", "padding-left";
77
77
 
78
78
  .background-color-alt {
79
79
  background-color: $c-brand-generic-tint-98;
80
+ }
81
+
82
+ .min-width-3 {
83
+ min-width: 3rem;
80
84
  }
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;
@@ -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
  }