barbican-reset 1.2.7 → 1.3.1

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 (67) hide show
  1. package/components/alert.vue +28 -49
  2. package/components/container.vue +2 -2
  3. package/components/display_stream.vue +70 -0
  4. package/components/event_summary.vue +1 -1
  5. package/components/fluid_iframe.vue +39 -0
  6. package/components/footer_logos.vue +30 -0
  7. package/components/footer_upper.vue +6 -2
  8. package/components/help_row.vue +33 -0
  9. package/components/radio_group.vue +27 -0
  10. package/components/related_card.vue +38 -0
  11. package/components/related_row.vue +32 -0
  12. package/components/related_title.vue +1 -4
  13. package/components/type_text.vue +14 -14
  14. package/components/wrap.vue +12 -3
  15. package/helpers/mixins/_buttons.scss +32 -2
  16. package/helpers/mixins/_content.scss +3 -3
  17. package/helpers/variables/layout/index.scss +5 -3
  18. package/icons/.DS_Store +0 -0
  19. package/icons/account/index.js +6 -6
  20. package/icons/account/{MembershipIcon.vue → membership.vue} +0 -0
  21. package/icons/account/{OrdersIcon.vue → orders.vue} +0 -0
  22. package/icons/account/{PaymentIcon.vue → payment.vue} +0 -0
  23. package/icons/account/{PersonalIcon.vue → personal.vue} +0 -0
  24. package/icons/account/{SupportIcon.vue → support.vue} +0 -0
  25. package/icons/account/{VideoIcon.vue → video.vue} +0 -0
  26. package/icons/{arrow_icon.vue → arrow.vue} +0 -0
  27. package/icons/{barbican/index.vue → barbican.vue} +8 -1
  28. package/icons/index.js +1 -1
  29. package/icons/password/index.js +2 -2
  30. package/icons/password/{RequestIcon.vue → request.vue} +0 -0
  31. package/icons/password/{ResetIcon.vue → reset.vue} +0 -0
  32. package/icons/power/{AlleyneIcon.vue → alleyne.vue} +0 -0
  33. package/icons/power/{BanffIcon.vue → banff.vue} +0 -0
  34. package/icons/power/{CouncilIcon.vue → council.vue} +0 -0
  35. package/icons/power/index.js +3 -3
  36. package/icons/snippets/{BarbicanIcon.vue → barbican.vue} +0 -0
  37. package/icons/snippets/{ContributorIcon.vue → contributor.vue} +0 -0
  38. package/icons/snippets/index.js +4 -4
  39. package/icons/snippets/{OtherIcon.vue → other.vue} +0 -0
  40. package/icons/snippets/{PinIcon.vue → pin.vue} +0 -0
  41. package/icons/stream/{AirplayIcon.vue → airplay.vue} +0 -0
  42. package/icons/stream/{CastIcon.vue → cast.vue} +0 -0
  43. package/icons/stream/{ChatIcon.vue → chat.vue} +0 -0
  44. package/icons/stream/close.vue +7 -0
  45. package/icons/stream/{CogIcon.vue → cog.vue} +0 -0
  46. package/icons/stream/index.js +7 -7
  47. package/icons/stream/{LiveIcon/index.vue → live.vue} +46 -1
  48. package/icons/stream/{VolumeIcon.vue → volume.vue} +0 -0
  49. package/index.js +15 -5
  50. package/package.json +2 -1
  51. package/scss/_atomic.scss +4 -0
  52. package/scss/_btn.scss +8 -0
  53. package/scss/_radio-group.scss +4 -8
  54. package/scss/card/_account.scss +16 -0
  55. package/scss/card/_related.scss +25 -0
  56. package/scss/card/_video-help.scss +31 -0
  57. package/scss/card/index.scss +3 -0
  58. package/scss/index.scss +8 -2
  59. package/scss/table/_preferences.scss +73 -0
  60. package/scss/table/index.scss +1 -0
  61. package/components/account_card.vue +0 -31
  62. package/components/carousel.vue +0 -116
  63. package/icons/barbican/index.scss +0 -5
  64. package/icons/stream/LiveIcon/live_icon.scss +0 -42
  65. package/icons/stream/close_icon.vue +0 -23
  66. package/scss/_radio.scss +0 -4
  67. package/scss/_type-text.scss +0 -9
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -10,4 +10,11 @@
10
10
  </svg>
