barbican-reset 2.32.0 → 2.34.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 (45) hide show
  1. package/README.md +147 -0
  2. package/components/br_alert.vue +10 -9
  3. package/components/br_form_row.vue +4 -1
  4. package/components/br_skiplink.vue +17 -0
  5. package/helpers/mixins/_br-form-row.scss +4 -0
  6. package/helpers/mixins/_br-skiplink.scss +16 -0
  7. package/helpers/mixins/_buttons.scss +0 -7
  8. package/helpers/mixins/_focus.scss +2 -2
  9. package/helpers/mixins/index.scss +9 -7
  10. package/helpers/mixins/input/_generic.scss +1 -1
  11. package/helpers/variables/_columns.scss +0 -1
  12. package/helpers/variables/_typography.scss +5 -1
  13. package/{patterns/scss → helpers/variables}/colors/_grey.scss +3 -1
  14. package/{patterns/scss → helpers/variables}/colors/index.scss +1 -1
  15. package/helpers/variables/index.scss +2 -2
  16. package/index.js +34 -35
  17. package/package.json +7 -4
  18. package/patterns/components/alert.pug +8 -0
  19. package/patterns/components/section.pug +3 -0
  20. package/patterns/html/blocks.html +1 -0
  21. package/patterns/html/index.html +1 -0
  22. package/patterns/html/layouts.html +1 -0
  23. package/patterns/index.js +19 -7
  24. package/patterns/layouts/main.pug +21 -0
  25. package/patterns/layouts/page.pug +2 -0
  26. package/patterns/pages/alerts.pug +9 -0
  27. package/patterns/pages/colors.pug +25 -0
  28. package/patterns/scss/styles.scss +67 -2
  29. package/patterns/static/favicon.ico +0 -0
  30. package/patterns/static/styles.css +2206 -26
  31. package/patterns/views/blocks.pug +7 -0
  32. package/patterns/views/index.pug +5 -28
  33. package/patterns/views/layouts.pug +4 -0
  34. package/scss/_br-button.scss +159 -0
  35. package/scss/_br-skiplink.scss +3 -0
  36. package/scss/card/_confirm.scss +2 -4
  37. package/scss/index.scss +2 -1
  38. package/components/skip_link.vue +0 -38
  39. package/patterns/views/layout.pug +0 -8
  40. /package/{patterns/scss → helpers/variables}/colors/_brand.scss +0 -0
  41. /package/{patterns/scss → helpers/variables}/colors/_docs.scss +0 -0
  42. /package/{patterns/scss → helpers/variables}/colors/_llf.scss +0 -0
  43. /package/{patterns/scss → helpers/variables}/colors/_status.scss +0 -0
  44. /package/{patterns/scss → helpers/variables}/colors/_wgp.scss +0 -0
  45. /package/patterns/{views/mixins.pug → components/samples.pug} +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
