barbican-reset 2.23.0 → 2.25.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.
@@ -0,0 +1,122 @@
1
+ $xsmall: 416;
2
+ $small: 520;
3
+ $medium: 768;
4
+ $large: 960;
5
+ $xlarge: 1200;
6
+ $xxlarge: 1600;
7
+
8
+ @mixin max-width($width) {
9
+ @media only screen and (max-width: #{$width - 1}px) {
10
+ @content;
11
+ }
12
+ }
13
+
14
+ @mixin min-width($width) {
15
+ @media only screen and (min-width: #{$width}px) {
16
+ @content;
17
+ }
18
+ }
19
+
20
+ @mixin x-small-up {
21
+ @include min-width($xsmall) {
22
+ @content
23
+ }
24
+ }
25
+
26
+ @mixin x-small-down {
27
+ @include max-width($xsmall) {
28
+ @content
29
+ }
30
+ }
31
+
32
+ @mixin small-down {
33
+ @include max-width($small) {
34
+ @content
35
+ }
36
+ }
37
+
38
+ @mixin small-up {
39
+ @include min-width($small) {
40
+ @content
41
+ }
42
+ }
43
+
44
+ @mixin small-only {
45
+ @include x-small-up {
46
+ @include small-down {
47
+ @content;
48
+ }
49
+ }
50
+ }
51
+
52
+ @mixin medium-up {
53
+ @include min-width($medium) {
54
+ @content
55
+ }
56
+ }
57
+
58
+ @mixin medium-down {
59
+ @include max-width($medium) {
60
+ @content
61
+ }
62
+ }
63
+
64
+ @mixin medium-only {
65
+ @include small-up {
66
+ @include medium-down {
67
+ @content;
68
+ }
69
+ }
70
+ }
71
+
72
+ @mixin large-up {
73
+ @include min-width($large) {
74
+ @content
75
+ }
76
+ }
77
+
78
+ @mixin large-down {
79
+ @include max-width($large) {
80
+ @content
81
+ }
82
+ }
83
+
84
+ @mixin large-only {
85
+ @include medium-up {
86
+ @include large-down {
87
+ @content;
88
+ }
89
+ }
90
+ }
91
+
92
+ @mixin x-large-up {
93
+ @include min-width($xlarge) {
94
+ @content
95
+ }
96
+ }
97
+
98
+ @mixin x-large-down {
99
+ @include max-width($xlarge) {
100
+ @content
101
+ }
102
+ }
103
+
104
+ @mixin xlarge-only {
105
+ @include large-up {
106
+ @include x-large-down {
107
+ @content;
108
+ }
109
+ }
110
+ }
111
+
112
+ @mixin xx-large-up {
113
+ @include min-width($xxlarge) {
114
+ @content
115
+ }
116
+ }
117
+
118
+ @mixin xx-large-down {
119
+ @include max-width($xxlarge) {
120
+ @content
121
+ }
122
+ }
@@ -310,7 +310,13 @@
310
310
  @mixin btn-login-to-book {
311
311
  @include display-button(flex, 0.5);
312
312
  @include btn-primary;
313
+ justify-content: center;
313
314
  min-width: initial;
315
+
316
+ @include media-breakpoint-down(md) {
317
+ margin-top: 1rem;
318
+ width: 100%;
319
+ }
314
320
  }
315
321
 
316
322
  @mixin btn-sold-out {
@@ -321,7 +327,7 @@
321
327
  }
322
328
 
323
329
  @mixin btn-add-membership-to-basket {
324
- @include solid-button($background:$c-brand-membership);
330
+ @include solid-button($background: $c-brand-membership);
325
331
  @include display-button(flex, 0.5);
326
332
  }
327
333
 
@@ -24,6 +24,7 @@
24
24
  @import "br-footer";
25
25
  @import "account/orders";
26
26
  @import "basket";
27
+ @import "breakpoints";
27
28
  @import "buttons";
28
29
  @import "content";
29
30
  @import "city-of-london";
@@ -6,10 +6,6 @@
6
6
  @mixin br-spx-checkbox($state: neutral) {
7
7
  @include br-checkbox($state);
8
8
 
9
- label {
10
- @include fontfamily-light;
11
- }
12
-
13
9
  input:focus {
14
10
  @include generic-input-target-focus;
15
11
  }
@@ -2,5 +2,4 @@
2
2
  @import 'typography';
3
3
  @import 'alerts';
4
4
  @import 'layout';
5
- @import 'breakpoints';
6
5
  @import 'columns';
package/package.json CHANGED
@@ -103,5 +103,5 @@
103
103
  "watch:patterns": "cd patterns && gulp watch"
104
104
  },
105
105
  "style": "dist/css/barbican-reset.css",
106
- "version": "2.23.0"
106
+ "version": "2.25.0"
107
107
  }
@@ -1,9 +0,0 @@
1
- $grid-breakpoints: (
2
- xxs: 0, /* required */
3
- xs: 26em, /* 416px */
4
- sm: 32.5em, /* 520px */
5
- md: 48em, /* 768px */
6
- lg: 60em, /* 960px */
7
- xl: 75em, /* 1200px */
8
- xxl: 100em, /* 1600px */
9
- );