barbican-reset 1.4.3 → 1.4.7

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.
@@ -73,6 +73,8 @@ export default {
73
73
 
74
74
  <style lang="scss" module>
75
75
 
76
+ @import "../helpers";
77
+
76
78
  .svg {
77
79
  fill: white;
78
80
  }
@@ -91,18 +93,18 @@ export default {
91
93
  }
92
94
 
93
95
  .image {
96
+ @include inset(0);
94
97
  position: absolute;
95
98
  height: auto;
96
99
  width: 100%;
97
- inset: 0;
98
100
  }
99
101
 
100
102
  .title {
103
+ @include inset(0);
101
104
  background-color: rgba($c-grey-midnight, 0.85);
102
105
  place-items: center;
103
106
  position: absolute;
104
107
  display: grid;
105
- inset: 0;
106
108
  }
107
109
 
108
110
  .component.hero {
@@ -24,6 +24,8 @@ export default {
24
24
 
25
25
  <style lang="scss" module>
26
26
 
27
+ @import "../helpers";
28
+
27
29
  .component {
28
30
  border-radius: $border-radius-lg;
29
31
  padding-top: 56.25%;
@@ -33,7 +35,7 @@ export default {
33
35
 
34
36
  .component > iframe {
35
37
  position: absolute;
36
- inset: 0;
38
+ @include inset(0);
37
39
  }
38
40
 
39
41
  </style>
@@ -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>
@@ -1,5 +1,13 @@
1
1
  // paths more explicit for gulp-sass
2
2
  @import "~bourbon/core/bourbon.scss";
3
+
4
+ @mixin inset($val: 0) {
5
+ bottom: $val;
6
+ right: $val;
7
+ left: $val;
8
+ top: $val;
9
+ }
10
+
3
11
  @import "account/orders.scss";
4
12
  @import "basket.scss";
5
13
  @import "buttons.scss";
@@ -9,4 +17,12 @@
9
17
  @import "festival.scss";
10
18
  @import "focus.scss";
11
19
  @import "font.scss";
12
- @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
@@ -22,6 +22,7 @@ import FluidIframe from './components/fluid_iframe'
22
22
  import HelpRow from './components/help_row'
23
23
  import VideoContent from './components/video_content'
24
24
  import PaymentLogo from './components/payment_logo'
25
+ import SkipLink from './components/skip_link'
25
26
 
26
27
  export {
27
28
  Loader,
@@ -46,5 +47,6 @@ export {
46
47
  HelpRow,
47
48
  CardDisplay,
48
49
  VideoContent,
49
- PaymentLogo
50
+ PaymentLogo,
51
+ SkipLink
50
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.4.3",
3
+ "version": "1.4.7",
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
  }
@@ -66,7 +66,12 @@ table.preferences {
66
66
 
67
67
  input[type=radio] {
68
68
  position: relative;
69
- inset: auto;
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
  }