barbican-reset 2.38.0 → 2.40.0
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.
- package/components/account_title.vue +1 -1
- package/components/br_alert.vue +5 -4
- package/components/br_button.vue +24 -22
- package/components/br_card.vue +102 -0
- package/components/br_card_sub_title.vue +12 -0
- package/components/br_card_text.vue +3 -0
- package/components/br_card_title.vue +3 -0
- package/components/br_confirm_done.vue +13 -9
- package/components/br_confirm_email.vue +18 -10
- package/components/br_container.vue +3 -3
- package/components/br_form_row.vue +37 -35
- package/components/br_loader.vue +8 -4
- package/components/event_summary.vue +1 -1
- package/components/fluid_iframe.vue +1 -1
- package/components/video_content.vue +1 -1
- package/index.js +8 -2
- package/package.json +1 -6
- package/scss/_atomic.scss +2 -2
- package/scss/_br-loader.scss +3 -3
- package/scss/_card-deck.scss +1 -1
- package/scss/_close-icon.scss +2 -2
- package/scss/_footer.scss +1 -1
- package/scss/_input.scss +1 -1
- package/scss/_klaro.scss +12 -12
- package/scss/_main.scss +1 -1
- package/scss/card/_membership.scss +1 -1
- package/scss/card/_related.scss +2 -2
- package/scss/helpers/mixins/_br-alert.scss +1 -1
- package/scss/helpers/mixins/_br-card.scss +1 -1
- package/scss/helpers/mixins/_br-skiplink.scss +2 -2
- package/scss/helpers/mixins/_breakpoints.scss +3 -3
- package/scss/helpers/mixins/_content.scss +2 -2
- package/scss/helpers/mixins/_festival.scss +2 -2
- package/scss/helpers/mixins/_focus.scss +6 -6
- package/scss/helpers/mixins/_font.scss +1 -1
- package/scss/helpers/mixins/_loading.scss +2 -2
- package/scss/helpers/mixins/_table.scss +1 -1
- package/scss/helpers/mixins/buttons/_setup.scss +1 -1
- package/scss/helpers/mixins/input/_generic.scss +2 -2
- package/scss/helpers/mixins/input/_select.scss +1 -1
- package/scss/helpers/mixins/input/_text.scss +1 -1
- package/scss/helpers/mixins/table/_details.scss +1 -1
- package/scss/helpers/mixins/table/_etickets.scss +1 -1
- package/scss/helpers/mixins/table/_gifts.scss +1 -1
- package/scss/helpers/mixins/table/_orders.scss +1 -1
- package/scss/helpers/mixins/table/_preferences.scss +2 -2
- package/scss/helpers/mixins/table/_tickets.scss +1 -1
- package/scss/helpers/variables/_layout.scss +1 -1
- package/scss/helpers/variables/index.scss +16 -1
- package/scss/index.scss +1 -1
- package/components/card_display.vue +0 -123
- package/components/help_row.vue +0 -33
- package/components/payment_logo.vue +0 -37
- package/components/placeholder.vue +0 -45
- package/components/related_card.vue +0 -39
- package/components/related_row.vue +0 -34
- package/components/related_title.vue +0 -93
- package/components/type_text.vue +0 -56
package/scss/_klaro.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@mixin cm-button {
|
|
2
2
|
@include fontfamily-black;
|
|
3
3
|
background: $c-grey-l44;
|
|
4
|
-
border-radius: $border-radius;
|
|
4
|
+
border-radius: $br-border-radius;
|
|
5
5
|
font-size: $font-size-sm;
|
|
6
6
|
padding: 0.5em 0.75em;
|
|
7
7
|
margin-right: 1em;
|
|
8
8
|
cursor: pointer;
|
|
9
|
-
color: $white;
|
|
9
|
+
color: $br-white;
|
|
10
10
|
border: 0;
|
|
11
11
|
|
|
12
12
|
&:focus {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&.focus-visible {
|
|
21
|
-
@include double-box($c-grey-l21, $white, md);
|
|
21
|
+
@include double-box($c-grey-l21, $br-white, md);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&.cm-btn-success {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
@include large-up {
|
|
48
48
|
box-shadow: 0 4px 6px 0 rgba($black, 0.2), 5px 5px 10px 0 rgba($black, 0.2);
|
|
49
|
-
border-radius: $border-radius;
|
|
49
|
+
border-radius: $br-border-radius;
|
|
50
50
|
max-width: 28rem;
|
|
51
51
|
bottom: 1.25rem;
|
|
52
52
|
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
@mixin cookie-defaults {
|
|
64
|
-
font-size: $font-size-base;
|
|
64
|
+
font-size: $br-font-size-base;
|
|
65
65
|
|
|
66
66
|
a {
|
|
67
67
|
text-decoration: underline;
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
top: 0;
|
|
105
105
|
|
|
106
106
|
&:focus+.cm-list-label .slider {
|
|
107
|
-
@include double-box($c-grey-l21, $white);
|
|
107
|
+
@include double-box($c-grey-l21, $br-white);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&:checked+.cm-list-label .slider {
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
&::before {
|
|
146
|
-
background-color: $white;
|
|
146
|
+
background-color: $br-white;
|
|
147
147
|
position: absolute;
|
|
148
148
|
transition: 0.3s;
|
|
149
149
|
height: 1.25rem;
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
top: 50%;
|
|
237
237
|
|
|
238
238
|
@include small-up {
|
|
239
|
-
border-radius: $border-radius;
|
|
239
|
+
border-radius: $br-border-radius;
|
|
240
240
|
position: relative;
|
|
241
241
|
max-width: 40rem;
|
|
242
242
|
margin: 0 auto;
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
outline: none;
|
|
366
366
|
|
|
367
367
|
svg {
|
|
368
|
-
@include double-box($c-grey-l21, $white, md);
|
|
368
|
+
@include double-box($c-grey-l21, $br-white, md);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
|
|
@@ -421,13 +421,13 @@
|
|
|
421
421
|
|
|
422
422
|
.cn-learn-more {
|
|
423
423
|
@include fontfamily-black;
|
|
424
|
-
border-radius: $border-radius;
|
|
424
|
+
border-radius: $br-border-radius;
|
|
425
425
|
font-size: $font-size-sm;
|
|
426
426
|
background: $c-grey-l44;
|
|
427
427
|
text-decoration: none;
|
|
428
428
|
display: inline-block;
|
|
429
429
|
padding: 0.5rem;
|
|
430
|
-
color: $white;
|
|
430
|
+
color: $br-white;
|
|
431
431
|
|
|
432
432
|
@include small-down {
|
|
433
433
|
margin-bottom: 1rem;
|
|
@@ -468,6 +468,6 @@
|
|
|
468
468
|
@include cookie-position;
|
|
469
469
|
background: $c-status-neutral;
|
|
470
470
|
padding: 1rem;
|
|
471
|
-
color: $white;
|
|
471
|
+
color: $br-white;
|
|
472
472
|
opacity: 0;
|
|
473
473
|
}
|
package/scss/_main.scss
CHANGED
package/scss/card/_related.scss
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.card-title {
|
|
15
|
-
font-size: $font-size-lg;
|
|
15
|
+
font-size: $br-font-size-lg;
|
|
16
16
|
margin-bottom: 0.75rem;
|
|
17
17
|
|
|
18
18
|
a {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.card-text {
|
|
40
|
-
font-size: $font-size-lg;
|
|
40
|
+
font-size: $br-font-size-lg;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
}
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
@mixin welcome($max-width: 23rem) {
|
|
20
20
|
box-shadow: 0 0 0.3125rem rgba($c-grey-l21, 0.1);
|
|
21
21
|
border: 1px solid $c-grey-l87;
|
|
22
|
-
border-radius: $border-radius;
|
|
22
|
+
border-radius: $br-border-radius;
|
|
23
23
|
margin-bottom: 1.5rem;
|
|
24
24
|
max-width: $max-width;
|
|
25
25
|
margin-right: auto;
|
|
26
26
|
margin-left: auto;
|
|
27
27
|
margin-top: -7rem;
|
|
28
|
-
background: $white;
|
|
28
|
+
background: $br-white;
|
|
29
29
|
text-align: center;
|
|
30
30
|
padding: 1.25rem;
|
|
31
31
|
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
@include single-box($c-grey-l21);
|
|
41
41
|
background-color: $c-grey-l21;
|
|
42
42
|
// border-radius: 0;
|
|
43
|
-
color: $white;
|
|
43
|
+
color: $br-white;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@mixin focus-tabs-dark {
|
|
47
|
-
@include single-box($white);
|
|
48
|
-
background-color: $white;
|
|
47
|
+
@include single-box($br-white);
|
|
48
|
+
background-color: $br-white;
|
|
49
49
|
// border-radius: 0;
|
|
50
50
|
color: $black;
|
|
51
51
|
}
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
z-index: 2;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
@mixin double-box($bg: $white, $col: $black, $bg_size: 0.25rem, $col_size: 0.15rem) {
|
|
59
|
+
@mixin double-box($bg: $br-white, $col: $black, $bg_size: 0.25rem, $col_size: 0.15rem) {
|
|
60
60
|
@include box-setup;
|
|
61
61
|
box-shadow: 0 0 0 $bg_size $bg, 0 0 0 ($bg_size + $col_size) $col;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
@mixin single-box($bg: $white, $size: 0.25rem) {
|
|
64
|
+
@mixin single-box($bg: $br-white, $size: 0.25rem) {
|
|
65
65
|
@include box-setup;
|
|
66
66
|
box-shadow: 0 0 0 $size $bg;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
@mixin link-focus($color: $c-grey-l11, $border: $white) {
|
|
69
|
+
@mixin link-focus($color: $c-grey-l11, $border: $br-white) {
|
|
70
70
|
@include focus {
|
|
71
71
|
@include double-box($color, $border);
|
|
72
72
|
background-color: $color;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@mixin font-face($name: "SupremeLLWeb", $path: "https://
|
|
1
|
+
@mixin font-face($name: "SupremeLLWeb", $path: "https://static.barbican.org.uk/systems-public/fonts/") {
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: "Supreme-Light";
|
|
4
4
|
src: url("#{$path}#{$name}-Light.woff") format("woff"),
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
content: "";
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
@mixin placeholder($color: $gray-300) {
|
|
10
|
+
@mixin placeholder($color: $br-gray-300) {
|
|
11
11
|
background-color: $color;
|
|
12
12
|
color: $color;
|
|
13
13
|
cursor: wait;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@mixin placeholder-animation($color: $gray-400, $width: false) {
|
|
16
|
+
@mixin placeholder-animation($color: $br-gray-400, $width: false) {
|
|
17
17
|
@include inline-block;
|
|
18
18
|
background-color: $color;
|
|
19
19
|
position: relative;
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
|
|
57
57
|
@mixin generic-input-label($state: neutral) {
|
|
58
58
|
padding: 0.75rem 0.75rem 0.625rem 2.5rem;
|
|
59
|
-
border-radius: $border-radius-lg;
|
|
59
|
+
border-radius: $br-border-radius-lg;
|
|
60
60
|
border: 1px solid $c-grey-l65;
|
|
61
|
-
background-color: $white;
|
|
61
|
+
background-color: $br-white;
|
|
62
62
|
font-weight: 400;
|
|
63
63
|
display: block;
|
|
64
64
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
padding: 0.8125rem 2.5rem 0.8125rem 0.8125rem;
|
|
5
5
|
background-position: right 0.75rem center;
|
|
6
6
|
background-image: url($select-arrow);
|
|
7
|
-
border-radius: $border-radius-lg;
|
|
7
|
+
border-radius: $br-border-radius-lg;
|
|
8
8
|
border: 1px solid $c-grey-l65;
|
|
9
9
|
background-color: $c-grey-l96;
|
|
10
10
|
background-size: 1rem 0.75rem;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
@mixin text-input-defaults {
|
|
24
24
|
border: solid $border-width $c-grey-l65;
|
|
25
25
|
padding: toRem(14) toRem(14) 0.75rem;
|
|
26
|
-
border-radius: $border-radius-lg;
|
|
26
|
+
border-radius: $br-border-radius-lg;
|
|
27
27
|
background-color: $c-grey-l96;
|
|
28
28
|
line-height: 1.375rem;
|
|
29
29
|
font-size: inherit;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@include medium-down {
|
|
26
|
-
border-radius: $border-radius-lg;
|
|
26
|
+
border-radius: $br-border-radius-lg;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
@include inset(auto);
|
|
64
64
|
|
|
65
65
|
@include focus {
|
|
66
|
-
outline: 0.15rem solid $blue;
|
|
66
|
+
outline: 0.15rem solid $br-blue;
|
|
67
67
|
outline-offset: 0.25rem;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -2,4 +2,19 @@
|
|
|
2
2
|
@import 'typography';
|
|
3
3
|
@import 'alerts';
|
|
4
4
|
@import 'layout';
|
|
5
|
-
@import 'columns';
|
|
5
|
+
@import 'columns';
|
|
6
|
+
|
|
7
|
+
$br-gray-300: #dee2e6;
|
|
8
|
+
$br-gray-400: #ced4da;
|
|
9
|
+
$br-gray-500: #adb5bd;
|
|
10
|
+
$br-white: #ffffff;
|
|
11
|
+
$br-blue: #0d6efd;
|
|
12
|
+
$br-input-border-color: #ced4da;
|
|
13
|
+
|
|
14
|
+
$br-border-radius: 0.25rem;
|
|
15
|
+
$br-border-radius-lg: 0.5rem;
|
|
16
|
+
|
|
17
|
+
$br-font-size-base: 1rem;
|
|
18
|
+
$br-font-size-lg: 1.25rem;
|
|
19
|
+
|
|
20
|
+
$br-h6-font-size: 1rem;
|
package/scss/index.scss
CHANGED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="styleComponent">
|
|
3
|
-
<div v-if="type === 'concert'" :class="$style.icon">
|
|
4
|
-
<div :class="[`btn btn-secondary`, { hero }]">
|
|
5
|
-
<template v-if="hero">Live event</template>
|
|
6
|
-
<live-icon :class="$style.svg" />
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
<img :class="$style.image" :src="image" />
|
|
10
|
-
<div v-if="expired" :class="$style.title">
|
|
11
|
-
<h4>Expired</h4>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
import { LiveIcon } from "barbican-reset/icons/stream";
|
|
18
|
-
export default {
|
|
19
|
-
name: "CardDisplay",
|
|
20
|
-
components: { LiveIcon },
|
|
21
|
-
props: {
|
|
22
|
-
image: {
|
|
23
|
-
type: String,
|
|
24
|
-
required: true,
|
|
25
|
-
},
|
|
26
|
-
expired: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: false,
|
|
29
|
-
},
|
|
30
|
-
hero: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: false,
|
|
33
|
-
},
|
|
34
|
-
type: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: "concert",
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
computed: {
|
|
40
|
-
styleComponent() {
|
|
41
|
-
const style = this.$style;
|
|
42
|
-
let output = [style.component];
|
|
43
|
-
if (this.hero) {
|
|
44
|
-
output.push(style.hero);
|
|
45
|
-
}
|
|
46
|
-
return output;
|
|
47
|
-
},
|
|
48
|
-
styleButton() {
|
|
49
|
-
const style = this.$style;
|
|
50
|
-
let output = [style.button];
|
|
51
|
-
if (this.hero) {
|
|
52
|
-
output.push(style.hero);
|
|
53
|
-
}
|
|
54
|
-
return output;
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
</script>
|
|
59
|
-
|
|
60
|
-
<style lang="scss" scoped>
|
|
61
|
-
.btn.btn-secondary {
|
|
62
|
-
&:not(.hero) {
|
|
63
|
-
border-radius: 50%;
|
|
64
|
-
padding: 0.5rem;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.hero {
|
|
68
|
-
align-items: center;
|
|
69
|
-
padding: 0.75rem;
|
|
70
|
-
display: flex;
|
|
71
|
-
gap: 0.5rem;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
</style>
|
|
75
|
-
|
|
76
|
-
<style lang="scss" module>
|
|
77
|
-
@import "../scss/helpers";
|
|
78
|
-
|
|
79
|
-
.svg {
|
|
80
|
-
fill: white;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.component {
|
|
84
|
-
padding-top: 56.25%;
|
|
85
|
-
position: relative;
|
|
86
|
-
overflow: hidden;
|
|
87
|
-
color: $white;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.icon {
|
|
91
|
-
position: absolute;
|
|
92
|
-
right: 1rem;
|
|
93
|
-
top: 1rem;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.image {
|
|
97
|
-
@include inset(0);
|
|
98
|
-
position: absolute;
|
|
99
|
-
height: auto;
|
|
100
|
-
width: 100%;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.title {
|
|
104
|
-
@include inset(0);
|
|
105
|
-
background-color: rgba($c-grey-l11, 0.85);
|
|
106
|
-
place-items: center;
|
|
107
|
-
position: absolute;
|
|
108
|
-
display: grid;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.component.hero {
|
|
112
|
-
.icon {
|
|
113
|
-
right: 1.5rem;
|
|
114
|
-
top: 1.5rem;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.title {
|
|
118
|
-
h4 {
|
|
119
|
-
font-size: $h2-font-size;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
</style>
|
package/components/help_row.vue
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<b-card video-help no-body>
|
|
3
|
-
<b-card-header>
|
|
4
|
-
<b-button variant="video-help" v-b-toggle="`help-${id}`">
|
|
5
|
-
{{ title }}
|
|
6
|
-
</b-button>
|
|
7
|
-
</b-card-header>
|
|
8
|
-
<b-collapse :id="`help-${id}`">
|
|
9
|
-
<b-card-body>
|
|
10
|
-
<slot />
|
|
11
|
-
</b-card-body>
|
|
12
|
-
</b-collapse>
|
|
13
|
-
</b-card>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
import { BCard, BCardHeader, BCollapse, BCardBody, BButton } from 'bootstrap-vue'
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
name: 'HelpRow',
|
|
21
|
-
components: { BCard, BCardHeader, BCollapse, BCardBody, BButton },
|
|
22
|
-
props: {
|
|
23
|
-
id: {
|
|
24
|
-
type: String,
|
|
25
|
-
required: true,
|
|
26
|
-
},
|
|
27
|
-
title: {
|
|
28
|
-
type: String,
|
|
29
|
-
required: true,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
</script>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<svg :class="$style.logo" role="presentation">
|
|
4
|
-
<slot />
|
|
5
|
-
</svg>
|
|
6
|
-
<div :class="$style.label">{{ label }}</div>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
export default {
|
|
12
|
-
name: 'PaymentLogo',
|
|
13
|
-
props: {
|
|
14
|
-
label: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: 'visa'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<style lang="scss" module>
|
|
23
|
-
|
|
24
|
-
.label {
|
|
25
|
-
@include sr-only;
|
|
26
|
-
text-transform: uppercase;
|
|
27
|
-
height: 0;
|
|
28
|
-
width: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.logo {
|
|
32
|
-
display: block;
|
|
33
|
-
height: 2.5rem;
|
|
34
|
-
width: 4rem;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
</style>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="$style.placeholder" :style="stylePlaceholder">.</div>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
export default {
|
|
7
|
-
name: 'Placeholder',
|
|
8
|
-
props: {
|
|
9
|
-
margin: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "0"
|
|
12
|
-
},
|
|
13
|
-
height: {
|
|
14
|
-
type: Number,
|
|
15
|
-
default: 1.5
|
|
16
|
-
},
|
|
17
|
-
width: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: "100"
|
|
20
|
-
},
|
|
21
|
-
right: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false,
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
computed: {
|
|
27
|
-
stylePlaceholder() {
|
|
28
|
-
// dynamic styles are placed inline
|
|
29
|
-
let string = `margin-bottom: ${this.margin}rem; line-height: ${this.height}; width: ${this.width}%;`;
|
|
30
|
-
if (this.right) {
|
|
31
|
-
string += `margin-left: ${100 - this.width}%`;
|
|
32
|
-
}
|
|
33
|
-
return string;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
</script>
|
|
38
|
-
|
|
39
|
-
<style lang="scss" module>
|
|
40
|
-
|
|
41
|
-
.placeholder {
|
|
42
|
-
@include placeholder;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
</style>
|