Skip to content

Commit

Permalink
feat: add mid-large size on base-modal
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Aug 8, 2024
1 parent 5c632bc commit b3e92f9
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/components/base/BaseModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default {
default: "medium",

validator(x: string) {
return ["medium", "large"].includes(x);
return ["medium", "large", "mid-large"].includes(x);
}
},

Expand Down Expand Up @@ -120,7 +120,8 @@ $c: ".c-base-modal";
// VARIABLES
$popup-min-width-medium: 350px;
$popup-min-width-large: 440px;
$popup-max-width: 500px;
$popup-min-width-mid-large: 560px;
$popup-max-width: ($popup-min-width-mid-large + 40px);
$popup-padding-sides: 25px;

$popup-width-full-margin-sides: 14px;
Expand Down Expand Up @@ -189,6 +190,18 @@ $popup-width-full-breakpoint: (
}
}
}

&--mid-large {
#{$c}__popup {
min-width: $popup-min-width-mid-large;
}

&#{$c}--constrained {
#{$c}__popup {
max-width: $popup-min-width-mid-large;
}
}
}
}

// --> MEDIA-QUERIES <--
Expand Down

0 comments on commit b3e92f9

Please sign in to comment.