barbican-reset 1.2.2 → 1.2.6

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.
@@ -15,7 +15,7 @@
15
15
  <script>
16
16
  import { CloseIcon } from 'barbican-reset/icons/stream'
17
17
  export default {
18
- name: "Notification",
18
+ name: "Alert",
19
19
  components: {
20
20
  CloseIcon,
21
21
  },
@@ -11,14 +11,11 @@
11
11
 
12
12
  <script type="text/javascript">
13
13
  export default {
14
- name: 'FormRow',
14
+ name: 'FormGroup',
15
15
  props: {
16
16
  label: {
17
17
  type: String
18
18
  },
19
- id: {
20
- type: String
21
- },
22
19
  required: {
23
20
  type: Boolean
24
21
  },
@@ -36,6 +33,9 @@
36
33
  if (!this.label) { output.push(style.no_label); }
37
34
  if (this.submit) { output.push(style.submit); }
38
35
  return output;
36
+ },
37
+ id() {
38
+ return this.label.toLowerCase().split(" ").join("_");
39
39
  }
40
40
  }
41
41
  }
@@ -65,6 +65,7 @@
65
65
  }
66
66
 
67
67
  input {
68
+ width: 100%;
68
69
  margin: 0;
69
70
  }
70
71
  }
@@ -88,4 +89,4 @@
88
89
  }
89
90
  }
90
91
 
91
- </style>
92
+ </style>
@@ -0,0 +1,23 @@
1
+ <template>
2
+ <div :class="$style.container">
3
+ <slot />
4
+ </div>
5
+ </template>
6
+
7
+ <script type="text/javascript">
8
+ export default {
9
+ name: 'FormSection',
10
+ }
11
+ </script>
12
+
13
+ <style lang="scss" module>
14
+
15
+ .container {
16
+ padding: 0.875rem 0.75rem 0.625rem 0.75rem;
17
+ border-left: 0.25rem solid;
18
+ background: $c-grey-alpine;
19
+ margin-bottom: 1rem;
20
+ font-weight: 700;
21
+ }
22
+
23
+ </style>
@@ -0,0 +1,32 @@
1
+ <template>
2
+ <div :class="$style.container">
3
+ <div :class="$style.input"><slot /></div>
4
+ <b-button class="btn-update" @click.prevent="$emit('update')">update</b-button>
5
+ </div>
6
+ </template>
7
+
8
+ <script type="text/javascript">
9
+ export default {
10
+ name: 'FormUpdate',
11
+ }
12
+ </script>
13
+
14
+ <style lang="scss" module>
15
+
16
+ .container {
17
+ grid-template-columns: auto 6rem;
18
+ column-gap: 0.5rem;
19
+ display: grid;
20
+
21
+ @include media-breakpoint-up(sm) {
22
+ column-gap: 1rem;
23
+ }
24
+ }
25
+
26
+ .input {
27
+ @include all-text-inputs;
28
+ user-select: none;
29
+ overflow: hidden;
30
+ }
31
+
32
+ </style>
@@ -1,5 +1,5 @@
1
1
 
