barbican-reset 2.33.0 → 2.35.0

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 (110) hide show
  1. package/README.md +159 -0
  2. package/components/br_alert.vue +10 -9
  3. package/components/br_skiplink.vue +17 -0
  4. package/components/card_display.vue +15 -15
  5. package/components/fluid_iframe.vue +8 -9
  6. package/index.js +34 -35
  7. package/package.json +9 -8
  8. package/patterns/components/alert.pug +8 -0
  9. package/patterns/components/section.pug +3 -0
  10. package/patterns/html/blocks.html +1 -0
  11. package/patterns/html/index.html +1 -0
  12. package/patterns/html/layouts.html +1 -0
  13. package/patterns/index.js +19 -7
  14. package/patterns/layouts/main.pug +21 -0
  15. package/patterns/layouts/page.pug +2 -0
  16. package/patterns/pages/alerts.pug +9 -0
  17. package/patterns/pages/colors.pug +25 -0
  18. package/patterns/scss/styles.scss +68 -3
  19. package/patterns/static/favicon.ico +0 -0
  20. package/patterns/static/styles.css +2206 -26
  21. package/patterns/views/blocks.pug +7 -0
  22. package/patterns/views/index.pug +5 -28
  23. package/patterns/views/layouts.pug +4 -0
  24. package/scss/_atomic.scss +40 -14
  25. package/scss/_br-alert.scss +10 -5
  26. package/scss/_br-button.scss +186 -0
  27. package/scss/_br-skiplink.scss +3 -0
  28. package/scss/helpers/mixins/_br-skiplink.scss +16 -0
  29. package/{helpers → scss/helpers}/mixins/_buttons.scss +0 -7
  30. package/{helpers → scss/helpers}/mixins/_focus.scss +2 -2
  31. package/{helpers → scss/helpers}/mixins/_font.scss +1 -1
  32. package/{helpers → scss/helpers}/mixins/_headings.scss +2 -0
  33. package/{helpers → scss/helpers}/mixins/index.scss +9 -7
  34. package/{helpers → scss/helpers}/mixins/input/_generic.scss +1 -1
  35. package/{helpers → scss/helpers}/variables/_columns.scss +0 -1
  36. package/{helpers → scss/helpers}/variables/_typography.scss +5 -1
  37. package/scss/helpers/variables/colors/_brand.scss +96 -0
  38. package/{patterns/scss → scss/helpers/variables}/colors/_grey.scss +3 -1
  39. package/{patterns/scss → scss/helpers/variables}/colors/index.scss +1 -1
  40. package/scss/helpers/variables/index.scss +5 -0
  41. package/scss/index.scss +5 -3
  42. package/components/skip_link.vue +0 -38
  43. package/fonts/SupremeLLWeb-Black.woff +0 -0
  44. package/fonts/SupremeLLWeb-Black.woff2 +0 -0
  45. package/fonts/SupremeLLWeb-BlackItalic.woff +0 -0
  46. package/fonts/SupremeLLWeb-BlackItalic.woff2 +0 -0
  47. package/fonts/SupremeLLWeb-Italic.woff +0 -0
  48. package/fonts/SupremeLLWeb-Italic.woff2 +0 -0
  49. package/fonts/SupremeLLWeb-Light.woff +0 -0
  50. package/fonts/SupremeLLWeb-Light.woff2 +0 -0
  51. package/fonts/SupremeLLWeb-LightItalic.woff +0 -0
  52. package/fonts/SupremeLLWeb-LightItalic.woff2 +0 -0
  53. package/fonts/SupremeLLWeb-Regular.woff +0 -0
  54. package/fonts/SupremeLLWeb-Regular.woff2 +0 -0
  55. package/helpers/variables/index.scss +0 -5
  56. package/patterns/scss/colors/_brand.scss +0 -79
  57. package/patterns/views/layout.pug +0 -8
  58. /package/patterns/{views/mixins.pug → components/samples.pug} +0 -0
  59. /package/{helpers → scss/helpers}/functions/index.scss +0 -0
  60. /package/{helpers → scss/helpers}/index.scss +0 -0
  61. /package/{helpers → scss/helpers}/mixins/_basket.scss +0 -0
  62. /package/{helpers → scss/helpers}/mixins/_br-alert.scss +0 -0
  63. /package/{helpers → scss/helpers}/mixins/_br-card.scss +0 -0
  64. /package/{helpers → scss/helpers}/mixins/_br-footer.scss +0 -0
  65. /package/{helpers → scss/helpers}/mixins/_br-form-password.scss +0 -0
  66. /package/{helpers → scss/helpers}/mixins/_br-form-row.scss +0 -0
  67. /package/{helpers → scss/helpers}/mixins/_br-form-update.scss +0 -0
  68. /package/{helpers → scss/helpers}/mixins/_breakpoints.scss +0 -0
  69. /package/{helpers → scss/helpers}/mixins/_city-of-london.scss +0 -0
  70. /package/{helpers → scss/helpers}/mixins/_content.scss +0 -0
  71. /package/{helpers → scss/helpers}/mixins/_core.scss +0 -0
  72. /package/{helpers → scss/helpers}/mixins/_festival.scss +0 -0
  73. /package/{helpers → scss/helpers}/mixins/_input.scss +0 -0
  74. /package/{helpers → scss/helpers}/mixins/_loading.scss +0 -0
  75. /package/{helpers → scss/helpers}/mixins/_table.scss +0 -0
  76. /package/{helpers → scss/helpers}/mixins/account/_orders.scss +0 -0
  77. /package/{helpers → scss/helpers}/mixins/buttons/_outline.scss +0 -0
  78. /package/{helpers → scss/helpers}/mixins/buttons/_setup.scss +0 -0
  79. /package/{helpers → scss/helpers}/mixins/buttons/_solid.scss +0 -0
  80. /package/{helpers → scss/helpers}/mixins/buttons/_spektrix.scss +0 -0
  81. /package/{helpers → scss/helpers}/mixins/drupal/_br-border-reset.scss +0 -0
  82. /package/{helpers → scss/helpers}/mixins/drupal/_br-column.scss +0 -0
  83. /package/{helpers → scss/helpers}/mixins/drupal/_br-container.scss +0 -0
  84. /package/{helpers → scss/helpers}/mixins/drupal/_br-inner.scss +0 -0
  85. /package/{helpers → scss/helpers}/mixins/drupal/_br-search-form.scss +0 -0
  86. /package/{helpers → scss/helpers}/mixins/drupal/_br-site-logo.scss +0 -0
  87. /package/{helpers → scss/helpers}/mixins/drupal/index.scss +0 -0
  88. /package/{helpers → scss/helpers}/mixins/input/_checkbox.scss +0 -0
  89. /package/{helpers → scss/helpers}/mixins/input/_radio.scss +0 -0
  90. /package/{helpers → scss/helpers}/mixins/input/_select.scss +0 -0
  91. /package/{helpers → scss/helpers}/mixins/input/_status.scss +0 -0
  92. /package/{helpers → scss/helpers}/mixins/input/_text.scss +0 -0
  93. /package/{helpers → scss/helpers}/mixins/table/_basket.scss +0 -0
  94. /package/{helpers → scss/helpers}/mixins/table/_details.scss +0 -0
  95. /package/{helpers → scss/helpers}/mixins/table/_etickets.scss +0 -0
  96. /package/{helpers → scss/helpers}/mixins/table/_gifts.scss +0 -0
  97. /package/{helpers → scss/helpers}/mixins/table/_membership.scss +0 -0
  98. /package/{helpers → scss/helpers}/mixins/table/_orders.scss +0 -0
  99. /package/{helpers → scss/helpers}/mixins/table/_preferences.scss +0 -0
  100. /package/{helpers → scss/helpers}/mixins/table/_resale.scss +0 -0
  101. /package/{helpers → scss/helpers}/mixins/table/_section.scss +0 -0
  102. /package/{helpers → scss/helpers}/mixins/table/_simple.scss +0 -0
  103. /package/{helpers → scss/helpers}/mixins/table/_tickets.scss +0 -0
  104. /package/{helpers → scss/helpers}/mixins/table/row/_disabled.scss +0 -0
  105. /package/{helpers → scss/helpers}/variables/_alerts.scss +0 -0
  106. /package/{helpers → scss/helpers}/variables/_layout.scss +0 -0
  107. /package/{patterns/scss → scss/helpers/variables}/colors/_docs.scss +0 -0
  108. /package/{patterns/scss → scss/helpers/variables}/colors/_llf.scss +0 -0
  109. /package/{patterns/scss → scss/helpers/variables}/colors/_status.scss +0 -0
  110. /package/{patterns/scss → scss/helpers/variables}/colors/_wgp.scss +0 -0