@@ -0,0 +1,159 @@
1
+ .btn {
2
+ @include setup-button;
3
+
4
+ &.btn-primary {
5
+ // solid orange
6
+ @include btn-primary;
7
+ }
8
+
9
+ &.btn-outline-primary {
10
+ // orange outline, fill on focus
11
+ @include btn-outline-primary;
12
+ }
13
+
14
+ &.btn-outline-header {
15
+ // orange outline, fill on focus
16
+ @include btn-outline-header;
17
+ }
18
+
19
+ &.btn-info {
20
+ // solid blue
21
+ @include btn-info;
22
+ }
23
+
24
+ &.btn-outline-info {
25
+ // blue outline, fill on focus
26
+ @include btn-outline-info;
27
+ }
28
+
29
+ &.btn-secondary {
30
+ // solid grey
31
+ @include btn-secondary;
32
+ }
33
+
34
+ &.btn-outline-secondary {
35
+ // grey outline, fill on focus
36
+ @include btn-outline-secondary;
37
+ }
38
+
39
+ &.btn-input-edit {
40
+ @include btn-input-edit;
41
+ }
42
+
43
+ &.btn-remove {
44
+ // solid grey, slim
45
+ @include btn-remove;
46
+ }
47
+
48
+ &.btn-link {
49
+ @include btn-link;
50
+ }
51
+
52
+ &.btn-video-help {
53
+ @include btn-video-help;
54
+ }
55
+
56
+ &.btn-exit {
57
+ @include btn-exit;
58
+ }
59
+
60
+ &.btn-remove-ticket {
61
+ @include btn-remove-ticket;
62
+ }
63
+
64
+ &.btn-remove-gift {
65
+ @include btn-remove-gift;
66
+ }
67
+
68
+ &.btn-membership-card {
69
+ @include btn-membership-card;
70
+ }
71
+
72
+ &.btn-video-login {
73
+ @include btn-video-login;
74
+ }
75
+
76
+ &.btn-cta {
77
+ @include btn-cta;
78
+ }
79
+
80
+ &.btn-carousel {
81
+ @include btn-carousel;
82
+ }
83
+
84
+ &.btn-invisible {
85
+ @include btn-invisible;
86
+ }
87
+
88
+ &.btn-returns {
89
+ // solid orange
90
+ @include btn-returns;
91
+ }
92
+
93
+ &.btn-cancel-returns {
94
+ // solid orange
95
+ @include btn-cancel-returns;
96
+ }
97
+
98
+ &.btn-resale {
99
+ // orange outline, fill on focus
100
+ @include btn-resale;
101
+ }
102
+
103
+ &.btn-radio {
104
+ border: 1px solid hsl(0deg, 0%, 65%);
105
+ padding: 0.75rem 0.75rem 0.625rem;
106
+ font-weight: 400;
107
+ margin: 0.25rem;
108
+
109
+ @include focus {
110
+ @include default-label-focus;
111
+ }
112
+ }
113
+
114
+ &.btn-menu {
115
+ @include btn-menu;
116
+ }
117
+
118
+ &.btn-basket {
119
+ @include btn-basket;
120
+ }
121
+
122
+ &.btn-discover {
123
+ @include btn-discover;
124
+ }
125
+
126
+ &.btn-membership-pill {
127
+ @include btn-membership-pill;
128
+ }
129
+
130
+ &.btn-priority-row {
131
+ @include btn-priority-row;
132
+ }
133
+
134
+ &.btn-login-to-book {
135
+ @include btn-login-to-book;
136
+ }
137
+
138
+ &.btn-sold-out {
139
+ @include btn-sold-out;
140
+ }
141
+
142
+ &.btn-add-membership-to-basket {
143
+ @include btn-add-membership-to-basket;
144
+ }
145
+
146
+ &.btn-remove-membership-from-basket {
147
+ @include btn-remove-membership-from-basket;
148
+ }
149
+
150
+ &.btn-additional-information {
151
+ @include btn-additional-information;
152
+ }
153
+
154
+ // modifyers
155
+
156
+ &.expand {
157
+ @include btn-expand;
158
+ }
159
+ }
@@ -0,0 +1,3 @@
1
+ .br-skiplink {
2
+ @include br-skiplink;
3
+ }
@@ -5,10 +5,8 @@
5
5
  margin-left: auto;
6
6
  max-width: 20rem;
7
7
 
8
- $gap: 0.625rem;
9
-
10
8
  svg {
11
- margin-bottom: $gap;
9
+ margin-bottom: 0.125rem;
12
10
  }
13
11
 
14
12
  .card-title {
@@ -22,6 +20,6 @@
22
20
  }
23
21
 
24
22
  .card-text {
25
- margin-top: $gap;
23
+ margin-top: 1rem;
26
24
  }
27
25
  }
package/scss/index.scss CHANGED
@@ -15,6 +15,7 @@
15
15
  @import "table";
16
16
 
17
17
  @import "br-alert";
18
+ @import "br-button";
18
19
  @import "br-checkbox";
19
20
  @import "br-container";
20
21
  @import "br-footer";
@@ -25,10 +26,10 @@
25
26
  @import "br-promo";
26
27
  @import "br-radio";
27
28
  @import "br-select";
29
+ @import "br-skiplink";
28
30
  @import "br-wrap";
29
31
 
30
32
  // bootstrap component styles
31
- @import "btn";
32
33
  @import "card/index";
33
34
  @import "card-deck";
34
35
  @import "form";
@@ -1,38 +0,0 @@
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-l21;
23
- border-radius: $border-radius-lg;
24
- background-color: $white;
25
- color: $c-grey-l21;
26
- position: absolute;
27
- padding: 0.5rem;
28
- z-index: -1;
29
- opacity: 0;
30
-
31
- @include focus {
32
- outline: none;
33
- opacity: 1;
34
- z-index: 2;
35
- }
36
- }
37
-
38
- </style>
@@ -1,8 +0,0 @@
1
- html
2
- head
3
- title Pattern Library | Barbican Reset
4
- link(rel="stylesheet" href="/styles.css")
5
- body
6
- .br-container--outer
7
- .br-container--inner
8
- block content