11
11
  </template>
12
12
 
13
- <style src="./index.scss" lang="scss" module></style>
13
+ <style lang="scss" module>
14
+
15
+ .logo {
16
+ height: auto;
17
+ width: 10rem;
18
+ }
19
+
20
+ </style>
package/icons/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import BarbicanLogo from './barbican'
2
2
  import CityOfLondonLogo from './city_of_london'
3
3
  import CityOfLondonLockup from './city_of_london_lockup'
4
- import ArrowIcon from './arrow_icon'
4
+ import ArrowIcon from './arrow'
5
5
  import BackArrow from './back_arrow'
6
6
  import CartIcon from './cart'
7
7
 
@@ -1,5 +1,5 @@
1
- import RequestIcon from './RequestIcon'
2
- import ResetIcon from './ResetIcon'
1
+ import RequestIcon from './request'
2
+ import ResetIcon from './reset'
3
3
 
4
4
  export {
5
5
  RequestIcon,
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
- import AlleyneIcon from './AlleyneIcon'
2
- import BanffIcon from './BanffIcon'
3
- import CouncilIcon from './CouncilIcon'
1
+ import AlleyneIcon from './alleyne'
2
+ import BanffIcon from './banff'
3
+ import CouncilIcon from './council'
4
4
 
5
5
  export {
6
6
  AlleyneIcon,
@@ -1,7 +1,7 @@
1
- import BarbicanIcon from './BarbicanIcon'
2
- import ContributorIcon from './ContributorIcon'
3
- import OtherIcon from './OtherIcon'
4
- import PinIcon from './PinIcon'
1
+ import BarbicanIcon from './barbican'
2
+ import ContributorIcon from './contributor'
3
+ import OtherIcon from './other'
4
+ import PinIcon from './pin'
5
5
 
6
6
  export {
7
7
  BarbicanIcon,
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <svg width="28" viewBox="0 0 20 20">
3
+ <path data-fill fill="#fefbfa" d="M10,0C4.5,0,0,4.5,0,10s4.5,10,10,10s10-4.5,10-10S15.5,0,10,0z" />
4
+ <path data-outline fill="#353535" d="M10,0C4.5,0,0,4.5,0,10s4.5,10,10,10s10-4.5,10-10S15.5,0,10,0z M10,18c-4.4,0-8-3.6-8-8s3.6-8,8-8s8,3.6,8,8 S14.4,18,10,18z" />
5
+ <path data-cross fill="#353535" d="M12.6,6L10,8.6L7.4,6L6,7.4L8.6,10L6,12.6L7.4,14l2.6-2.6l2.6,2.6l1.4-1.4L11.4,10L14,7.4L12.6,6z" />
6
+ </svg>
7
+ </template>
File without changes
@@ -1,10 +1,10 @@
1
- import AirplayIcon from './AirplayIcon'
2
- import CastIcon from './CastIcon'
3
- import ChatIcon from './ChatIcon'
4
- import CogIcon from './CogIcon'
5
- import VolumeIcon from './VolumeIcon'
6
- import LiveIcon from './LiveIcon'
7
- import CloseIcon from './close_icon'
1
+ import AirplayIcon from './airplay'
2
+ import CastIcon from './cast'
3
+ import ChatIcon from './chat'
4
+ import CogIcon from './cog'
5
+ import VolumeIcon from './volume'
6
+ import LiveIcon from './live'
7
+ import CloseIcon from './close'
8
8
 
9
9
  export {
10
10
  AirplayIcon,
@@ -58,4 +58,49 @@ export default {
58
58
  };
59
59
  </script>
60
60
 
61
- <style src="./live_icon.scss" lang="scss"></style>
61
+ <style lang="scss" scoped>
62
+
63
+ .live-icon {
64
+ &__container {
65
+ background-color: $c-grey-midnight;
66
+ border-radius: $border-radius;
67
+ font-size: $font-size-sm;
68
+ padding: 0.6rem 0.8rem;
69
+ border-color: white;
70
+ position: absolute;
71
+ font-weight: bold;
72
+ border: 1px solid;
73
+ color: white;
74
+ right: 1rem;
75
+ top: 1rem;
76
+
77
+ @include media-breakpoint-up(sm) {
78
+ font-size: $font-size-base;
79
+ padding: 0.8rem 1rem;
80
+ }
81
+
82
+ @include media-breakpoint-up(md) {
83
+ right: 2rem;
84
+ top: 2rem;
85
+ }
86
+ }
87
+
88
+ &__title {
89
+ vertical-align: middle;
90
+ display: inline-block;
91
+ margin-right: 0.5rem;
92
+ }
93
+
94
+ &__svg {
95
+ vertical-align: middle;
96
+ display: inline-block;
97
+ height: 1.5rem;
98
+ fill: white;
99
+
100
+ @include media-breakpoint-up(sm) {
101
+ height: 1.75rem;
102
+ }
103
+ }
104
+ }
105
+
106
+ </style>
File without changes
package/index.js CHANGED
@@ -3,7 +3,6 @@ import Card from './components/card'
3
3
  import Container from './components/container'
4
4
  import Block from './components/block'
5
5
  import EventSummary from './components/event_summary'
6
- import AccountCard from './components/account_card'
7
6
  import AccountTitle from './components/account_title'
8
7
  import Wrap from './components/wrap'
9
8
  import TableRow from './components/table_row'
@@ -11,36 +10,47 @@ import Banner from './components/banner'
11
10
  import Alert from './components/alert'
12
11
  import LoadingAnimation from './components/loading_animation'
13
12
  import RelatedTitle from './components/related_title'
13
+ import RelatedCard from './components/related_card'
14
+ import RelatedRow from './components/related_row'
14
15
  import TypeText from './components/type_text'
15
16
  import Placeholder from './components/placeholder'
16
- import Carousel from './components/carousel'
17
17
  import CardDeck from './components/card_deck'
18
18
  import FormSection from './components/form_section'
19
19
  import FormUpdate from './components/form_update'
20
20
  import FormGroup from './components/form_group'
21
+ import RadioGroup from './components/radio_group'
21
22
  import FooterUpper from './components/footer_upper'
23
+ import FooterLogos from './components/footer_logos'
22
24
  import FooterLower from './components/footer_lower'
25
+ import FluidIframe from './components/fluid_iframe'
26
+ import HelpRow from './components/help_row'
27
+ import DisplayStream from './components/display_stream'
23
28
 
24
29
  export {
25
30
  LoadingAnimation,
26
31
  Alert,
27
32
  RelatedTitle,
33
+ RelatedCard,
34
+ RelatedRow,
28
35
  TypeText,
29
36
  Container,
30
37
  Wrap,
31
38
  Card,
32
- Carousel,
33
39
  Banner,
34
- AccountCard,
35
40
  AccountTitle,
36
41
  Placeholder,
37
42
  FormSection,
38
43
  FormUpdate,
39
44
  FormGroup,
45
+ RadioGroup,
40
46
  TableRow,
41
47
  Block,
42
48
  EventSummary,
43
49
  CardDeck,
44
50
  FooterUpper,
45
- FooterLower
51
+ FooterLogos,
52
+ FooterLower,
53
+ FluidIframe,
54
+ HelpRow,
55
+ DisplayStream,
46
56
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.2.7",
3
+ "version": "1.3.1",
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": {
@@ -39,6 +39,7 @@
39
39
  "node-sass-tilde-importer": "^1.0.2",
40
40
  "placeholder-loading": "^0.4.0",
41
41
  "sass": "^1.41.0",
42
+ "vue-moment": "^4.1.0",
42
43
  "vue-slick-carousel": "^1.0.6"
43
44
  }
44
45
  }
package/scss/_atomic.scss CHANGED
@@ -20,6 +20,10 @@ $aligns: "left", "center", "right";
20
20
  margin: 0;
21
21
  }
22
22
 
23
+ .margin-top-05 {
24
+ margin-top: 0.5rem;
25
+ }
26
+
23
27
  .width-100 {
24
28
  width: 100%;
25
29
  }
package/scss/_btn.scss CHANGED
@@ -40,6 +40,10 @@
40
40
  @include btn-link;
41
41
  }
42
42
 
43
+ &.btn-video-help {
44
+ @include btn-video-help;
45
+ }
46
+
43
47
  &.btn-exit {
44
48
  @include btn-exit;
45
49
  }
@@ -56,6 +60,10 @@
56
60
  @include btn-video-login;
57
61
  }