@@ -0,0 +1,7 @@
1
+ extends ../layouts/main
2
+
3
+ block content
4
+
5
+ +Section("Alerts")
6
+
7
+ include ../pages/alerts
@@ -1,30 +1,7 @@
1
- extends layout
2
- include mixins
3
- block content
4
- h1 Color Palettes
5
-
6
- h2 Grey
7
- ul.list.list-palette.grey
8
- li.item.item-palette.l11
9
- li.item.item-palette.l21
10
- li.item.item-palette.l44
11
- li.item.item-palette.l65
12
- li.item.item-palette.l87
13
- li.item.item-palette.l96
1
+ extends ../layouts/main
14
2
 
15
- h2 Brand
3
+ block content
16
4
 
17
- +Samples('Contemporary','contemporary-music')
18
- +Samples('Theatre','theatre--dance')
19
- +Samples('Talks','talks--events')
20
- +Samples('Art','art--design')
21
- +Samples('Programme','programme')
22
- +Samples('Cinema','cinema')
23
- +Samples('Shop','shop')
24
- +Samples('Generic / Library / Tours / Hire','generic')
25
- +Samples('Classical','classical-music')
26
- +Samples('Membership','membership--support')
27
-
28
- h2 Sample
29
- ul.list.list-palette.sample
30
- li.item.item-palette
5
+ +Section("Colors")
6
+
7
+ include ../pages/colors
@@ -0,0 +1,4 @@
1
+ extends ../layouts/main
2
+
3
+ block content
4
+ div Layouts
package/scss/_atomic.scss CHANGED
@@ -3,32 +3,57 @@ $text-aligns: 'left', 'center', 'right';
3
3
  $margins05: 'margin-top', 'margin-bottom', 'margin-right', 'margin-left';
