barbican-reset 1.3.8 → 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,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
 
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.3.8",
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": {
@@ -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,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;