58
62
 
63
+ &.btn-invisible {
64
+ @include btn-invisible;
65
+ }
66
+
59
67
  // modifyers
60
68
  &.expand {
61
69
  @include btn-expand;
@@ -29,13 +29,8 @@ $margin-radio: 0.25rem;
29
29
  border: 1px solid $c-status-neutral;
30
30
  color: $c-status-neutral;
31
31
  }
32
-
33
- &:hover, &[data-focus-visible-added] {
34
- &:focus {
35
- box-shadow: none;
36
- outline: none;
37
- }
38
-
32
+
33
+ @include focus {
39
34
  ~ label {
40
35
  @include single-box($c-grey-steel, 0.0625rem);
41
36
  border: 1px solid $c-grey-steel;
@@ -59,6 +54,7 @@ $margin-radio: 0.25rem;
59
54
  border-radius: $border-radius-lg;
60
55
  background-color: $white;
61
56
  color: $c-grey-night;
57
+ font-weight: 400;
62
58
  cursor: pointer;
63
59
  }
64
60
  }
@@ -67,7 +63,7 @@ $margin-radio: 0.25rem;
67
63
  @if $status != 'neutral' {
68
64
  .radio-group.#{$status} {
69
65
  input[type=radio] {
70
- &:hover, &[data-focus-visible-added] {
66
+ @include focus {
71
67
  &:checked ~ label {
72
68
  @include single-box(map-get($color, base), 0.0625rem);
73
69
  border: 1px solid map-get($color, base);
@@ -0,0 +1,16 @@
1
+
2
+ .card[account] {
3
+ margin-top: $gap-account;
4
+ margin-bottom: 0;
5
+
6
+ .card-body {
7
+ padding: $gap-account;
8
+ }
9
+
10
+ iframe {
11
+ min-height: 590px;
12
+ @include media-breakpoint-up(sm) {
13
+ min-height: 440px;
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,25 @@
1
+
2
+ .card[related] {
3
+ border: 1px solid $c-grey-pearl;
4
+ overflow: hidden;
5
+
6
+ img {
7
+ max-width: 100%;
8
+ }
9
+
10
+ .card-title {
11
+ font-size: $font-size-lg;
12
+ }
13
+ }
14
+
15
+ .card[related][hero=true] {
16
+
17
+ .card-title {
18
+ font-size: $h2-font-size;
19
+ }
20
+
21
+ .card-text {
22
+ font-size: $font-size-lg;
23
+ }
24
+
25
+ }
@@ -0,0 +1,31 @@
1
+
2
+ $border: 1px solid $c-grey-pearl;
3
+
4
+ .card[video-help] {
5
+ margin-bottom: 0;
6
+ overflow: hidden;
7
+ border: $border;
8
+
9
+ &:not(:first-of-type) {
10
+ border-top-right-radius: 0;
11
+ border-top-left-radius: 0;
12
+ }
13
+
14
+ &:not(:last-of-type) {
15
+ border-bottom-right-radius: 0;
16
+ border-bottom-left-radius: 0;
17
+ border-bottom: 0;
18
+ }
19
+
20
+ .card-header {
21
+ border-radius: 0;
22
+ border-bottom: 0;
23
+ overflow: hidden;
24
+ padding: 0;
25
+ }
26
+
27
+ .card-body {
28
+ border-top: $border;
29
+ padding: 1.25rem;
30
+ }
31
+ }
@@ -2,6 +2,9 @@
2
2
  @import "confirm.scss";
3
3
  @import "login.scss";
4
4
  @import "password.scss";
5
+ @import "account.scss";
6
+ @import "video-help.scss";
7
+ @import "related.scss";
5
8
 
6
9
  .card {
7
10
  border: 1px solid $c-grey-pearl;
package/scss/index.scss CHANGED
@@ -7,7 +7,6 @@
7
7
  @import "klaro.scss";
8
8
  @import "fonts.scss";
9
9
  @import "loading-animation.scss";
10
- @import "type-text.scss";
11
10
  @import "close-icon.scss";
12
11
  @import "table/index.scss";
13
12
 
@@ -20,7 +19,6 @@
20
19
  @import "list.scss";
21
20
  @import "input.scss";
22
21
  @import "radio-group.scss";
23
- @import "radio.scss";
24
22
 
25
23
  // atomic helper styles
26
24
  @import "atomic.scss";
@@ -41,4 +39,12 @@ a, a:hover {
41
39
 
42
40
  p:last-of-type:not([class^=margin]) {
43
41
  margin-bottom: 0;
42
+ }
43
+
44
+ footer {
45
+ color: $white;
46
+
47
+ &:not(.splash) {
48
+ background-color: $c-grey-midnight;
49
+ }
44
50
  }
@@ -0,0 +1,73 @@
1
+ table.preferences {
2
+
3
+ $mq: md;
4
+
5
+ thead {
6
+ background-color: $c-grey-alpine;
7
+ margin-bottom: 1rem;
8
+ font-weight: 700;
9
+ display: block;
10
+
11
+ @include media-breakpoint-down($mq) {
12
+ display: none;
13
+ }
14
+ }
15
+
16
+ tr {
17
+ border: 1px solid $c-grey-pearl;
18
+ display: grid;
19
+
20
+ &:not(:last-of-type) {
21
+ margin-bottom: 1rem;
22
+ }
23
+
24
+ @include media-breakpoint-up($mq) {
25
+ grid-template-columns: auto repeat(2, 5rem);
26
+ }
27
+
28
+ @include media-breakpoint-down($mq) {
29
+ border-radius: $border-radius-lg;
30
+ }
31
+ }
32
+
33
+ th, td {
34
+ padding: 0.75rem;
35
+
36
+ @include media-breakpoint-up($mq) {
37
+ text-align: center;
38
+
39
+ &:not(:last-of-type) {
40
+ border-right: 1px solid $c-grey-pearl;
41
+ }
42
+
43
+ &:first-of-type {
44
+ text-align: left;
45
+ }
46
+ }
47
+
48
+ @include media-breakpoint-down($mq) {
49
+ &:not(:first-of-type) {
50
+ padding-top: 0;
51
+ }
52
+ }
53
+ }
54
+
55
+ label {
56
+ font-size: $font-size-lg;
57
+
58
+ @include media-breakpoint-up($mq) {
59
+ display: none;
60
+ }
61
+ }
62
+
63
+ .custom-radio {
64
+ @include media-breakpoint-up($mq) {
65
+ margin: 0;
66
+
67
+ input[type=radio] {
68
+ position: relative;
69
+ inset: auto;
70
+ }
71
+ }
72
+ }
73
+ }
@@ -4,6 +4,7 @@
4
4
  @import "section.scss";
5
5
  @import "orders.scss";
6
6
  @import "details.scss";
7
+ @import "preferences.scss";
7
8
 
8
9
  table {
9
10
  border-spacing: 0;
@@ -1,31 +0,0 @@
1
- <template>
2
- <div :class="$style.container">
3
- <slot></slot>
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: 'AccountCard'
10
- }
11
- </script>
12
-
13
- <style lang="scss" module>
14
-
15
- .container {
16
- border-radius: $border-radius-lg;
17
- border: 1px solid $c-grey-pearl;
18
- background-color: $white;
19
- padding: $gap-account;
20
- overflow: hidden;
21
-
22
- &:first-of-type {
23
- margin-top: $gap-account;
24
- }
25
-
26
- &:not(:last-of-type) {
27
- margin-bottom: $gap-account;
28
- }
29
- }
30
-
31
- </style>
@@ -1,116 +0,0 @@
1
- <template>
2
- <div class="slick-carousel__container">
3
- <VueSlickCarousel v-bind="settings">
4
- <slot />
5
- </VueSlickCarousel>
6
- </div>
7
- </template>
8
-
9
- <script>
10
- import VueSlickCarousel from 'vue-slick-carousel'
11
- import 'vue-slick-carousel/dist/vue-slick-carousel.css'
12
- import 'vue-slick-carousel/dist/vue-slick-carousel-theme.css'
13
-
14
- export default {
15
- components: { VueSlickCarousel },
16
- props: {
17
- infinite: {
18
- type: Boolean,
19
- default: true,
20
- },
21
- },
22
- data() {
23
- return {
24
- settings: {
25
- slidesToScroll: 1,
26
- slidesToShow: 4,
27
- infinite: this.infinite,
28
- arrows: true,
29
- speed: 500,
30
- responsive: [
31
- {
32
- breakpoint: 1024,
33
- settings: {
34
- slidesToShow: 3,
35
- },
36
- },
37
- {
38
- breakpoint: 768,
39
- settings: {
40
- slidesToShow: 2,
41
- },
42
- },
43
- ],
44
- },
45
- };
46
- },
47
- };
48
- </script>
49
-
50
- <style lang="scss" scoped>
51
-
52
- .slick {
53
- &-carousel {
54
- &__container:hover {
55
- .slick-arrow {
56
- opacity: 1;
57
- }
58
- }
59
- }
60
- &-arrow {
61
- margin-top: -1.25rem;
62
- border-radius: 0;
63
- height: 2.5rem;
64
- width: 2.5rem;
65
- z-index: 2;
66
- top: 28%;
67
-
68
- @media only screen and (min-width: 400px) {
69
- top: 32%;
70
- }
71
-
72
- @include media-breakpoint-up(sm) {
73
- top: 38%;
74
- }
75
-
76
- &:before {
77
- font-size: $h1-font-size;
78
- color: $c-page-footer-bg;
79
- opacity: 1;
80
- }
81
- }
82
-
83
- &-slide {
84
- .video-item {
85
- &__container {
86
- padding-right: 0.25rem;
87
- }
88
- }
89
- .video-status__wrap {
90
- opacity: 0.8;
91
- }
92
- &:hover {
93
- .video-status__wrap {
94
- @include media-breakpoint-up(md) {
95
- opacity: 1;
96
- }
97
- }
98
- }
99
- }
100
-
101
- &-prev {
102
- left: -1.25rem;
103
- @include media-breakpoint-up(lg) {
104
- left: -3.75rem;
105
- }
106
- }
107
- &-next {
108
- right: -1.25rem;
109
- @include media-breakpoint-up(lg) {
110
- right: -3.75rem;
111
- }
112
- }
113
- }
114
-
115
-
116
- </style>
@@ -1,5 +0,0 @@
1
-
2
- .logo {
3
- height: auto;
4
- width: 10rem;
5
- }