4
4
  $paddings05: 'padding-top', 'padding-bottom', 'padding-right', 'padding-left';
5
5
 
6
- @each $gap in $gaps {
7
- @for $i from 1 to 5 {
8
- .#{$gap}-#{$i} {
9
- #{$gap}: 1rem * $i;
6
+ /// @group Atomic
7
+ /// Generator for gap classes. Creates 5 variations
8
+ /// @example .margin-top-1, .margin-top-2, .margin-top-3, .margin-top-4, .margin-top-5
9
+ @mixin printGapClasses {
10
+ @each $gap in $gaps {
11
+ @for $i from 1 to 5 {
12
+ .#{$gap}-#{$i} {
13
+ #{$gap}: 1rem * $i;
14
+ }
10
15
  }
11
16
  }
12
17
  }
13
18
 
14
- @each $align in $text-aligns {
15
- .text-align-#{$align} {
16
- text-align: #{$align};
19
+ /// @group Atomic
20
+ /// Generator for text-align classes. Creates 3 variations
21
+ /// @example .text-align-left, .text-align-center, .text-align-right
22
+ @mixin printTextAlignClasses {
23
+ @each $align in $text-aligns {
24
+ .text-align-#{$align} {
25
+ text-align: #{$align};
26
+ }
17
27
  }
18
28
  }
19
29
 
20
- @each $margin in $margins05 {
21
- .#{$margin}-05 {
22
- #{$margin}: 0.5rem;
30
+ /// @group Atomic
31
+ /// Generator for margin half classes. Creates 4 variations
32
+ /// @example .margin-top-05, .margin-bottom-05, .margin-right-05, .margin-left-05
33
+ @mixin printMarginClasses {
34
+ @each $margin in $margins05 {
35
+ .#{$margin}-05 {
36
+ #{$margin}: 0.5rem;
37
+ }
23
38
  }
24
39
  }
25
40
 
26
- @each $padding in $paddings05 {
27
- .#{$padding}-05 {
28
- #{$padding}: 0.5rem;
41
+ /// @group Atomic
42
+ /// Generator for padding half classes. Creates 4 variations
43
+ /// @example .padding-top-05, .padding-bottom-05, .padding-right-05, .padding-left-05
44
+ @mixin printPaddingClasses {
45
+ @each $padding in $paddings05 {
46
+ .#{$padding}-05 {
47
+ #{$padding}: 0.5rem;
48
+ }
29
49
  }
30
50
  }
31
51
 
52
+ @include printGapClasses;
53
+ @include printTextAlignClasses;
54
+ @include printMarginClasses;
55
+ @include printPaddingClasses;
56
+
32
57
  .font-weight-700 {
33
58
  @include fontfamily-black;
34
59
  }
@@ -91,6 +116,7 @@ $paddings05: 'padding-top', 'padding-bottom', 'padding-right', 'padding-left';
91
116
  min-width: 3rem;
92
117
  }
