barbican-reset 1.7.0 → 1.7.4

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.
Files changed (54) hide show
  1. package/components/br_container.vue +2 -2
  2. package/components/br_footer/lower.vue +11 -0
  3. package/components/br_footer/upper.vue +17 -0
  4. package/components/br_form_update.vue +2 -22
  5. package/components/footer_logos.vue +1 -0
  6. package/helpers/mixins/_br-alert.scss +99 -0
  7. package/helpers/mixins/_br-footer.scss +27 -0
  8. package/helpers/mixins/_br-form-row.scss +29 -0
  9. package/helpers/mixins/_br-form-update.scss +15 -0
  10. package/helpers/mixins/_card.scss +46 -2
  11. package/helpers/mixins/_city-of-london.scss +12 -0
  12. package/helpers/mixins/_content.scss +3 -3
  13. package/helpers/mixins/_focus.scss +2 -2
  14. package/helpers/mixins/_hide.scss +27 -0
  15. package/helpers/mixins/_table.scss +29 -28
  16. package/helpers/mixins/index.scss +6 -2
  17. package/helpers/mixins/input/_generic.scss +3 -2
  18. package/helpers/mixins/input/_text.scss +21 -0
  19. package/helpers/mixins/table/_basket.scss +33 -0
  20. package/{scss → helpers/mixins}/table/_details.scss +2 -3
  21. package/{scss → helpers/mixins}/table/_etickets.scss +2 -2
  22. package/{scss → helpers/mixins}/table/_gifts.scss +2 -2
  23. package/helpers/mixins/table/_membership.scss +8 -0
  24. package/{scss → helpers/mixins}/table/_orders.scss +2 -12
  25. package/{scss → helpers/mixins}/table/_preferences.scss +2 -2
  26. package/{scss → helpers/mixins}/table/_resale.scss +2 -1
  27. package/{scss → helpers/mixins}/table/_section.scss +1 -1
  28. package/{scss → helpers/mixins}/table/_tickets.scss +2 -2
  29. package/helpers/variables/_alerts.scss +7 -0
  30. package/helpers/variables/_layout.scss +3 -6
  31. package/helpers/variables/_typography.scss +0 -4
  32. package/helpers/variables/colors/_brand.scss +1 -0
  33. package/helpers/variables/index.scss +1 -0
  34. package/icons/city_of_london_lockup.vue +2 -20
  35. package/index.js +4 -4
  36. package/package.json +1 -2
  37. package/scss/_br-alert.scss +49 -0
  38. package/scss/_br-footer.scss +8 -0
  39. package/scss/{_form-row.scss → _br-form-row.scss} +1 -25
  40. package/scss/_br-form-update.scss +8 -0
  41. package/scss/_br-wrap.scss +3 -3
  42. package/scss/_city-of-london.scss +4 -0
  43. package/scss/_fonts.scss +20 -22
  44. package/scss/_input.scss +7 -7
  45. package/scss/_list.scss +1 -1
  46. package/scss/_table.scss +25 -0
  47. package/scss/card/index.scss +6 -21
  48. package/scss/index.scss +8 -5
  49. package/components/footer_lower.vue +0 -20
  50. package/components/footer_upper.vue +0 -51
  51. package/scss/_alert.scss +0 -132
  52. package/scss/table/_basket.scss +0 -31
  53. package/scss/table/_membership.scss +0 -6
  54. package/scss/table/index.scss +0 -20