2
- @mixin button_setup {
2
+ @mixin button-setup {
3
3
  -webkit-font-smoothing: antialiased;
4
4
  -moz-osx-font-smoothing: grayscale;
5
5
  border-radius: $border-radius-lg;
@@ -11,7 +11,7 @@
11
11
  padding: 1em;
12
12
  }
13
13
 
14
- @mixin button_display($display:'ib',$gap:1rem) {
14
+ @mixin button-display($display:'ib',$gap:1rem) {
15
15
  @if $display == 'ib' {
16
16
  vertical-align: middle;
17
17
  display: inline-block;
@@ -28,7 +28,7 @@
28
28
  }
29
29
  }
30
30
 
31
- @mixin button_solid(
31
+ @mixin button-solid(
32
32
  $background: $c-brand-orange,
33
33
  $color: $white,
34
34
  $border: 1px,
@@ -40,7 +40,7 @@
40
40
  padding: $padding;
41
41
  color: $color;
42
42
 
43
- @if $display { @include button_display($display, $padding * 0.625); }
43
+ @if $display { @include button-display($display, $padding * 0.625); }
44
44
  @if $line { line-height: $line; }
45
45
 
46
46
  @include focus {
@@ -51,7 +51,7 @@
51
51
  }
52
52
  }
53
53
 
54
- @mixin button_outline(
54
+ @mixin button-outline(
55
55
  $color: $c-brand-orange,
56
56
  $background: $white,
57
57
  $border: 1px,
@@ -63,7 +63,7 @@
63
63
  padding: $padding;
64
64
  color: $color;
65
65
 
66
- @if $display { @include button_display($display, $padding * 0.625); }
66
+ @if $display { @include button-display($display, $padding * 0.625); }
67
67
  @if $line { line-height: $line; }
68
68
 
69
69
  @include focus {
@@ -73,7 +73,7 @@
73
73
  }
74
74
  }
75
75
 
76
- @mixin button_link(
76
+ @mixin button-link(
77
77
  $color: inherit,
78
78
  $background: transparent,
79
79
  $padding: 0,
@@ -93,7 +93,7 @@
93
93
  }
94
94
 
95
95
  @mixin btn-outline-header {
96
- @include button_outline(
96
+ @include button-outline(
97
97
  $color: $white,
98
98
  $background: $c-brand-orange,
99
99
  $border: 0.125rem,
@@ -101,46 +101,47 @@
101
101
  }
102
102
 
103
103
  @mixin btn-primary {
104
- @include button_solid;
104
+ @include button-solid;
105
+ min-width: 8rem;
105
106
  }
106
107
 
107
108
  @mixin btn-outline-primary {
108
- @include button_outline;
109
+ @include button-outline;
109
110
  }
110
111
 
111
112
  @mixin btn-secondary {
112
- @include button_solid($c-grey-night);
113
+ @include button-solid($c-grey-night);
113
114
  }
114
115
 
115
116
  @mixin btn-outline-secondary {
116
- @include button_outline($c-grey-night);
117
+ @include button-outline($c-grey-night);
117
118
  }
118
119
 
119
120
  @mixin btn-cinema {
120
- @include button_solid($c-brand-cinema);
121
+ @include button-solid($c-brand-cinema);
121
122
  }
122
123
 
123
124
  @mixin btn-power {
124
- @include button_solid($c-power-blue);
125
+ @include button-solid($c-power-blue);
125
126
  }
126
127
 
127
128
  @mixin btn-info {
128
- @include button_solid($c-status-neutral);
129
+ @include button-solid($c-status-neutral);
129
130
  }
130
131
 
131
132
  @mixin btn-outline-cinema {
132
- @include button_outline($c-brand-cinema);
133
+ @include button-outline($c-brand-cinema);
133
134
  }
134
135
 
135
136
  @mixin btn-remove {
136
- @include button_solid(
137
+ @include button-solid(
137
138
  $background: $c-grey-night,
138
139
  $padding: 0.625rem,
139
140
  $line: 1.375);
140
141
  }
141
142
 
142
143
  @mixin btn-link {
143
- @include button_link {
144
+ @include button-link {
144
145
  @include single-box($c-grey-night);
145
146
  background-color: $c-grey-night;
146
147
  color: $white;
@@ -148,7 +149,7 @@
148
149
  }
149
150
 
150
151
  @mixin btn-exit {
151
- @include button_link {
152
+ @include button-link {
152
153
  @include single-box($c-grey-night);
153
154
  background-color: $white;
154
155
  border-radius: 50%;
@@ -174,14 +175,14 @@
174
175
  }
175
176
 
176
177
  @mixin btn-membership-card {
177
- @include button_outline(
178
+ @include button-outline(
178
179
  $color: $white,
179
180
  $background: transparent
180
181
  );
181
182
  }
182
183
 
183
184
  @mixin btn-video-login {
184
- @include button_solid(
185
+ @include button-solid(
185
186
  $background: $white,
186
187
  $color: $c-splash-videos
187
188
  );
@@ -0,0 +1,15 @@
1
+
2
+ @mixin form-card {
3
+ .card-header {
4
+ padding: 1.5rem 1.75rem 1.25rem;
5
+ }
6
+ .card-body {
7
+ padding: 1.75rem 1.75rem 1.5rem;
8
+ }
9
+ }
10
+
11
+ @mixin clone($top:5.875) {
12
+ margin-top: -#{$top}rem;
13
+ margin-bottom: 0;
14
+ opacity: 0;
15
+ }
@@ -32,18 +32,6 @@
32
32
  }
33
33
  }
34
34
 
35
- // @mixin all-text-inputs {
36
- // border: solid $border-width $c-border-strong;
37
- // $background: lighten($c-grey-alpine, 1%);
38
- // border-radius: $border-radius-sm;
39
- // background-color: $background;
40
- // // padding: 0.8rem 0.8rem 0.6rem;
41
-
42
- // &:focus {
43
- // background-color: $background;
44
- // }
45
- // }
46
-
47
35
  @mixin card-container {
48
36
  border-radius: $border-radius-lg;
49
37
  background-color: $white;
@@ -8,4 +8,11 @@
8
8
  -webkit-font-smoothing: subpixel-antialiased;
9
9
  -moz-osx-font-smoothing: auto;
10
10
  }
11
+ }
12
+
13
+ @mixin all-text-inputs {
14
+ border: solid $border-width $c-border-strong;
15
+ padding: 0.875rem 0.875rem 0.75rem;
16
+ background-color: $c-grey-alpine;
17
+ border-radius: $border-radius-lg;
11
18
  }
@@ -3,6 +3,7 @@
3
3
  @import "account/orders.scss";
4
4
  @import "basket.scss";
5
5
  @import "buttons.scss";
6
+ @import "card.scss";
6
7
  @import "content.scss";
7
8
  @import "core.scss";
8
9
  @import "festival.scss";
@@ -0,0 +1,16 @@
1
+ <template>
2
+ <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 80" version="1.1" width="100" height="80">
3
+ <path data-arrow d="M72.6,45.6L87,60L72.6,74.4V63.6H58.2v-7.2h14.4V45.6z" />
4
+ <path data-outline d="M79.6,38.4 V13.2C79.6,9,76,9.5,76,9.5L18.6,9.7c0,0-3.5-0.3-3.5,3.5v42.9c0,0-0.7,3.9,3.3,3.9H51" fill="none" stroke-width="7" stroke-linejoin="round" stroke-miterlimit="10" />
5
+ <path data-fold d="M15.2,14.5l32.3,20.2l32.2-20.2" fill="none" stroke-width="6" stroke-miterlimit="10" />
6
+ </svg>
7
+ </template>
8
+
9
+ <style lang="scss" scoped>
10
+
11
+ .svg {
12
+ stroke: $c-grey-night;
13
+ fill: $c-grey-night;
14
+ }
15
+
16
+ </style>
@@ -23,4 +23,11 @@
23
23
  </svg>
24
24
  </template>
25
25
 
26
- <style src="./reset_icon.scss" lang="scss"></style>
26
+ <style lang="scss" scoped>
27
+
28
+ .reset-success__svg {
29
+ stroke: $c-grey-night;
30
+ margin-bottom: 0.625rem;
31
+ }
32
+
33
+ </style>
package/index.js CHANGED
@@ -6,21 +6,22 @@ import EventSummary from './components/event_summary'
6
6
  import AccountCard from './components/account_card'
7
7
  import AccountTitle from './components/account_title'
8
8
  import Wrap from './components/wrap'
9
- import LoginForm from './components/login_form'
10
- import FormRow from './components/form_row'
11
9
  import TableRow from './components/table_row'
12
10
  import Banner from './components/banner'
13
- import Notification from './components/notification'
11
+ import Alert from './components/alert'
14
12
  import LoadingAnimation from './components/loading_animation'
15
13
  import RelatedTitle from './components/related_title'
16
14
  import TypeText from './components/type_text'
17
15
  import Placeholder from './components/placeholder'
18
16
  import Carousel from './components/carousel'
19
17
  import CardDeck from './components/card_deck'
18
+ import FormSection from './components/form_section'
19
+ import FormUpdate from './components/form_update'
20
+ import FormGroup from './components/form_group'
20
21
 
21
22
  export {
22
23
  LoadingAnimation,
23
- Notification,
24
+ Alert,
24
25
  RelatedTitle,
25
26
  TypeText,
26
27
  Container,
@@ -31,8 +32,9 @@ export {
31
32
  AccountCard,
32
33
  AccountTitle,
33
34
  Placeholder,
34
- LoginForm,
35
- FormRow,
35
+ FormSection,
36
+ FormUpdate,
37
+ FormGroup,
36
38
  TableRow,
37
39
  Block,
38
40
  EventSummary,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.2.2",
3
+ "version": "1.2.6",
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
@@ -16,6 +16,10 @@ $aligns: "left", "center", "right";
16
16
  }
17
17
  }
18
18
 
19
+ .margin-0 {
20
+ margin: 0;
21
+ }
22
+
19
23
  .width-100 {
20
24
  width: 100%;
21
25
  }
@@ -34,4 +38,10 @@ $aligns: "left", "center", "right";
34
38
 
35
39
  .c-brand-orange {
36
40
  color: $c-brand-orange;
41
+ }
42
+
43
+ .list-style-none {
44
+ list-style-type: none;
45
+ padding: 0;
46
+ margin: 0;
37
47
  }
package/scss/_btn.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  .btn {
2
- @include button_setup;
2
+ @include button-setup;
3
3
 
4
4
  &.btn-primary {
5
5
  // solid orange
@@ -75,4 +75,8 @@
75
75
  }
76
76
  }
77
77
  }
78
+ }
79
+
80
+ .custom-checkbox label {
81
+ font-weight: 400;
78
82
  }
package/scss/_input.scss CHANGED
@@ -34,8 +34,5 @@ input[type=submit] {
34
34
  }
35
35
 
36
36
  #{$all-text-inputs} {
37
- border: solid $border-width $c-border-strong;
38
- padding: 0.875rem 0.875rem 0.75rem;
39
- background-color: $c-grey-alpine;
40
- border-radius: $border-radius-lg;
37
+ @include all-text-inputs;
41
38
  }
package/scss/_klaro.scss CHANGED
@@ -4,7 +4,9 @@
4
4
  font-size: $font-size-sm;
5
5
  padding: 0.5em 0.75em;
6
6
  margin-right: 1em;
7
+ font-weight: 700;
7
8
  cursor: pointer;
9
+ color: $white;
8
10
  border: 0;
9
11
 
10
12
  &:focus {
@@ -0,0 +1,4 @@
1
+
2
+ .custom-radio label {
3
+ font-weight: 400;
4
+ }
@@ -0,0 +1,21 @@
1
+
2
+ .card[confirm] {
3
+ @include form-card;
4
+ max-width: 16.25rem;
5
+ margin-right: auto;
6
+ text-align: center;
7
+ margin-left: auto;
8
+
9
+ .card-title {
10
+ font-size: $h2-font-size;
11
+ margin-bottom: 1.5rem;
12
+ }
13
+ }
14
+
15
+ .card[confirm].request .clone {
16
+ @include clone;
17
+ }
18
+
19
+ .card[confirm].reset .clone {
20
+ @include clone(3.3125);
21
+ }
@@ -0,0 +1,15 @@
1
+
2
+ .card[login] {
3
+ @include form-card;
4
+
5
+ .card-header {
6
+ justify-content: space-between;
7
+ align-items: center;
8
+ display: flex;
9
+ }
10
+
11
+ .card-title {
12
+ font-size: $h1-font-size;
13
+ margin: 0;
14
+ }
15
+ }
@@ -0,0 +1,8 @@
1
+
2
+ .card[password] {
3
+ @include form-card;
4
+
5
+ .card-title {
6
+ font-size: $h2-font-size;
7
+ }
8
+ }
@@ -1,3 +1,8 @@
1
+
2
+ @import "confirm.scss";
3
+ @import "login.scss";
4
+ @import "password.scss";
5
+
1
6
  .card {
2
7
  border: 1px solid $c-grey-pearl;
3
8
  border-radius: $border-radius-lg;
@@ -14,7 +19,14 @@
14
19
  }
15
20
 
16
21
  .card-subtitle {
17
- @include card-subtitle;
22
+ color: $c-grey-steel !important;
23
+ font-size: $font-size-sm;
24
+ font-weight: 400;
25
+ margin: 0;
26
+ }
27
+
28
+ .card-body {
29
+ padding: 1.5rem;
18
30
  }
19
31
 
20
32
  .card-img {
package/scss/index.scss CHANGED
@@ -13,13 +13,14 @@
13
13
 
14
14
  // bootstrap component styles
15
15
  @import "btn.scss";
16
- @import "card.scss";
16
+ @import "card/index.scss";
17
17
  @import "checkbox.scss";
18
18
  @import "checkbox-group.scss";
19
19
  @import "form.scss";
20
20
  @import "list.scss";
21
21
  @import "input.scss";
22
22
  @import "radio-group.scss";
23
+ @import "radio.scss";
23
24
 
24
25
  // atomic helper styles
25
26
  @import "atomic.scss";
@@ -0,0 +1,31 @@
1
+
2
+ table.basket tr {
3
+ @include table-row;
4
+ justify-content: space-between;
5
+ display: flex;
6
+ gap: 0.75rem;
7
+
8
+ &.promo {
9
+ padding-bottom: 1rem;
10
+ }
11
+
12
+ &.donation {
13
+ @include basket-row-grid;
14
+ padding-bottom: 1rem;
15
+ padding-top: 1rem;
16
+ }
17
+
18
+ &.total {
19
+ font-size: $h4-font-size;
20
+ border-bottom: none;
21
+ font-weight: 700;
22
+ }
23
+
24
+ &.continue {
25
+ border-bottom: none;
26
+
27
+ td {
28
+ width: 100%;
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,48 @@
1
+ table.orders {
2
+
3
+ thead {
4
+ background-color: $c-grey-alpine;
5
+ margin-bottom: 1rem;
6
+ font-weight: 700;
7
+ display: block;
8
+
9
+ @include media-breakpoint-down(md) {
10
+ display: none;
11
+ }
12
+ }
13
+
14
+ tr {
15
+ border: 1px solid $c-grey-pearl;
16
+ display: grid;
17
+
18
+ @include media-breakpoint-up(md) {
19
+ grid-template-columns: 9rem 8rem auto 7rem;
20
+ }
21
+
22
+ @include media-breakpoint-down(md) {
23
+ border-radius: $border-radius-lg;
24
+ }
25
+ }
26
+
27
+ th, td {
28
+ padding: 0.75rem;
29
+
30
+ @include media-breakpoint-up(md) {
31
+ &:not(:last-of-type) {
32
+ border-right: 1px solid $c-grey-pearl;
33
+ }
34
+
35
+ &:last-of-type {
36
+ text-align: right;
37
+ }
38
+ }
39
+ }
40
+
41
+ label {
42
+ font-size: $font-size-lg;
43
+
44
+ @include media-breakpoint-up(md) {
45
+ display: none;
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,12 @@
1
+
2
+ table.section {
3
+ padding-bottom: 0.75rem;
4
+ padding-top: 0.75rem;
5
+ display: block;
6
+
7
+ tr:not(:first-of-type) {
8
+ @include summary-lg {
9
+ margin-left: 0.75rem;
10
+ }
11
+ }
12
+ }
@@ -1,5 +1,8 @@
1
1
 
2
2
  @import "tickets.scss";
3
+ @import "basket.scss";
4
+ @import "section.scss";
5
+ @import "orders.scss";
3
6
 
4
7
  table {
5
8
  border-spacing: 0;
@@ -8,47 +11,4 @@ table {
8
11
 
9
12
  td {
10
13
  padding: 0;
11
- }
12
-
13
- table.basket tr {
14
- @include table-row;
15
- justify-content: space-between;
16
- display: flex;
17
- gap: 0.75rem;
18
-
19
- &.promo {
20
- padding-bottom: 1rem;
21
- }
22
-
23
- &.donation {
24
- @include basket-row-grid;
25
- padding-bottom: 1rem;
26
- padding-top: 1rem;
27
- }
28
-
29
- &.total {
30
- font-size: $h4-font-size;
31
- border-bottom: none;
32
- font-weight: 700;
33
- }
34
-
35
- &.continue {
36
- border-bottom: none;
37
-
38
- td {
39
- width: 100%;
40
- }
41
- }
42
- }
43
-
44
- table.section {
45
- padding-bottom: 0.75rem;
46
- padding-top: 0.75rem;
47
- display: block;
48
-
49
- tr:not(:first-of-type) {
50
- @include summary-lg {
51
- margin-left: 0.75rem;
52
- }
53
- }
54
14
  }
@@ -1,54 +0,0 @@
1
- <template>
2
- <b-card no-body>
3
- <div v-if="headerSlot" class="card-header">
4
- <slot name="header" />
5
- </div>
6
- <div v-if="defaultSlot" class="card-body">
7
- <slot />
8
- </div>
9
- <div v-if="footerSlot" class="card-footer">
10
- <slot name="footer" />
11
- </div>
12
- </b-card>
13
- </template>
14
-
15
- <script>
16
- import { BCard } from 'bootstrap-vue'
17
- export default {
18
- name: 'LoginForm',
19
- components: { BCard },
20
- computed: {
21
- headerSlot() {
22
- return this.$slots.header ? true : false;
23
- },
24
- defaultSlot() {
25
- return this.$slots.default ? true : false;
26
- },
27
- footerSlot() {
28
- return this.$slots.footer ? true : false;
29
- },
30
- }
31
- }
32
- </script>
33
-
34
- <style lang="scss" scoped>
35
-
36
- .card {
37
-
38
- .card-header {
39
- padding: 1.5rem 1.75rem 1.25rem;
40
- justify-content: space-between;
41
- align-items: center;
42
- display: flex;
43
-
44
- h1 {
45
- margin: 0;
46
- }
47
- }
48
-
49
- .card-body {
50
- padding: 1.75rem 1.75rem 1.5rem;
51
- }
52
- }
53
-
54
- </style>
@@ -1,32 +0,0 @@
1
- <template>
2
- <svg
3
- class="request-success__svg"
4
- xmlns="http://www.w3.org/2000/svg"
5
- viewBox="0 0 100 80"
6
- version="1.1"
7
- width="100"
8
- height="80"
9
- >
10
- <path
11
- class="request-success__arrow"
12
- d="M72.6,45.6L87,60L72.6,74.4V63.6H58.2v-7.2h14.4V45.6z"
13
- />
14
- <path
15
- class="request-success__outline"
16
- d="M79.6,38.4 V13.2C79.6,9,76,9.5,76,9.5L18.6,9.7c0,0-3.5-0.3-3.5,3.5v42.9c0,0-0.7,3.9,3.3,3.9H51"
17
- fill="none"
18
- stroke-width="7"
19
- stroke-linejoin="round"
20
- stroke-miterlimit="10"
21
- />
22
- <path
23
- class="request-success__fold"
24
- d="M15.2,14.5l32.3,20.2l32.2-20.2"
25
- fill="none"
26
- stroke-width="6"
27
- stroke-miterlimit="10"
28
- />
29
- </svg>
30
- </template>
31
-
32
- <style src="./request_icon.scss" lang="scss"></style>
@@ -1,5 +0,0 @@
1
- .request-success__svg {
2
- stroke: $c-grey-night;
3
- fill: $c-grey-night;
4
- margin-bottom: 0.625rem;
5
- }
@@ -1,4 +0,0 @@
1
- .reset-success__svg {
2
- stroke: $c-grey-night;
3
- margin-bottom: 0.625rem;
4
- }