93
118
 
119
+ /// Class for visually hiding markup, while still allowing screen readers to parse the content
94
120
  .sr-only {
95
121
  @include sr-only;
96
- }
122
+ }
@@ -1,4 +1,6 @@
1
-
1
+ /// @group Components
2
+ /// BrAlert component class
3
+ /// @example .br-alert.center .wrap.inline.error
2
4
  .br-alert {
3
5
  @include br-alert--setup;
4
6
 
@@ -10,14 +12,16 @@
10
12
  @include br-alert-wrap--colors($neutral_wrap...);
11
13
  @include br-alert-wrap--setup;
12
14
 
13
- .btn.btn-link, a {
15
+ .btn.btn-link,
16
+ a {
14
17
  @include br-alert-link($neutral_focus...);
15
18
  }
16
19
 
17
20
  &.error {
18
21
  @include br-alert-wrap--colors($error_wrap...);
19
22
 
20
- .btn.btn-link, a {
23
+ .btn.btn-link,
24
+ a {
21
25
  @include br-alert-link($error_focus...);
22
26
  }
23
27
  }
@@ -25,7 +29,8 @@
25
29
  &.success {
26
30
  @include br-alert-wrap--colors($success_wrap...);
27
31
 
28
- .btn.btn-link, a {
32
+ .btn.btn-link,
33
+ a {
29
34
  @include br-alert-link($success_focus...);
30
35
  }
31
36
  }
@@ -41,7 +46,7 @@
41
46
  p {
42
47
  margin-bottom: 0;
43
48
 
44
- + p {
49
+ +p {
45
50
  margin-top: 1rem;
46
51
  }
47
52
  }
@@ -0,0 +1,186 @@
1
+ /// Button component setup class.
2
+ /// Used in combination with a button style class
3
+ /// @group Buttons
4
+ /// @example .btn.btn-primary
5
+ .btn {
6
+ @include setup-button;
7
+ }
8
+
9
+
10
+ /// Primary button.
11
+ /// Defaults to solid orange. Borders orange on focus.
12
+ /// @group Buttons
13
+ .btn.btn-primary {
14
+ @include btn-primary;
15
+ }
16
+
17
+
18
+ /// Primary outline button.
19
+ /// Defaults to orange outline. Fills orange on focus
20
+ /// @group Buttons
21
+ .btn.btn-outline-primary {
22
+ @include btn-outline-primary;
23
+ }
24
+
25
+
26
+ /// Primary outline header button.
27
+ /// Defaults to white outline. Fills white on focus
28
+ /// @group Buttons
29
+ .btn.btn-outline-header {
30
+ @include btn-outline-header;
31
+ }
32
+
33
+ /// Info button.
34
+ /// Defaults to solid blue. Borders blue on focus.
35
+ /// @group Buttons
36
+ .btn.btn-info {
37
+ @include btn-info;
38
+ }
39
+
40
+ /// Primary outline info button.
41
+ /// Defaults to blue outline. Fills blue on focus
42
+ /// @group Buttons
43
+ .btn.btn-outline-info {
44
+ @include btn-outline-info;
45
+ }
46
+
47
+ /// Secondary button.
48
+ /// Defaults to solid grey. Borders grey on focus.
49
+ /// @group Buttons
50
+ .btn.btn-secondary {
51
+ @include btn-secondary;
52
+ }
53
+
54
+ /// Primary outline info button.
55
+ /// Defaults to grey outline. Fills grey on focus
56
+ /// @group Buttons
57
+ .btn.btn-outline-secondary {
58
+ @include btn-outline-secondary;
59
+ }
60
+
61
+ /// Input edit button.
62
+ /// Semi circular control for lockable input fields.
63
+ /// Defaults to grey outline. Fills grey on focus.
64
+ /// @group Buttons
65
+ .btn.btn-input-edit {
66
+ @include btn-input-edit;
67
+ }
68
+
69
+ .btn {
70
+ &.btn-remove {
71
+ // solid grey, slim
72
+ @include btn-remove;
73
+ }
74
+
75
+ &.btn-link {
76
+ @include btn-link;
77
+ }
78
+
79
+ &.btn-video-help {
80
+ @include btn-video-help;
81
+ }
82
+
83
+ &.btn-exit {
84
+ @include btn-exit;
85
+ }
86
+
87
+ &.btn-remove-ticket {
88
+ @include btn-remove-ticket;
89
+ }
90
+
91
+ &.btn-remove-gift {
92
+ @include btn-remove-gift;
93
+ }
94
+
95
+ &.btn-membership-card {
96
+ @include btn-membership-card;
97
+ }
98
+
99
+ &.btn-video-login {
100
+ @include btn-video-login;
101
+ }
102
+
103
+ &.btn-cta {
104
+ @include btn-cta;
105
+ }
106
+
107
+ &.btn-carousel {
108
+ @include btn-carousel;
109
+ }
110
+
111
+ &.btn-invisible {
112
+ @include btn-invisible;
113
+ }
114
+
115
+ &.btn-returns {
116
+ // solid orange
117
+ @include btn-returns;
118
+ }
119
+
120
+ &.btn-cancel-returns {
121
+ // solid orange
122
+ @include btn-cancel-returns;
123
+ }
124
+
125
+ &.btn-resale {
126
+ // orange outline, fill on focus
127
+ @include btn-resale;
128
+ }
129
+
130
+ &.btn-radio {
131
+ border: 1px solid hsl(0deg, 0%, 65%);
132
+ padding: 0.75rem 0.75rem 0.625rem;
133
+ font-weight: 400;
134
+ margin: 0.25rem;
135
+
136
+ @include focus {
137
+ @include default-label-focus;
138
+ }
139
+ }
140
+
141
+ &.btn-menu {
142
+ @include btn-menu;
143
+ }
144
+
145
+ &.btn-basket {
146
+ @include btn-basket;
147
+ }
148
+
149
+ &.btn-discover {
150
+ @include btn-discover;
151
+ }
152
+
153
+ &.btn-membership-pill {
154
+ @include btn-membership-pill;
155
+ }
156
+
157
+ &.btn-priority-row {
158
+ @include btn-priority-row;
159
+ }
160
+
161
+ &.btn-login-to-book {
162
+ @include btn-login-to-book;
163
+ }
164
+
165
+ &.btn-sold-out {
166
+ @include btn-sold-out;
167
+ }
168
+
169
+ &.btn-add-membership-to-basket {
170
+ @include btn-add-membership-to-basket;
171
+ }
172
+
173
+ &.btn-remove-membership-from-basket {
174
+ @include btn-remove-membership-from-basket;
175
+ }
176
+
177
+ &.btn-additional-information {
178
+ @include btn-additional-information;
179
+ }
180
+
181
+ // modifyers
182
+
183
+ &.expand {
184
+ @include btn-expand;
185
+ }
186
+ }
@@ -0,0 +1,3 @@
1
+ .br-skiplink {
2
+ @include br-skiplink;
3
+ }
@@ -0,0 +1,16 @@
1
+ @mixin br-skiplink {
2
+ border: 0.25rem solid $c-grey-l21;
3
+ border-radius: $border-radius-lg;
4
+ background-color: $white;
5
+ color: $c-grey-l21;
6
+ position: absolute;
7
+ padding: 0.5rem;
8
+ z-index: -1;
9
+ opacity: 0;
10
+
11
+ @include focus {
12
+ outline: none;
13
+ opacity: 1;
14
+ z-index: 2;
15
+ }
16
+ }
@@ -319,13 +319,6 @@
319
319
  @mixin btn-login-to-book {
320
320
  @include btn-primary;
321
321
  @include flex-button($gap: 0.5rem);
322
- justify-content: center;
323
- min-width: initial;
324
-
325
- @include medium-down {
326
- margin-top: 1rem;
327
- width: 100%;
328
- }
329
322
  }
330
323
 
331
324
  @mixin btn-sold-out {
@@ -39,14 +39,14 @@
39
39
  @mixin focus-tabs {
40
40
  @include single-box($c-grey-l21);
41
41
  background-color: $c-grey-l21;
42
- border-radius: 0;
42
+ // border-radius: 0;
43
43
  color: $white;
44
44
  }
45
45
 
46
46
  @mixin focus-tabs-dark {
47
47
  @include single-box($white);
48
48
  background-color: $white;
49
- border-radius: 0;
49
+ // border-radius: 0;
50
50
  color: $black;
51
51
  }
52
52
 
@@ -1,4 +1,4 @@
1
- @mixin font-face($name: "SupremeLLWeb", $path: "/fonts/") {
1
+ @mixin font-face($name: "SupremeLLWeb", $path: "https://www.barbican.org.uk/themes/barb22/fonts/") {
2
2
  @font-face {
3
3
  font-family: "Supreme-Light";
4
4
  src: url("#{$path}#{$name}-Light.woff") format("woff"),
@@ -1,3 +1,5 @@
1
+ /// Generic margin/font weight reset for title headings
2
+ /// @param {String} $margin [0] - pixel value
1
3
  @mixin br-heading($margin: 0) {
2
4
  @include fontfamily-black;
3
5
  margin: $margin;
@@ -16,24 +16,26 @@
16
16
  border: 0;
17
17
  }
18
18
 
19
+ @import "account/orders";
20
+ @import "drupal/index.scss";
21
+
22
+ @import "basket";
19
23
  @import "br-alert";
20
24
  @import "br-card";
25
+ @import "br-footer";
26
+ @import "br-form-password";
21
27
  @import "br-form-row";
22
28
  @import "br-form-update";
23
- @import "br-form-password";
24
- @import "br-footer";
25
- @import "account/orders";
26
- @import "basket";
29
+ @import "br-skiplink";
27
30
  @import "breakpoints";
28
31
  @import "buttons";
29
- @import "content";
30
32
  @import "city-of-london";
33
+ @import "content";
31
34
  @import "core";
32
- @import "drupal/index.scss";
33
35
  @import "festival";
34
36
  @import "focus";
35
37
  @import "font";
36
38
  @import "headings";
37
- @import "loading";
38
39
  @import "input";
40
+ @import "loading";
39
41
  @import "table";
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  @mixin generic-input-label($state: neutral) {
58
- padding: 0.75rem 0.75rem 0.625rem 2.75rem;
58
+ padding: 0.75rem 0.75rem 0.625rem 2.5rem;
59
59
  border-radius: $border-radius-lg;
60
60
  border: 1px solid $c-grey-l65;
61
61
  background-color: $white;
@@ -1,4 +1,3 @@
1
-
2
1
  $columns-simple: auto 8rem;
3
2
  $columns-details--header: auto 10rem 8rem;
4
3
  $columns-details--checkbox: 2.75rem auto 10rem 8rem;
@@ -20,6 +20,8 @@ $h4-font-size: toRem(24);
20
20
 
21
21
  $h5-font-size: toRem(20);
22
22
 
23
+ $font-size-sm: toRem(14); // small as it gets
24
+
23
25
  $line-height-xs: 1.1;
24
26
 
25
27
  $line-height-sm: 1.2;
@@ -32,4 +34,6 @@ $headings-line-height: $line-height-sm;
32
34
 
33
35
  $headings-letter-spacing: -0.015em;
34
36
 
35
- $link-decoration: underline;
37
+ $link-decoration: underline;
38
+
39
+ $border-width: toRem(1);
@@ -0,0 +1,96 @@
1
+ /// $c-brand-art
2
+ $c-brand-art: hsl(329, 100%, 45%);
3
+ /// $c-brand-cinema
4
+ $c-brand-cinema: hsl(126, 62%, 33%);
5
+ /// $c-brand-classical
6
+ $c-brand-classical: hsl(38, 53%, 38%);
7
+ /// $c-brand-contemporary
8
+ $c-brand-contemporary: hsl(254, 44%, 33%);
9
+ $c-brand-generic: hsl(21, 100%, 41%);
10
+ $c-brand-membership: hsl(217, 72%, 53%);
11
+ $c-brand-programme: $c-grey-l21;
12
+ $c-brand-shop: hsl(168, 75%, 30%);
13
+ $c-brand-talks: hsl(214, 30%, 49%);
14
+ $c-brand-theatre: hsl(192, 99%, 31%);
15
+
16
+ $c-patron: $c-grey-l44;
17
+ $c-patron-light: hsl(0, 0%, 60%);
18
+ $c-principle: $c-brand-classical;
19
+ $c-principle-light: hsl(38, 53%, 53%);
20
+
21
+ /// see map-merge for example usage. talks--workshops is deprecated, use talks--events instead.
22
+ $setup: (
23
+ contemporary-music: $c-brand-contemporary,
24
+ membership--support: $c-brand-membership,
25
+ tours--public-spaces: $c-brand-generic,
26
+ classical-music: $c-brand-classical,
27
+ talks--workshops: $c-brand-talks,
28
+ theatre--dance: $c-brand-theatre,
29
+ talks--events: $c-brand-talks,
30
+ art--design: $c-brand-art,
31
+ generic: $c-brand-generic,
32
+ library: $c-brand-generic,
33
+ cinema: $c-brand-cinema,
34
+ hire: $c-brand-generic,
35
+ programme: $c-brand-programme,
36
+ shop: $c-brand-shop,
37
+ );
38
+
39
+ /// brands map will contain a shade map for each color variable
40
+ $brands: ();
41
+
42
+ /// map-brands automates the process of creating tints/shades for individual colors.
43
+ @function map-brands($color) {
44
+ $map: (
45
+ shade-65: shade($color, 65%),
46
+ shade-20: shade($color, 20%),
47
+ shade-10: shade($color, 10%),
48
+ base: $color,
49
+ tint-40: tint($color, 40%),
50
+ tint-70: tint($color, 70%),
51
+ tint-85: tint($color, 85%),
52
+ tint-95: tint($color, 95%),
53
+ tint-98: tint($color, 98%),
54
+ );
55
+ @return $map;
56
+ }
57
+
58
+ /// this process loops through the $setup map and creates a mappable value for each item, then merges the item into the $brands map
59
+ @each $key, $value in $setup {
60
+ $map: ();
61
+ $map: map-merge($map, ($key: map-brands($value)));
62
+ $brands: map-merge($brands, $map);
63
+ }
64
+
65
+ /// utility function for referencing a color variant from the brands map
66
+ /// @param {Map} $name - color reference from the $setup map
67
+ /// @param {String} $variant - shade reference from the map-brands function
68
+ @function brandColor($name, $variant: base) {
69
+ @return map-get(map-get($brands, $name), $variant);
70
+ }
71
+
72
+ $c-background-alt: brandColor(generic, tint-95);
73
+
74
+ /// @deprecated $c-brand-cinema-dark
75
+ $c-brand-cinema-dark: brandColor(cinema, shade-20);
76
+ /// @deprecated $c-brand-shop-light
77
+ $c-brand-shop-light: brandColor(shop, tint-85);
78
+ /// @deprecated $c-brand-shop-dark
79
+ $c-brand-shop-dark: brandColor(shop, shade-20);
80
+
81
+ /// @deprecated $c-brand-faint?
82
+ $c-brand-generic-s60-l99: brandColor(generic, tint-95);
83
+ /// @deprecated $c-brand-light?
84
+ $c-brand-generic-s100-l95: brandColor(generic, tint-85);
85
+ /// @deprecated $c-brand-shade?
86
+ $c-brand-generic-s50-l90: brandColor(generic, tint-70);
87
+ /// @deprecated $c-brand-dark?
88
+ $c-brand-generic-s100-l38: brandColor(generic, shade-10);
89
+ /// @deprecated $c-brand-x-dark?
90
+ $c-brand-generic-s100-l15: brandColor(generic, shade-65);
91
+ /// @deprecated $c-brand-classical-light
92
+ $c-brand-classical-light: brandColor(classical-music, tint-95);
93
+ /// @deprecated $c-brand-classical-dark
94
+ $c-brand-classical-dark: brandColor(classical-music, shade-20);
95
+
96
+ $c-brand-membership-dark: hsl(223, 87%, 21%);
@@ -1,6 +1,8 @@
1
+ $black: hsl(0, 0%, 0%); // deprecate this for $c-grey-l11
2
+
1
3
  $c-grey-l11: hsl(0, 0%, 10%); // midnight
2
4
  $c-grey-l21: hsl(0, 0%, 20%); // night
3
5
  $c-grey-l44: hsl(0, 0%, 35%); // steel
4
6
  $c-grey-l65: hsl(0, 0%, 65%); // concrete
5
7
  $c-grey-l87: hsl(0, 0%, 85%); // pearl
6
- $c-grey-l96: hsl(0, 0%, 95%); // alpine
8
+ $c-grey-l96: hsl(0, 0%, 95%); // alpine
@@ -3,4 +3,4 @@
3
3
  @import 'docs';
4
4
  @import 'status';
5
5
  @import 'wgp';
6
- @import 'llf';
6
+ @import 'llf';
@@ -0,0 +1,5 @@
1
+ @import 'colors/index';
2
+ @import 'typography';
3
+ @import 'alerts';
4
+ @import 'layout';
5
+ @import 'columns';
package/scss/index.scss CHANGED
@@ -1,7 +1,8 @@
1
1
  @import "node_modules/bootstrap/scss/functions";
2
2
  @import "node_modules/bootstrap/scss/variables";
3
3
  @import "node_modules/bootstrap/scss/mixins";
4
- @import "../helpers/index";
4
+
5
+ @import "helpers/index";
5
6
 
6
7
  @include font-face;
7
8
 
@@ -15,6 +16,7 @@
15
16
  @import "table";
16
17
 
17
18
  @import "br-alert";
19
+ @import "br-button";
18
20
  @import "br-checkbox";
19
21
  @import "br-container";
20
22
  @import "br-footer";
@@ -25,10 +27,10 @@
25
27
  @import "br-promo";
26
28
  @import "br-radio";
27
29
  @import "br-select";
30
+ @import "br-skiplink";
28
31
  @import "br-wrap";
29
32
 
30
33
  // bootstrap component styles
31
- @import "btn";
32
34
  @import "card/index";
33
35
  @import "card-deck";
34
36
  @import "form";
@@ -104,8 +106,8 @@ p+p {
104
106
  margin-top: 1rem;
105
107
  }
106
108
 
109
+ /// b tag in use on iframes
107
110
  strong,
108
111
  b {
109
- // b tag in use on iframes
110
112
  @include fontfamily-black;
111
113
  }