barbican-reset 1.3.5 → 1.3.9

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.
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div :class="styleContainer">
2
+ <div :class="styleContainer" :data-test="testData">
3
3
  <div :class="styleWrap">
4
4
  <span :class="styleSpan">
5
5
  <div :class="$style.title" v-if="title.length > 0 && !toggle">{{ title }}</div>
@@ -56,6 +56,13 @@ export default {
56
56
  }
57
57
  },
58
58
  computed: {
59
+ testData() {
60
+ if (this.error) {
61
+ return 'alert-error';
62
+ } else if (this.success) {
63
+ return 'alert-success';
64
+ } return 'alert-neutral';
65
+ },
59
66
  styleContainer() {
60
67
  let style = this.$style;
61
68
  let output = [style.container];
@@ -1,5 +1,8 @@
1
1
  <template>
2
2
  <div :class="styleComponent">
3
+ <div v-if="type === 'live'" :class="$style.icon">
4
+ <div class="btn btn-secondary">live</div>
5
+ </div>
3
6
  <img :class="$style.image" :src="image">
4
7
  <div v-if="expired" :class="$style.title">
5
8
  <h4>Expired</h4>
@@ -22,7 +25,11 @@ export default {
22
25
  hero: {
23
26
  type: Boolean,
24
27
  default: false,
25
- }
28
+ },
29
+ type: {
30
+ type: String,
31
+ default: 'live',
32
+ },
26
33
  },
27
34
  computed: {
28
35
  styleComponent() {
@@ -42,24 +49,35 @@ export default {
42
49
  position: relative;
43
50
  overflow: hidden;
44
51
  color: $white;
52
+ }
45
53
 
46
- .image {
47
- position: absolute;
48
- height: auto;
49
- width: 100%;
50
- inset: 0;
51
- }
54
+ .icon {
55
+ position: absolute;
56
+ right: 1rem;
57
+ top: 1rem;
58
+ }
52
59
 
53
- .title {
54
- background-color: rgba($c-grey-midnight, 0.85);
55
- place-items: center;
56
- position: absolute;
57
- display: grid;
58
- inset: 0;
59
- }
60
+ .image {
61
+ position: absolute;
62
+ height: auto;
63
+ width: 100%;
64
+ inset: 0;
65
+ }
66
+
67
+ .title {
68
+ background-color: rgba($c-grey-midnight, 0.85);
69
+ place-items: center;
70
+ position: absolute;
71
+ display: grid;
72
+ inset: 0;
60
73
  }
61
74
 
62
75
  .component.hero {
76
+ .icon {
77
+ right: 1.5rem;
78
+ top: 1.5rem;
79
+ }
80
+
63
81
  .title {
64
82
  h4 {
65
83
  font-size: $h2-font-size;
@@ -17,15 +17,17 @@ export default {
17
17
  margin-left: auto;
18
18
  max-width: 20rem;
19
19
 
20
+ @include media-breakpoint-down(md) {
21
+ .card + .card {
22
+ margin-top: 1.25rem;
23
+ }
24
+ }
25
+
20
26
  @include media-breakpoint-up(md) {
21
27
  grid-template-columns: repeat(3, 1fr);
22
28
  column-gap: 1.25rem;
23
29
  max-width: 60rem;
24
30
  display: grid;
25
-
26
- .card {
27
- margin-bottom: 0;
28
- }
29
31
  }
30
32
  }
31
33
 
@@ -202,6 +202,14 @@
202
202
  $color: $white,
203
203
  $background: transparent
204
204
  );
205
+ @include focus {
206
+ &.member {
207
+ color: $c-member;
208
+ }
209
+ &.member-plus {
210
+ color: $c-member-dark;
211
+ }
212
+ }
205
213
  }
206
214
 
207
215
  @mixin btn-video-login {
@@ -211,6 +219,13 @@
211
219
  );
212
220
  }
213
221
 
222
+ @mixin btn-cta {
223
+ @include button-solid(
224
+ $background: $c-grey-night,
225
+ $display: 'flex');
226
+ fill: $white;
227
+ }
228
+
214
229
  @mixin btn-invisible {
215
230
  &, &:focus {
216
231
  background: transparent;
@@ -1,5 +1,5 @@
1
1
  // paths more explicit for gulp-sass
2
2
  @import "colors/index.scss";
3
- @import "layout/index.scss";
3
+ @import "layout.scss";
4
4
  @import "breakpoints.scss";
5
5
  @import "typography.scss";
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H3.83L9.42 1.41L8 0L0 8L8 16L9.41 14.59L3.83 9H16V7Z" fill="black"/></svg>
2
+ <svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M16 7H3.83L9.42 1.41L8 0L0 8L8 16L9.41 14.59L3.83 9H16V7Z" />
4
+ </svg>
3
5
  </template>
4
6
 
5
7
  <script>
package/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
 
2
- import Card from './components/card'
3
2
  import Container from './components/container'
4
- import Block from './components/block'
5
3
  import EventSummary from './components/event_summary'
6
4
  import AccountTitle from './components/account_title'
7
5
  import Wrap from './components/wrap'
@@ -32,14 +30,12 @@ export {
32
30
  TypeText,
33
31
  Container,
34
32
  Wrap,
35
- Card,
36
33
  AccountTitle,
37
34
  Placeholder,
38
35
  FormSection,
39
36
  FormUpdate,
40
37
  FormGroup,
41
38
  RadioGroup,
42
- Block,
43
39
  EventSummary,
44
40
  FooterUpper,
45
41
  FooterLogos,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.3.5",
3
+ "version": "1.3.9",
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": {
package/scss/_atomic.scss CHANGED
@@ -32,6 +32,10 @@ $aligns: "left", "center", "right";
32
32
  font-weight: 700;
33
33
  }
34
34
 
35
+ .font-weight-400 {
36
+ font-weight: 400;
37
+ }
38
+
35
39
  .font-size-lg {
36
40
  font-size: $font-size-lg;
37
41
  }
package/scss/_btn.scss CHANGED
@@ -64,6 +64,10 @@
64
64
  @include btn-power-login;
65
65
  }
66
66
 
67
+ &.btn-cta {
68
+ @include btn-cta;
69
+ }
70
+
67
71
  &.btn-invisible {
68
72
  @include btn-invisible;
69
73
  }
@@ -10,8 +10,8 @@
10
10
  }
11
11
 
12
12
  .card {
13
- margin-bottom: 0;
14
13
  max-width: 20rem;
14
+ margin-top: 0;
15
15
  }
16
16
 
17
17
  .card-title {
@@ -3,7 +3,7 @@
3
3
  margin-top: $gap-account;
4
4
  margin-bottom: 0;
5
5
 
6
- .card-body {
6
+ > .card-body {
7
7
  padding: $gap-account;
8
8
  }
9
9
 
@@ -0,0 +1,5 @@
1
+
2
+ .card[block] {
3
+ box-shadow: 0 0 0.625rem rgba($black, 0.1);
4
+ border: none;
5
+ }
@@ -0,0 +1,45 @@
1
+
2
+ $angle: 120deg;
3
+
4
+ .card[membership] {
5
+ box-shadow: 0 0 0.375rem rgba($c-grey-steel, 0.5);
6
+ background: $c-grey-night;
7
+ width: calc(100% - 1rem);
8
+ display: inline-block;
9
+ margin: 0.5rem;
10
+ color: $white;
11
+ border: none;
12
+
13
+ @include media-breakpoint-up(sm) {
14
+ width: 23rem;
15
+ }
16
+
17
+ > .card-body {
18
+ align-items: flex-start;
19
+ row-gap: 0.75rem;
20
+ display: grid;
21
+
22
+ @include media-breakpoint-up(sm) {
23
+ row-gap: 2rem;
24
+ }
25
+ }
26
+
27
+ &.member {
28
+ background-color: $c-member;
29
+ }
30
+
31
+ &.member-plus {
32
+ background-color: $c-member-dark;
33
+ background-image: linear-gradient($angle, $c-member-dark 20%, $c-member 100%);
34
+ }
35
+
36
+ &.patron, &.premier-patron {
37
+ background-color: $c-patron;
38
+ background-image: linear-gradient($angle, $c-patron 60%, $c-patron-light 75%, $c-patron 90%);
39
+ }
40
+
41
+ &.principle-patron, &.directors-circle {
42
+ background-color: $c-principle;
43
+ background-image: linear-gradient($angle, $c-principle 60%, $c-principle-light 75%, $c-principle 90%);
44
+ }
45
+ }
@@ -3,6 +3,10 @@
3
3
  border: 1px solid $c-grey-pearl;
4
4
  overflow: hidden;
5
5
 
6
+ + .card {
7
+ margin-top: 0;
8
+ }
9
+
6
10
  img {
7
11
  max-width: 100%;
8
12
  }
@@ -2,7 +2,6 @@
2
2
  $border: 1px solid $c-grey-pearl;
3
3
 
4
4
  .card[video-help] {
5
- margin-bottom: 0;
6
5
  overflow: hidden;
7
6
  border: $border;
8
7
 
@@ -17,6 +16,10 @@ $border: 1px solid $c-grey-pearl;
17
16
  border-bottom: 0;
18
17
  }
19
18
 
19
+ + .card {
20
+ margin-top: 0;
21
+ }
22
+
20
23
  .card-header {
21
24
  border-radius: 0;
22
25
  border-bottom: 0;
@@ -5,15 +5,16 @@
5
5
  @import "account.scss";
6
6
  @import "video-help.scss";
7
7
  @import "related.scss";
8
+ @import "block.scss";
9
+ @import "membership.scss";
8
10
 
9
11
  .card {
10
12
  border: 1px solid $c-grey-pearl;
11
13
  border-radius: $border-radius-lg;
12
- margin-bottom: 1.25rem;
14
+ }
13
15
 
14
- &:last-child {
15
- margin-bottom: 0;
16
- }
16
+ .card + .card {
17
+ margin-top: 1.25rem;
17
18
  }
18
19
 
19
20
  .card-header {
@@ -1,19 +0,0 @@
1
- <template>
2
- <div :class="$style.outer">
3
- <div :class="$style.inner">
4
- <slot />
5
- </div>
6
- </div>
7
- </template>
8
-
9
- <style lang="scss" module>
10
-
11
- .outer {
12
- @include content_masthead;
13
- }
14
-
15
- .inner {
16
- @include content_masthead__inner;
17
- }
18
-
19
- </style>
@@ -1,30 +0,0 @@
1
- <template>
2
- <div :class="styleContainer">
3
- <slot />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- computed: {
10
- styleContainer() {
11
- return this.$style.container;
12
- }
13
- }
14
- }
15
- </script>
16
-
17
- <style lang="scss" module>
18
-
19
- @import "../helpers/mixins";
20
-
21
- .container {
22
- @include card-container;
23
- box-shadow: 0 0 0.625rem rgba($black, 0.1);
24
-
25
- &:not(:last-of-type) {
26
- margin-bottom: $gap-basket;
27
- }
28
- }
29
-
30
- </style>
@@ -1,59 +0,0 @@
1
- <template>
2
- <div :class="styleContainer">
3
- <slot />
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- props: {
10
- wrap: {
11
- type: Boolean,
12
- default: false,
13
- },
14
- account: {
15
- type: Boolean,
16
- default: false,
17
- }
18
- },
19
- computed: {
20
- styleContainer() {
21
- let styles = [this.$style.container];
22
- if (this.wrap) {
23
- styles.push(this.$style.wrap);
24
- }
25
- if (this.account) {
26
- styles.push(this.$style.account);
27
- }
28
- return styles;
29
- }
30
- }
31
- }
32
- </script>
33
-
34
- <style lang="scss" module>
35
-
36
- @import "../helpers/mixins";
37
-
38
- .container {
39
- @include card-container;
40
- border: 1px solid $c-grey-pearl;
41
- align-content: start;
42
- display: grid;
43
- gap: 1.25rem;
44
- }
45
-
46
- .container.wrap {
47
- background-color: $gray-100;
48
- }
49
-
50
- .container.account {
51
- padding: $gap-account;
52
- display: block;
53
-
54
- &:not(:last-of-type) {
55
- margin-bottom: $gap-account;
56
- }
57
- }
58
-
59
- </style>