barbican-reset 1.4.4 → 1.4.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.
@@ -0,0 +1,61 @@
1
+ <template>
2
+ <b-button @click="$emit('click')" :variant="variant">
3
+
4
+ <template v-if="state === 'ready'">
5
+ <template v-if="$slots.ready">
6
+ <slot name="ready" />
7
+ </template>
8
+ <template v-else>
9
+ {{ state }}
10
+ </template>
11
+ </template>
12
+
13
+ <template v-else-if="state === 'loading'">
14
+ <template v-if="$slots.loading">
15
+ <slot name="loading" />
16
+ </template>
17
+ <template v-else>
18
+ {{ state }}
19
+ </template>
20
+ </template>
21
+
22
+ <template v-else-if="state === 'error'">
23
+ <template v-if="$slots.error">
24
+ <slot name="error" />
25
+ </template>
26
+ <template v-else>
27
+ {{ state }}
28
+ </template>
29
+ </template>
30
+
31
+ <template v-else-if="state === 'updated'">
32
+ <template v-if="$slots.updated">
33
+ <slot name="updated" />
34
+ </template>
35
+ <template v-else>
36
+ {{ state }}
37
+ </template>
38
+ </template>
39
+
40
+ </b-button>
41
+ </template>
42
+
43
+ <script>
44
+ import { BButton } from 'bootstrap-vue'
45
+
46
+ export default {
47
+ name: "BrButton",
48
+ props: {
49
+ state: {
50
+ type: String,
51
+ default: "ready"
52
+ },
53
+ variant: {
54
+ type: String
55
+ }
56
+ },
57
+ components: {
58
+ BButton
59
+ }
60
+ }
61
+ </script>
@@ -73,7 +73,7 @@ export default {
73
73
 
74
74
  <style lang="scss" module>
75
75
 
76
- @import "../helpers/mixins/index.scss";
76
+ @import "../helpers";
77
77
 
78
78
  .svg {
79
79
  fill: white;
@@ -24,7 +24,7 @@ export default {
24
24
 
25
25
  <style lang="scss" module>
26
26
 
27
- @import "../helpers/mixins/index.scss";
27
+ @import "../helpers";
28
28
 
29
29
  .component {
30
30
  border-radius: $border-radius-lg;
@@ -35,6 +35,14 @@ export default {
35
35
  gap: 1rem;
36
36
  }
37
37
 
38
+ nav a {
39
+ @include focus {
40
+ @include single-box($white);
41
+ background-color: $white;
42
+ color: $black;
43
+ }
44
+ }
45
+
38
46
  &:not(.splash) {
39
47
  padding-bottom: 3.75rem;
40
48
  }
@@ -0,0 +1,37 @@
1
+ <template>
2
+ <a :href="href" :class="$style.skiplink">
3
+ <slot></slot>
4
+ </a>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ name: "SkipLink",
10
+ props: {
11
+ href: {
12
+ type: String,
13
+ required: true
14
+ }
15
+ }
16
+ }
17
+ </script>
18
+
19
+ <style lang="scss" module>
20
+
21
+ .skiplink {
22
+ border: 0.25rem solid $c-grey-night;
23
+ border-radius: $border-radius-lg;
24
+ background-color: $white;
25
+ color: $c-grey-night;
26
+ position: absolute;
27
+ padding: 0.5rem;
28
+ z-index: -1;
29
+ opacity: 0;
30
+
31
+ @include focus {
32
+ opacity: 1;
33
+ z-index: 2;
34
+ }
35
+ }
36
+
37
+ </style>
@@ -17,4 +17,12 @@
17
17
  @import "festival.scss";
18
18
  @import "focus.scss";
19
19
  @import "font.scss";
20
- @import "loading.scss";
20
+ @import "loading.scss";
21
+
22
+ @mixin table_link {
23
+ @include focus {
24
+ @include single-box($c-grey-night);
25
+ background-color: $c-grey-night;
26
+ color: $white;
27
+ }
28
+ }
@@ -1,12 +1,10 @@
1
1
  <template>
2
- <div :class="$style.lockup">
3
- <a href="//www.cityoflondon.gov.uk" target="_blank">
4
- <city-of-london-logo />
5
- </a>
2
+ <a :class="$style.lockup" href="//www.cityoflondon.gov.uk" target="_blank">
3
+ <city-of-london-logo />
6
4
  <small>
7
5
  The City of London<br />Corporation is the founder<br />and principal funder of<br />the Barbican Centre
8
6
  </small>
9
- </div>
7
+ </a>
10
8
  </template>
11
9
 
12
10
  <script>
@@ -21,10 +19,17 @@ export default {
21
19
 
22
20
  <style lang="scss" module>
23
21
 
22
+ @import "../helpers";
23
+
24
24
  .lockup {
25
+ text-decoration: none;
25
26
  display: inline-flex;
26
27
  align-items: center;
27
- gap: 0.625rem;
28
+ gap: 0.625rem;
29
+
30
+ @include focus {
31
+ text-decoration: underline;
32
+ }
28
33
  }
29
34
 
30
35
  </style>
package/index.js CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  import Container from './components/container'
3
2
  import EventSummary from './components/event_summary'
4
3
  import AccountTitle from './components/account_title'
@@ -22,6 +21,8 @@ import FluidIframe from './components/fluid_iframe'
22
21
  import HelpRow from './components/help_row'
23
22
  import VideoContent from './components/video_content'
24
23
  import PaymentLogo from './components/payment_logo'
24
+ import SkipLink from './components/skip_link'
25
+ import BrButton from './components/br_button'
25
26
 
26
27
  export {
27
28
  Loader,
@@ -46,5 +47,7 @@ export {
46
47
  HelpRow,
47
48
  CardDisplay,
48
49
  VideoContent,
49
- PaymentLogo
50
+ PaymentLogo,
51
+ SkipLink,
52
+ BrButton
50
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.4.4",
3
+ "version": "1.4.8",
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": {
@@ -51,4 +51,8 @@ table.etickets {
51
51
  display: none;
52
52
  }
53
53
  }
54
+
55
+ a {
56
+ @include table_link;
57
+ }
54
58
  }
@@ -13,7 +13,7 @@ table.orders {
13
13
  }
14
14
  }
15
15
 
16
- thead tr, tbody tr.active {
16
+ thead tr, tbody tr {
17
17
  border: 1px solid $c-grey-pearl;
18
18
  display: grid;
19
19
 
@@ -44,6 +44,12 @@ table.orders {
44
44
  }
45
45
  }
46
46
 
47
+ tr.full-width {
48
+ justify-content: center;
49
+ grid-template: none;
50
+ border: none;
51
+ }
52
+
47
53
  label {
48
54
  font-size: $font-size-lg;
49
55
 
@@ -51,4 +57,8 @@ table.orders {
51
57
  display: none;
52
58
  }
53
59
  }
60
+
61
+ a {
62
+ @include table_link;
63
+ }
54
64
  }
@@ -67,6 +67,11 @@ table.preferences {
67
67
  input[type=radio] {
68
68
  position: relative;
69
69
  @include inset(auto);
70
+
71
+ @include focus {
72
+ outline: 0.15rem solid $blue;
73
+ outline-offset: 0.25rem;
74
+ }
70
75
  }
71
76
  }
72
77
  }