barbican-reset 1.7.1 → 1.7.5
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.
- package/components/br_form_update.vue +2 -22
- package/helpers/mixins/_br-footer.scss +12 -2
- package/helpers/mixins/_br-form-update.scss +15 -0
- package/helpers/mixins/_city-of-london.scss +12 -0
- package/helpers/mixins/_focus.scss +2 -2
- package/helpers/mixins/_hide.scss +27 -0
- package/helpers/mixins/index.scss +3 -2
- package/helpers/mixins/input/_dropdown.scss +17 -3
- package/helpers/mixins/input/_generic.scss +2 -2
- package/helpers/mixins/input/_text.scss +22 -0
- package/helpers/variables/_layout.scss +3 -1
- package/icons/city_of_london_lockup.vue +2 -20
- package/index.js +2 -2
- package/package.json +1 -2
- package/scss/_br-form-update.scss +8 -0
- package/scss/_city-of-london.scss +4 -0
- package/scss/_custom-select.scss +1 -1
- package/scss/_fonts.scss +17 -21
- package/scss/_input.scss +6 -6
- package/scss/index.scss +1 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
<div
|
|
2
|
+
<div class="br-form-update">
|
|
3
|
+
<div class="br-form-update--input" data-test="email"><slot /></div>
|
|
4
4
|
<b-button @click.prevent="$emit('update')" data-test="update">update</b-button>
|
|
5
5
|
</div>
|
|
6
6
|
</template>
|
|
@@ -10,23 +10,3 @@
|
|
|
10
10
|
name: 'BrFormUpdate',
|
|
11
11
|
}
|
|
12
12
|
</script>
|
|
13
|
-
|
|
14
|
-
<style lang="scss" module>
|
|
15
|
-
|
|
16
|
-
.container {
|
|
17
|
-
display: grid;
|
|
18
|
-
gap: 1rem;
|
|
19
|
-
|
|
20
|
-
@include media-breakpoint-up(sm) {
|
|
21
|
-
grid-template-columns: auto 6rem;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.input {
|
|
26
|
-
@include all-text-inputs;
|
|
27
|
-
color: $c-grey-steel;
|
|
28
|
-
user-select: none;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
</style>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
@mixin br-footer-upper {
|
|
3
3
|
padding-top: 3.75rem;
|
|
4
|
-
display: grid;
|
|
5
|
-
gap: 1rem;
|
|
6
4
|
|
|
7
5
|
@include media-breakpoint-up(md) {
|
|
8
6
|
grid-template-columns: 11rem auto;
|
|
7
|
+
display: grid;
|
|
8
|
+
gap: 1rem;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
&:not(.splash) {
|
|
@@ -21,6 +21,16 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
@mixin br-footer-upper-inner {
|
|
25
|
+
display: grid;
|
|
26
|
+
gap: 2rem;
|
|
27
|
+
|
|
28
|
+
@include media-breakpoint-up(md) {
|
|
29
|
+
align-items: flex-start;
|
|
30
|
+
grid-auto-flow: column;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
24
34
|
@mixin br-footer-lower {
|
|
25
35
|
padding-bottom: 1.875rem;
|
|
26
36
|
padding-top: 1.875rem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
@mixin br-form-update {
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: 1rem;
|
|
5
|
+
|
|
6
|
+
@include media-breakpoint-up(sm) {
|
|
7
|
+
grid-template-columns: auto 6rem;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin br-form-update--input {
|
|
12
|
+
@include text-input-defaults;
|
|
13
|
+
user-select: none;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@mixin input-focus {
|
|
36
|
+
@mixin input-focus-defaults {
|
|
37
37
|
@include single-box($c-grey-steel, 0.0625rem);
|
|
38
38
|
border: 1px solid $c-grey-steel;
|
|
39
39
|
background-color: $c-grey-alpine;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
@mixin
|
|
42
|
+
@mixin neutral-status-colors {
|
|
43
43
|
background-color: $c-status-neutral-fade;
|
|
44
44
|
border: 1px solid $c-status-neutral;
|
|
45
45
|
color: $c-status-neutral;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
@mixin hide-visually($state:"hide") {
|
|
3
|
+
@if $state == "hide" {
|
|
4
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
5
|
+
clip-path: inset(100%);
|
|
6
|
+
position: absolute;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
height: 1px;
|
|
9
|
+
padding: 0;
|
|
10
|
+
width: 1px;
|
|
11
|
+
border: 0;
|
|
12
|
+
}
|
|
13
|
+
@if $state == "unhide" {
|
|
14
|
+
overflow: visible;
|
|
15
|
+
position: static;
|
|
16
|
+
clip-path: none;
|
|
17
|
+
height: auto;
|
|
18
|
+
width: auto;
|
|
19
|
+
clip: auto;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin hide-text {
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
text-indent: 101%;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// paths more explicit for gulp-sass + iframe overrides
|
|
2
|
-
@import "../../node_modules/bourbon/core/bourbon";
|
|
3
1
|
|
|
4
2
|
@mixin inset($val: 0) {
|
|
5
3
|
bottom: $val;
|
|
@@ -10,16 +8,19 @@
|
|
|
10
8
|
|
|
11
9
|
@import "br-alert";
|
|
12
10
|
@import "br-form-row";
|
|
11
|
+
@import "br-form-update";
|
|
13
12
|
@import "br-footer";
|
|
14
13
|
@import "account/orders";
|
|
15
14
|
@import "basket";
|
|
16
15
|
@import "buttons";
|
|
17
16
|
@import "card";
|
|
18
17
|
@import "content";
|
|
18
|
+
@import "city-of-london";
|
|
19
19
|
@import "core";
|
|
20
20
|
@import "festival";
|
|
21
21
|
@import "focus";
|
|
22
22
|
@import "font";
|
|
23
|
+
@import "hide";
|
|
23
24
|
@import "loading";
|
|
24
25
|
@import "input";
|
|
25
26
|
@import "table";
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
@mixin
|
|
2
|
+
@mixin custom-select {
|
|
3
|
+
padding: 0.8125rem 2.5rem 0.8125rem 0.8125rem;
|
|
4
|
+
background-position: right 0.75rem center;
|
|
5
|
+
background-image: url($select-arrow);
|
|
6
|
+
border: 1px solid $c-grey-concrete;
|
|
3
7
|
background-color: $c-grey-alpine;
|
|
4
8
|
border-radius: $border-radius-lg;
|
|
5
|
-
|
|
6
|
-
|
|
9
|
+
background-size: 1rem 0.75rem;
|
|
10
|
+
background-repeat: no-repeat;
|
|
11
|
+
line-height: 1.375rem;
|
|
7
12
|
color: $c-grey-night;
|
|
13
|
+
font-size: inherit;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
transition: none;
|
|
16
|
+
appearance: none;
|
|
17
|
+
display: block;
|
|
8
18
|
width: 100%;
|
|
19
|
+
|
|
20
|
+
@include focus {
|
|
21
|
+
@include input-focus-defaults;
|
|
22
|
+
}
|
|
9
23
|
}
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&:checked ~ label {
|
|
33
|
-
@include
|
|
33
|
+
@include neutral-status-colors;
|
|
34
34
|
@include single-box($c-status-neutral, 0.0625rem);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&:checked ~ label {
|
|
39
|
-
@include
|
|
39
|
+
@include neutral-status-colors;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -1,9 +1,31 @@
|
|
|
1
1
|
|
|
2
2
|
@mixin all-text-inputs {
|
|
3
|
+
[type='color'],
|
|
4
|
+
[type='date'],
|
|
5
|
+
[type='datetime'],
|
|
6
|
+
[type='datetime-local'],
|
|
7
|
+
[type='email'],
|
|
8
|
+
[type='month'],
|
|
9
|
+
[type='number'],
|
|
10
|
+
[type='password'],
|
|
11
|
+
[type='search'],
|
|
12
|
+
[type='tel'],
|
|
13
|
+
[type='text'],
|
|
14
|
+
[type='time'],
|
|
15
|
+
[type='url'],
|
|
16
|
+
[type='week'],
|
|
17
|
+
input:not([type]),
|
|
18
|
+
textarea {
|
|
19
|
+
@content;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@mixin text-input-defaults {
|
|
3
24
|
border: solid $border-width $c-border-strong;
|
|
4
25
|
padding: 0.875rem 0.875rem 0.75rem;
|
|
5
26
|
background-color: $c-grey-alpine;
|
|
6
27
|
border-radius: $border-radius-lg;
|
|
28
|
+
line-height: 1.375rem;
|
|
7
29
|
color: $c-grey-night;
|
|
8
30
|
|
|
9
31
|
&:disabled, &[readonly] {
|
|
@@ -20,4 +20,6 @@ $gap-account: 2rem;
|
|
|
20
20
|
$gap-power: 1.25rem;
|
|
21
21
|
$height-dashboard-banner: 25rem;
|
|
22
22
|
$width-power-related: 66rem;
|
|
23
|
-
$gap-accordion: 2rem;
|
|
23
|
+
$gap-accordion: 2rem;
|
|
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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<a
|
|
2
|
+
<a class="city-of-london-lockup" href="//www.cityoflondon.gov.uk" target="_blank">
|
|
3
3
|
<city-of-london-logo />
|
|
4
4
|
<small>
|
|
5
5
|
The City of London<br />Corporation is the founder<br />and principal funder of<br />the Barbican Centre
|
|
@@ -15,22 +15,4 @@ export default {
|
|
|
15
15
|
CityOfLondonLogo
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
</script>
|
|
19
|
-
|
|
20
|
-
<style lang="scss" module>
|
|
21
|
-
|
|
22
|
-
@import "../helpers";
|
|
23
|
-
|
|
24
|
-
.lockup {
|
|
25
|
-
text-decoration: none;
|
|
26
|
-
display: inline-flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
gap: 0.625rem;
|
|
29
|
-
|
|
30
|
-
@include focus {
|
|
31
|
-
text-decoration: underline;
|
|
32
|
-
outline: none;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
</style>
|
|
18
|
+
</script>
|
package/index.js
CHANGED
|
@@ -7,7 +7,6 @@ import TypeText from './components/type_text'
|
|
|
7
7
|
import Placeholder from './components/placeholder'
|
|
8
8
|
import CardDisplay from './components/card_display'
|
|
9
9
|
import FooterLogos from './components/footer_logos'
|
|
10
|
-
import FooterLower from './components/footer_lower'
|
|
11
10
|
import FluidIframe from './components/fluid_iframe'
|
|
12
11
|
import HelpRow from './components/help_row'
|
|
13
12
|
import VideoContent from './components/video_content'
|
|
@@ -26,6 +25,7 @@ import BrFormUpdate from './components/br_form_update'
|
|
|
26
25
|
import BrLoader from './components/br_loader'
|
|
27
26
|
import BrWrap from './components/br_wrap'
|
|
28
27
|
import BrFooterUpper from './components/br_footer/upper'
|
|
28
|
+
import BrFooterLower from './components/br_footer/lower'
|
|
29
29
|
|
|
30
30
|
export {
|
|
31
31
|
BrLoader,
|
|
@@ -41,9 +41,9 @@ export {
|
|
|
41
41
|
BrFormUpdate,
|
|
42
42
|
BrFormRow,
|
|
43
43
|
EventSummary,
|
|
44
|
+
BrFooterLower,
|
|
44
45
|
BrFooterUpper,
|
|
45
46
|
FooterLogos,
|
|
46
|
-
FooterLower,
|
|
47
47
|
FluidIframe,
|
|
48
48
|
HelpRow,
|
|
49
49
|
CardDisplay,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "barbican-reset",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
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": {
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"bootstrap": "^5.1.3",
|
|
30
30
|
"bootstrap-vue": "^2.21.2",
|
|
31
|
-
"bourbon": "^7.0.0",
|
|
32
31
|
"focus-visible": "^5.2.0",
|
|
33
32
|
"gsap": "^3.7.1",
|
|
34
33
|
"gulp": "^4.0.2",
|
package/scss/_custom-select.scss
CHANGED
package/scss/_fonts.scss
CHANGED
|
@@ -3,36 +3,32 @@ $futura: "FuturaLTPro";
|
|
|
3
3
|
$font-family: #{$futura}, "Helvetica", "Arial", sans-serif;
|
|
4
4
|
$font-file-path: "../fonts/";
|
|
5
5
|
|
|
6
|
-
@
|
|
7
|
-
"#{$futura}"
|
|
8
|
-
"#{$font-file-path}#{$futura}-Book",
|
|
9
|
-
|
|
10
|
-
) {
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: "#{$futura}";
|
|
8
|
+
src: url("#{$font-file-path}#{$futura}-Book.woff") format("woff"),
|
|
9
|
+
url("#{$font-file-path}#{$futura}-Book.woff2") format("woff2");
|
|
11
10
|
font-style: normal;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
@
|
|
15
|
-
"#{$futura}"
|
|
16
|
-
"#{$font-file-path}#{$futura}-BookOblique",
|
|
17
|
-
|
|
18
|
-
) {
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: "#{$futura}";
|
|
15
|
+
src: url("#{$font-file-path}#{$futura}-BookOblique.woff") format("woff"),
|
|
16
|
+
url("#{$font-file-path}#{$futura}-BookOblique.woff2") format("woff2");
|
|
19
17
|
font-style: italic;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
@
|
|
23
|
-
"#{$futura}"
|
|
24
|
-
"#{$font-file-path}#{$futura}-Bold",
|
|
25
|
-
|
|
26
|
-
) {
|
|
20
|
+
@font-face {
|
|
21
|
+
font-family: "#{$futura}";
|
|
22
|
+
src: url("#{$font-file-path}#{$futura}-Bold.woff") format("woff"),
|
|
23
|
+
url("#{$font-file-path}#{$futura}-Bold.woff2") format("woff2");
|
|
27
24
|
font-style: normal;
|
|
28
25
|
font-weight: bold;
|
|
29
26
|
}
|
|
30
27
|
|
|
31
|
-
@
|
|
32
|
-
"#{$futura}"
|
|
33
|
-
"#{$font-file-path}#{$futura}-BoldOblique",
|
|
34
|
-
|
|
35
|
-
) {
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: "#{$futura}";
|
|
30
|
+
src: url("#{$font-file-path}#{$futura}-BoldOblique.woff") format("woff"),
|
|
31
|
+
url("#{$font-file-path}#{$futura}-BoldOblique.woff2") format("woff2");
|
|
36
32
|
font-style: italic;
|
|
37
33
|
font-weight: bold;
|
|
38
|
-
}
|
|
34
|
+
}
|
package/scss/_input.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
.form-control {
|
|
3
3
|
@include focus {
|
|
4
|
-
@include input-focus;
|
|
4
|
+
@include input-focus-defaults;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -23,13 +23,13 @@ input[type=submit] {
|
|
|
23
23
|
|
|
24
24
|
input[type=number] {
|
|
25
25
|
@include focus {
|
|
26
|
-
@include input-focus;
|
|
26
|
+
@include input-focus-defaults;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
@include
|
|
30
|
+
@include all-text-inputs {
|
|
31
|
+
@include text-input-defaults;
|
|
32
32
|
@include focus {
|
|
33
|
-
@include input-focus;
|
|
33
|
+
@include input-focus-defaults;
|
|
34
34
|
}
|
|
35
|
-
}
|
|
35
|
+
}
|