barbican-reset 1.3.1 → 1.3.2

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.
@@ -9,7 +9,7 @@
9
9
 
10
10
  <script>
11
11
  export default {
12
- name: "DisplayStream",
12
+ name: "CardDisplay",
13
13
  props: {
14
14
  image: {
15
15
  type: String,
@@ -21,6 +21,10 @@ export default {
21
21
  type: Boolean,
22
22
  default: false
23
23
  },
24
+ header: {
25
+ type: Boolean,
26
+ default: false
27
+ },
24
28
  footer: {
25
29
  type: Boolean,
26
30
  default: false
@@ -39,6 +43,7 @@ export default {
39
43
  let output = [style.inner];
40
44
  if (this.masthead) { output.push(style.masthead); }
41
45
  if (this.thin) { output.push(style.thin); }
46
+ if (this.header) { output.push(style.header); }
42
47
  if (this.footer) { output.push(style.footer); }
43
48
  return output;
44
49
  }
@@ -76,6 +81,11 @@ export default {
76
81
  padding-top: 2.5rem;
77
82
  }
78
83
  }
84
+
85
+ &.header {
86
+ padding-bottom: 1.875rem;
87
+ padding-top: 1.875rem;
88
+ }
79
89
 
80
90
  &.thin {
81
91
  max-width: $layout-width-thin;
@@ -13,6 +13,6 @@
13
13
 
14
14
  <script>
15
15
  export default {
16
- name: "LoadingAnimation",
16
+ name: "Loader",
17
17
  };
18
18
  </script>
package/index.js CHANGED
@@ -5,16 +5,14 @@ import Block from './components/block'
5
5
  import EventSummary from './components/event_summary'
6
6
  import AccountTitle from './components/account_title'
7
7
  import Wrap from './components/wrap'
8
- import TableRow from './components/table_row'
9
- import Banner from './components/banner'
10
8
  import Alert from './components/alert'
11
- import LoadingAnimation from './components/loading_animation'
9
+ import Loader from './components/loader'
12
10
  import RelatedTitle from './components/related_title'
13
11
  import RelatedCard from './components/related_card'
14
12
  import RelatedRow from './components/related_row'
15
13
  import TypeText from './components/type_text'
16
14
  import Placeholder from './components/placeholder'
17
- import CardDeck from './components/card_deck'
15
+ import CardDisplay from './components/card_display'
18
16
  import FormSection from './components/form_section'
19
17
  import FormUpdate from './components/form_update'
20
18
  import FormGroup from './components/form_group'
@@ -24,10 +22,9 @@ import FooterLogos from './components/footer_logos'
24
22
  import FooterLower from './components/footer_lower'
25
23
  import FluidIframe from './components/fluid_iframe'
26
24
  import HelpRow from './components/help_row'
27
- import DisplayStream from './components/display_stream'
28
25
 
29
26
  export {
30
- LoadingAnimation,
27
+ Loader,
31
28
  Alert,
32
29
  RelatedTitle,
33
30
  RelatedCard,
@@ -36,21 +33,18 @@ export {
36
33
  Container,
37
34
  Wrap,
38
35
  Card,
39
- Banner,
40
36
  AccountTitle,
41
37
  Placeholder,
42
38
  FormSection,
43
39
  FormUpdate,
44
40
  FormGroup,
45
41
  RadioGroup,
46
- TableRow,
47
42
  Block,
48
43
  EventSummary,
49
- CardDeck,
50
44
  FooterUpper,
51
45
  FooterLogos,
52
46
  FooterLower,
53
47
  FluidIframe,
54
48
  HelpRow,
55
- DisplayStream,
49
+ CardDisplay,
56
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
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/_app.scss ADDED
@@ -0,0 +1,42 @@
1
+ #app {
2
+ flex-direction: column;
3
+ min-height: 100vh;
4
+ min-width: 100%;
5
+ display: flex;
6
+ }
7
+
8
+ #app.splash {
9
+ &.powerDashboard,
10
+ &.powerStream {
11
+ background-position: center -15rem;
12
+ background-color: $c-power-blue;
13
+ background-repeat: no-repeat;
14
+
15
+ @include media-breakpoint-up(lg) {
16
+ background-image: url("/img/power/bg.jpg");
17
+ background-size: 36rem;
18
+ }
19
+
20
+ @include media-breakpoint-up(xxl) {
21
+ background-size: 40rem;
22
+ }
23
+ }
24
+
25
+ &.videos,
26
+ &.cinemaDashboard,
27
+ &.cinemaStream,
28
+ &.concertDashboard,
29
+ &.concertStream,
30
+ &.theatreDashboard,
31
+ &.theatreStream {
32
+ background-image: url("/img/videos/splash-bg.jpg");
33
+ background-color: $c-splash-videos;
34
+ background-position: center -4rem;
35
+ background-repeat: no-repeat;
36
+ background-size: 72rem;
37
+
38
+ @include media-breakpoint-up(xxl) {
39
+ background-position: center top;
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,25 @@
1
+
2
+ .card-deck {
3
+ justify-content: center;
4
+ display: grid;
5
+ gap: 2rem;
6
+
7
+ @include media-breakpoint-up(md) {
8
+ align-items: flex-start;
9
+ grid-auto-flow: column;
10
+ }
11
+
12
+ .card {
13
+ margin-bottom: 0;
14
+ max-width: 20rem;
15
+ }
16
+
17
+ .card-title {
18
+ font-size: $h3-font-size;
19
+ }
20
+
21
+ .card-img {
22
+ border-radius: $border-radius-lg;
23
+ margin-top: 1rem;
24
+ }
25
+ }
@@ -0,0 +1,8 @@
1
+ footer {
2
+ color: $white;
3
+
4
+ &:not(.splash) {
5
+ background-color: $c-grey-midnight;
6
+ }
7
+ }
8
+
@@ -0,0 +1,7 @@
1
+ header {
2
+ background-color: $c-page-header-bg;
3
+
4
+ &.splash {
5
+ display: none;
6
+ }
7
+ }
@@ -0,0 +1,14 @@
1
+ main {
2
+ &.splash {
3
+ padding-top: 2rem;
4
+ color: $white;
5
+
6
+ @include media-breakpoint-up(md) {
7
+ padding-top: 4rem;
8
+ }
9
+
10
+ @include media-breakpoint-up(xxl) {
11
+ padding-top: 10rem;
12
+ }
13
+ }
14
+ }
@@ -10,6 +10,10 @@
10
10
  .card-title {
11
11
  font-size: $font-size-lg;
12
12
  }
13
+
14
+ .card-text:not(:last-child) {
15
+ margin-bottom: 0.5rem;
16
+ }
13
17
  }
14
18
 
15
19
  .card[related][hero=true] {
package/scss/index.scss CHANGED
@@ -4,6 +4,10 @@
4
4
  @import "node_modules/bootstrap/scss/mixins";
5
5
  @import "../helpers/index.scss";
6
6
 
7
+ @import "app.scss";
8
+ @import "header.scss";
9
+ @import "main.scss";
10
+ @import "footer.scss";
7
11
  @import "klaro.scss";
8
12
  @import "fonts.scss";
9
13
  @import "loading-animation.scss";
@@ -13,6 +17,7 @@
13
17
  // bootstrap component styles
14
18
  @import "btn.scss";
15
19
  @import "card/index.scss";
20
+ @import "card-group.scss";
16
21
  @import "checkbox.scss";
17
22
  @import "checkbox-group.scss";
18
23
  @import "form.scss";
@@ -39,12 +44,4 @@ a, a:hover {
39
44
 
40
45
  p:last-of-type:not([class^=margin]) {
41
46
  margin-bottom: 0;
42
- }
43
-
44
- footer {
45
- color: $white;
46
-
47
- &:not(.splash) {
48
- background-color: $c-grey-midnight;
49
- }
50
47
  }
@@ -1,41 +0,0 @@
1
- <template>
2
- <b-card-group deck>
3
- <slot />
4
- </b-card-group>
5
- </template>
6
-
7
- <script>
8
- import { BCard } from 'bootstrap-vue'
9
- export default {
10
- name: 'CardDeck',
11
- components: { BCard },
12
- }
13
- </script>
14
-
15
- <style lang="scss" scoped>
16
-
17
- .card-deck {
18
- justify-content: center;
19
- display: grid;
20
- gap: 2rem;
21
-
22
- @include media-breakpoint-up(md) {
23
- align-items: flex-start;
24
- grid-auto-flow: column;
25
- }
26
- }
27
-
28
- .card-deck .card {
29
- margin-bottom: 0;
30
- max-width: 20rem;
31
- }
32
-
33
- .card-deck .card-title {
34
- font-size: $h3-font-size;
35
- }
36
-
37
- .card-deck .card-text {
38
- margin-bottom: 1rem;
39
- }
40
-
41
- </style>
@@ -1,94 +0,0 @@
1
- <template>
2
- <div :class="styleRow" :style="`grid-template-columns: ${columns};`">
3
- <slot></slot>
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: 'TableRow',
10
- props: {
11
- header: {
12
- type: Boolean,
13
- default: false
14
- },
15
- columns: {
16
- type: String
17
- },
18
- mobile: {
19
- type: Boolean,
20
- default: false,
21
- }
22
- },
23
- computed: {
24
- styleRow() {
25
- if (this.header) {
26
- if (this.mobile) {
27
- return this.$style.mobile_header_row;
28
- } else {
29
- return this.$style.header_row;
30
- }
31
- } else {
32
- if (this.mobile) {
33
- return this.$style.mobile_row;
34
- } else {
35
- return this.$style.row;
36
- }
37
- }
38
- }
39
- }
40
- }
41
- </script>
42
-
43
- <style lang="scss" module>
44
-
45
- .row {
46
- border: 1px solid $input-border-color;
47
- grid-auto-flow: column;
48
- margin-top: 0.625rem;
49
- display: grid;
50
-
51
- > div {
52
- padding: 0.5rem 0.75rem;
53
-
54
- &:not(:last-of-type) {
55
- border-right: 1px solid $input-border-color;
56
- }
57
-
58
- > label {
59
- font-size: $font-size-lg;
60
- font-weight: 700;
61
- display: none;
62
- }
63
- }
64
- }
65
-
66
- .mobile_row {
67
- composes: row;
68
-
69
- @include media-breakpoint-down(md) {
70
- border-radius: $border-radius-lg;
71
- display: block;
72
-
73
- > div:not(:last-of-type) {
74
- border-right: none;
75
- }
76
- }
77
- }
78
-
79
- .header_row {
80
- composes: row;
81
- background-color: $c-grey-alpine;
82
- font-weight: 700;
83
- margin-top: 0;
84
- }
85
-
86
- .mobile_header_row {
87
- composes: header_row;
88
-
89
- @include media-breakpoint-down(md) {
90
- display: none;
91
- }
92
- }
93
-
94
- </style>