mediacube-ui 0.1.205 → 0.1.206
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/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/src/patterns/McModal/McModal.vue +23 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.206](https://github.com/MediaCubeCo/mcui/compare/v0.1.205...v0.1.206) (2024-01-11)
|
|
6
|
+
|
|
5
7
|
### [0.1.205](https://github.com/MediaCubeCo/mcui/compare/v0.1.204...v0.1.205) (2024-01-11)
|
|
6
8
|
|
|
7
9
|
### [0.1.204](https://github.com/MediaCubeCo/mcui/compare/v0.1.203...v0.1.204) (2024-01-10)
|
package/package.json
CHANGED
|
@@ -134,6 +134,12 @@ export default {
|
|
|
134
134
|
regular: 400,
|
|
135
135
|
small: 150,
|
|
136
136
|
},
|
|
137
|
+
footer: {
|
|
138
|
+
button: {
|
|
139
|
+
regular: 600,
|
|
140
|
+
small: 500,
|
|
141
|
+
}
|
|
142
|
+
},
|
|
137
143
|
header: {
|
|
138
144
|
title: {
|
|
139
145
|
line_height: {
|
|
@@ -164,6 +170,8 @@ export default {
|
|
|
164
170
|
'--mc-modal-padding-small': `var(--space-${this.indent.small})`,
|
|
165
171
|
'--mc-modal-header-line-height': `var(--line-height-${this.header.title.line_height.regular})`,
|
|
166
172
|
'--mc-modal-header-line-height-small': `var(--line-height-${this.header.title.line_height.small})`,
|
|
173
|
+
'--mc-modal-button-height': `var(--size-${this.footer.button.regular})`,
|
|
174
|
+
'--mc-modal-button-height-small': `var(--size-${this.footer.button.small})`,
|
|
167
175
|
}
|
|
168
176
|
},
|
|
169
177
|
},
|
|
@@ -237,7 +245,10 @@ export default {
|
|
|
237
245
|
const lineHeightDifferences =
|
|
238
246
|
this.modal_params?.['--mc-modal-header-line-height'] -
|
|
239
247
|
this.modal_params?.['--mc-modal-header-line-height-small']
|
|
240
|
-
const
|
|
248
|
+
const buttonDifferences =
|
|
249
|
+
this.modal_params?.['--mc-modal-button-height'] -
|
|
250
|
+
this.modal_params?.['--mc-modal-button-height-small']
|
|
251
|
+
const sizeDifferences = indentDifferences + lineHeightDifferences + buttonDifferences
|
|
241
252
|
if (!this.small_indents) {
|
|
242
253
|
const body = this.$refs.mcModalBody
|
|
243
254
|
this.can_shorten_modal = body?.scrollHeight - body?.clientHeight > sizeDifferences
|
|
@@ -283,10 +294,12 @@ export default {
|
|
|
283
294
|
$block-name: &;
|
|
284
295
|
$border-color: #dee1e9;
|
|
285
296
|
$box-shadow-color: #20008c28;
|
|
286
|
-
--mc-modal-padding: $space-400;
|
|
287
|
-
--mc-modal-padding-small: $space-150;
|
|
288
|
-
--mc-modal-header-line-height: $line-height-300;
|
|
289
|
-
--mc-modal-header-line-height-small: $line-height-250;
|
|
297
|
+
--mc-modal-padding: #{$space-400};
|
|
298
|
+
--mc-modal-padding-small: #{$space-150};
|
|
299
|
+
--mc-modal-header-line-height: #{$line-height-300};
|
|
300
|
+
--mc-modal-header-line-height-small: #{$line-height-250};
|
|
301
|
+
--mc-modal-button-height: #{$size-600};
|
|
302
|
+
--mc-modal-button-height-small: #{$size-500};
|
|
290
303
|
|
|
291
304
|
@media #{$media-query-s} {
|
|
292
305
|
padding: 12px 0;
|
|
@@ -519,6 +532,9 @@ export default {
|
|
|
519
532
|
#{$block-name} {
|
|
520
533
|
&__control {
|
|
521
534
|
padding-bottom: var(--mc-modal-padding-small) !important;
|
|
535
|
+
.mc-button {
|
|
536
|
+
height: var(--mc-modal-button-height-small);
|
|
537
|
+
}
|
|
522
538
|
}
|
|
523
539
|
&__header {
|
|
524
540
|
padding-block: var(--mc-modal-padding-small) !important;
|
|
@@ -578,6 +594,8 @@ export default {
|
|
|
578
594
|
@media #{$media-query-s} {
|
|
579
595
|
.mc-button {
|
|
580
596
|
min-width: 100px;
|
|
597
|
+
height: var(--mc-modal-button-height);
|
|
598
|
+
transition: $duration-s all;
|
|
581
599
|
width: unset;
|
|
582
600
|
}
|
|
583
601
|
}
|