@@ -1,4 +1,5 @@
1
- table.resale {
1
+
2
+ @mixin resale-table {
2
3
  margin-right: auto;
3
4
  margin-left: auto;
4
5
  max-width: 11rem;
@@ -1,5 +1,5 @@
1
1
 
2
- table.section {
2
+ @mixin section-table {
3
3
  padding-bottom: 0.75rem;
4
4
  padding-top: 0.75rem;
5
5
  display: block;
@@ -1,5 +1,5 @@
1
- table.tickets {
2
1
 
2
+ @mixin tickets-table {
3
3
  $mq: sm;
4
4
 
5
5
  th {
@@ -9,7 +9,7 @@ table.tickets {
9
9
  tr {
10
10
  @include media-breakpoint-up($mq) {
11
11
  @include table-row;
12
- @include table-tickets-row;
12
+ grid-template-columns: $columns-tickets;
13
13
  display: grid;
14
14
  gap: 0.75rem;
15
15
 
@@ -0,0 +1,7 @@
1
+ $neutral_wrap: $c-status-neutral, $c-status-neutral-fade, $c-status-neutral-light;
2
+ $success_wrap: $c-status-success, $c-status-success-fade, $c-status-success-light;
3
+ $error_wrap: $c-status-error, $c-status-error-fade, $c-status-error-light;
4
+
5
+ $neutral_focus: $c-status-neutral, $c-status-neutral-fade;
6
+ $success_focus: $c-status-success, $c-status-success-fade;
7
+ $error_focus: $c-status-error, $c-status-error-fade;
@@ -1,13 +1,10 @@
1
1
  /// Constrained content
2
2
  $layout-padding: 5%;
3
3
  $layout-width-title: 20rem;
4
- $layout-width-thin: 50rem;
5
- $layout-width-videos: 60rem;
6
- $layout-width-wide: 75rem;
4
+ $layout-width-sm: 50rem;
5
+ $layout-width-md: 60rem;
6
+ $layout-width-lg: 75rem;
7
7
 
8
- $space: 0.625rem;
9
- // Default large amount of space.
10
- $space--large: $space * 3;
11
8
  $border-radius-lg: 0.375rem;
12
9
 
13
10
  // Basket layout
@@ -1,14 +1,10 @@
1
1
 
2
- $f-primary-name: "FuturaLTPro";
3
- $f-primary: #{$f-primary-name}, "Helvetica", "Arial", sans-serif;
4
-
5
2
  $line-height-xs: 1.1;
6
3
  $line-height-sm: 1.2;
7
4
  $line-height-md: 1.4;
8
5
  $line-height-lg: 1.8;
9
6
 
10
7
  $headings-line-height: $line-height-sm;
11
- $font-family-sans-serif: $f-primary;
12
8
  $headings-letter-spacing: -0.015em;
13
9
  $link-decoration: underline;
14
10
  $headings-font-weight: 700;
@@ -1,6 +1,7 @@
1
1
 
2
2
  $c-brand-orange-faint: hsl(21, 60%, 99%);
3
3
  $c-brand-orange-light: hsl(21, 100%, 95%);
4
+ $c-brand-orange-shade: hsl(21, 50%, 90%);
4
5
  $c-brand-orange: hsl(21, 100%, 41%);
5
6
  $c-brand-orange-dark: hsl(21, 100%, 38%);
6
7
 
@@ -1,5 +1,6 @@
1
1
  // paths more explicit for gulp-sass
2
2
  @import "colors/index";
3
+ @import "alerts";
3
4
  @import "layout";
4
5
  @import "breakpoints";
5
6
  @import "typography";
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <a :class="$style.lockup" href="//www.cityoflondon.gov.uk" target="_blank">
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
@@ -6,9 +6,7 @@ import RelatedRow from './components/related_row'
6
6
  import TypeText from './components/type_text'
7
7
  import Placeholder from './components/placeholder'
8
8
  import CardDisplay from './components/card_display'
9
- import FooterUpper from './components/footer_upper'
10
9
  import FooterLogos from './components/footer_logos'
11
- import FooterLower from './components/footer_lower'
12
10
  import FluidIframe from './components/fluid_iframe'
13
11
  import HelpRow from './components/help_row'
14
12
  import VideoContent from './components/video_content'
@@ -26,6 +24,8 @@ import BrFormRow from './components/br_form_row'
26
24
  import BrFormUpdate from './components/br_form_update'
27
25
  import BrLoader from './components/br_loader'
28
26
  import BrWrap from './components/br_wrap'
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
- FooterUpper,
44
+ BrFooterLower,
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.0",
3
+ "version": "1.7.4",
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",
@@ -0,0 +1,49 @@
1
+
2
+ .br-alert {
3
+ @include br-alert--setup;
4
+
5
+ &.center {
6
+ @include br-alert--center;
7
+ }
8
+
9
+ .wrap {
10
+ @include br-alert-wrap--colors($neutral_wrap...);
11
+ @include br-alert-wrap--setup;
12
+
13
+ .btn.btn-link, a {
14
+ @include br-alert-link($neutral_focus...);
15
+ }
16
+
17
+ &.error {
18
+ @include br-alert-wrap--colors($error_wrap...);
19
+
20
+ .btn.btn-link, a {
21
+ @include br-alert-link($error_focus...);
22
+ }
23
+ }
24
+
25
+ &.success {
26
+ @include br-alert-wrap--colors($success_wrap...);
27
+
28
+ .btn.btn-link, a {
29
+ @include br-alert-link($success_focus...);
30
+ }
31
+ }
32
+
33
+ &.inline {
34
+ @include inline-block;
35
+ }
36
+
37
+ &.toggle {
38
+ @include br-alert-wrap--toggle;
39
+ }
40
+
41
+ p {
42
+ margin-bottom: 0;
43
+
44
+ + p {
45
+ margin-top: 1rem;
46
+ }
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,8 @@
1
+
2
+ .br-footer-upper {
3
+ @include br-footer-upper;
4
+ }
5
+
6
+ .br-footer-lower {
7
+ @include br-footer-lower;
8
+ }
@@ -1,33 +1,9 @@
1
1
 
2
2
  .br-form-row {
3
-
4
- &:not(:last-of-type) {
5
- margin-bottom: 1rem;
6
- }
7
-
8
- @include media-breakpoint-up(sm) {
9
- grid-template-columns: 33fr 67fr;
10
- gap: $gap-account;
11
- display: grid;
12
- }
13
-
14
- > label {
15
- @include media-breakpoint-up(sm) {
16
- margin-top: 1rem;
17
- }
18
- }
3
+ @include br-form-row;
19
4
 
20
5
  label {
21
6
  font-weight: normal;
22
-
23
- @include media-breakpoint-down(sm) {
24
- margin-bottom: 0.5rem;
25
- }
26
- }
27
-
28
- input {
29
- width: 100%;
30
- margin: 0;
31
7
  }
32
8
 
33
9
  .content {
@@ -0,0 +1,8 @@
1
+
2
+ .br-form-update {
3
+ @include br-form-update;
4
+ }
5
+
6
+ .br-form-update--input {
7
+ @include br-form-update--input;
8
+ }
@@ -1,6 +1,6 @@
1
1
 
2
2
  .br_wrap {
3
- max-width: $layout-width-wide;
3
+ max-width: $layout-width-lg;
4
4
  margin-right: auto;
5
5
  margin-left: auto;
6
6
 
@@ -9,10 +9,10 @@
9
9
  }
10
10
 
11
11
  &.videos {
12
- max-width: $layout-width-videos;
12
+ max-width: $layout-width-md;
13
13
  }
14
14
 
15
15
  &.thin {
16
- max-width: $layout-width-thin;
16
+ max-width: $layout-width-sm;
17
17
  }
18
18
  }
@@ -0,0 +1,4 @@
1
+
2
+ .city-of-london-lockup {
3
+ @include city-of-london-lockup;
4
+ }
package/scss/_fonts.scss CHANGED
@@ -1,36 +1,34 @@
1
1
 
2
- $f-file-path: "~barbican-reset/fonts/";
2
+ $futura: "FuturaLTPro";
3
+ $font-family: #{$futura}, "Helvetica", "Arial", sans-serif;
4
+ $font-file-path: "../fonts/";
3
5
 
4
- @include font-face(
5
- "#{$f-primary-name}",
6
- "#{$f-file-path}#{$f-primary-name}-Book",
7
- ("woff", "woff2")
8
- ) {
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");
9
10
  font-style: normal;
10
11
  }
11
12
 
12
- @include font-face(
13
- "#{$f-primary-name}",
14
- "#{$f-file-path}#{$f-primary-name}-BookOblique",
15
- ("woff", "woff2")
16
- ) {
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");
17
17
  font-style: italic;
18
18
  }
19
19
 
20
- @include font-face(
21
- "#{$f-primary-name}",
22
- "#{$f-file-path}#{$f-primary-name}-Bold",
23
- ("woff", "woff2")
24
- ) {
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");
25
24
  font-style: normal;
26
25
  font-weight: bold;
27
26
  }
28
27
 
29
- @include font-face(
30
- "#{$f-primary-name}",
31
- "#{$f-file-path}#{$f-primary-name}-BoldOblique",
32
- ("woff", "woff2")
33
- ) {
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");
34
32
  font-style: italic;
35
33
  font-weight: bold;
36
- }
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
 
@@ -12,7 +12,7 @@ input::placeholder {
12
12
  input[type=checkbox],
13
13
  input[type=radio] {
14
14
  margin-bottom: 0.5rem;
15
- margin-right: $space;
15
+ margin-right: 0.5rem;
16
16
  }
17
17
 
18
18
  input[type=button],
@@ -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
- #{$all-text-inputs} {
31
- @include all-text-inputs;
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
+ }
package/scss/_list.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  menu, ol, ul {
2
- padding: 0 0 0 ($space * 2);
2
+ padding: 0 0 0 1.25rem;
3
3
  }
4
4
 
5
5
  nav > ul {
@@ -0,0 +1,25 @@
1
+
2
+ table {
3
+ border-spacing: 0;
4
+ width: 100%;
5
+
6
+ &.basket { @include basket-table; }
7
+ &.details { @include details-table; }
8
+ &.gifts { @include gifts-table; }
9
+ &.etickets { @include etickets-table; }
10
+ &.details.membership { @include membership-table; }
11
+ &.preferences { @include preferences-table; }
12
+ &.resale { @include resale-table; }
13
+ &.section { @include section-table; }
14
+ &.tickets { @include tickets-table; }
15
+ }
16
+
17
+ table.orders {
18
+ @include orders-table($columns-orders);
19
+ @include default-table-style;
20
+ }
21
+
22
+ td {
23
+ padding: 0;
24
+ }
25
+
@@ -10,40 +10,25 @@
10
10
  @import "slim";
11
11
 
12
12
  .card {
13
- border: 1px solid $c-grey-pearl;
14
- border-radius: $border-radius-lg;
15
- }
16
-
17
- .card + .card {
18
- margin-top: 1.25rem;
13
+ @include card;
19
14
  }
20
15
 
21
16
  .card-header {
22
- border-bottom: 1px solid $c-grey-pearl;
23
- background-color: transparent;
17
+ @include card-header;
24
18
  }
25
19
 
26
20
  .card-subtitle {
27
- color: $c-grey-steel !important;
28
- font-size: $font-size-sm;
29
- font-weight: 400;
30
- margin: 0;
21
+ @include card-subtitle;
31
22
  }
32
23
 
33
24
  .card-body {
34
- padding: 1.5rem;
25
+ @include card-body;
35
26
  }
36
27
 
37
28
  .card-img {
38
- border: 1px solid $c-grey-concrete;
39
- margin-bottom: 1rem;
40
- max-width: 100%;
29
+ @include card-img;
41
30
  }
42
31
 
43
32
  .card-footer {
44
- padding: 1rem;
45
-
46
- @include media-breakpoint-up(md) {
47
- border-top: 1px solid $c-grey-concrete;
48
- }
33
+ @include card-footer;
49
34
  }
package/scss/index.scss CHANGED
@@ -10,13 +10,16 @@
10
10
  @import "footer";
11
11
  @import "klaro";
12
12
  @import "fonts";
13
- @import "br-loader";
14
13
  @import "close-icon";
15
- @import "table/index";
14
+ @import "table";
16
15
  @import "promo";
17
- @import "alert";
18
- @import "form-row";
16
+
17
+ @import "br-alert";
18
+ @import "br-form-row";
19
+ @import "br-loader";
19
20
  @import "br-wrap";
21
+ @import "br-footer";
22
+ @import "city-of-london";
20
23
 
21
24
  // bootstrap component styles
22
25
  @import "btn";
@@ -34,7 +37,7 @@
34
37
 
35
38
  body {
36
39
  line-height: $line-height-md;
37
- font-family: $f-primary;
40
+ font-family: $font-family;
38
41
  color: $c-grey-night;
39
42
  }
40
43
 
@@ -1,20 +0,0 @@
1
- <template>
2
- <div :class="$style.lower">
3
- <slot />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: 'FooterLower'
10
- }
11
- </script>
12
-
13
- <style lang="scss" module>
14
-
15
- .lower {
16
- padding-bottom: 1.875rem;
17
- padding-top: 1.875rem;
18
- }
19
-
20
- </style>
@@ -1,51 +0,0 @@
1
- <template>
2
- <div :class="styleUpper">
3
- <slot />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: 'FooterUpper',
10
- props: {
11
- splash: {
12
- type: Boolean,
13
- default: false
14
- }
15
- },
16
- computed: {
17
- styleUpper() {
18
- const style = this.$style;
19
- let output = [style.upper];
20
- if (this.splash) { output.push(style.splash); }
21
- return output;
22
- },
23
- }
24
- }
25
- </script>
26
-
27
- <style lang="scss" module>
28
-
29
- .upper {
30
- padding-top: 3.75rem;
31
-
32
- @include media-breakpoint-up(md) {
33
- grid-template-columns: 11rem auto;
34
- display: grid;
35
- gap: 1rem;
36
- }
37
-
38
- nav a {
39
- @include focus {
40
- @include single-box($white);
41
- background-color: $white;
42
- color: $black;
43
- }
44
- }
45
-
46
- &:not(.splash) {
47
- padding-bottom: 3.75rem;
48
- }
49
- }
50
-
51
- </style>