barbican-reset 1.7.1 → 1.7.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.
- package/components/br_form_update.vue +2 -22
- 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/index.scss +2 -2
- package/helpers/mixins/input/_generic.scss +2 -2
- package/helpers/mixins/input/_text.scss +21 -0
- package/icons/city_of_london_lockup.vue +2 -20
- package/package.json +1 -2
- package/scss/_br-form-update.scss +8 -0
- package/scss/_city-of-london.scss +4 -0
- package/scss/_fonts.scss +17 -21
- package/scss/_input.scss +6 -6
|
@@ -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>
|
|
@@ -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;
|
|
@@ -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,12 +8,14 @@
|
|
|
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";
|
|
@@ -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,5 +1,26 @@
|
|
|
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;
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "barbican-reset",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
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/_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
|
+
}
|