2021-02-15 07:50:28 +00:00
|
|
|
@import "../utilities/mixins"
|
|
|
|
|
2018-01-29 09:42:34 +00:00
|
|
|
$modal-z: 40 !default
|
|
|
|
|
2021-02-15 07:50:28 +00:00
|
|
|
$modal-background-background-color: bulmaRgba($scheme-invert, 0.86) !default
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
$modal-content-width: 640px !default
|
|
|
|
$modal-content-margin-mobile: 20px !default
|
|
|
|
$modal-content-spacing-mobile: 160px !default
|
|
|
|
$modal-content-spacing-tablet: 40px !default
|
|
|
|
|
|
|
|
$modal-close-dimensions: 40px !default
|
|
|
|
$modal-close-right: 20px !default
|
|
|
|
$modal-close-top: 20px !default
|
|
|
|
|
|
|
|
$modal-card-spacing: 40px !default
|
|
|
|
|
|
|
|
$modal-card-head-background-color: $background !default
|
|
|
|
$modal-card-head-border-bottom: 1px solid $border !default
|
|
|
|
$modal-card-head-padding: 20px !default
|
|
|
|
$modal-card-head-radius: $radius-large !default
|
|
|
|
|
|
|
|
$modal-card-title-color: $text-strong !default
|
|
|
|
$modal-card-title-line-height: 1 !default
|
|
|
|
$modal-card-title-size: $size-4 !default
|
|
|
|
|
|
|
|
$modal-card-foot-radius: $radius-large !default
|
|
|
|
$modal-card-foot-border-top: 1px solid $border !default
|
|
|
|
|
2021-02-15 07:50:28 +00:00
|
|
|
$modal-card-body-background-color: $scheme-main !default
|
2018-01-29 09:42:34 +00:00
|
|
|
$modal-card-body-padding: 20px !default
|
|
|
|
|
2021-02-15 07:50:28 +00:00
|
|
|
$modal-breakpoint: $tablet !default
|
|
|
|
|
2018-01-29 09:42:34 +00:00
|
|
|
.modal
|
2021-02-15 07:50:28 +00:00
|
|
|
@extend %overlay
|
2018-01-29 09:42:34 +00:00
|
|
|
align-items: center
|
|
|
|
display: none
|
2021-02-15 07:50:28 +00:00
|
|
|
flex-direction: column
|
2018-01-29 09:42:34 +00:00
|
|
|
justify-content: center
|
|
|
|
overflow: hidden
|
|
|
|
position: fixed
|
|
|
|
z-index: $modal-z
|
|
|
|
// Modifiers
|
|
|
|
&.is-active
|
|
|
|
display: flex
|
|
|
|
|
|
|
|
.modal-background
|
2021-02-15 07:50:28 +00:00
|
|
|
@extend %overlay
|
2018-01-29 09:42:34 +00:00
|
|
|
background-color: $modal-background-background-color
|
|
|
|
|
|
|
|
.modal-content,
|
|
|
|
.modal-card
|
|
|
|
margin: 0 $modal-content-margin-mobile
|
|
|
|
max-height: calc(100vh - #{$modal-content-spacing-mobile})
|
|
|
|
overflow: auto
|
|
|
|
position: relative
|
|
|
|
width: 100%
|
|
|
|
// Responsiveness
|
2021-02-15 07:50:28 +00:00
|
|
|
+from($modal-breakpoint)
|
2018-01-29 09:42:34 +00:00
|
|
|
margin: 0 auto
|
|
|
|
max-height: calc(100vh - #{$modal-content-spacing-tablet})
|
|
|
|
width: $modal-content-width
|
|
|
|
|
|
|
|
.modal-close
|
2021-02-15 07:50:28 +00:00
|
|
|
@extend %delete
|
2018-01-29 09:42:34 +00:00
|
|
|
background: none
|
|
|
|
height: $modal-close-dimensions
|
|
|
|
position: fixed
|
2021-02-15 07:50:28 +00:00
|
|
|
+ltr-position($modal-close-right)
|
2018-01-29 09:42:34 +00:00
|
|
|
top: $modal-close-top
|
|
|
|
width: $modal-close-dimensions
|
|
|
|
|
|
|
|
.modal-card
|
|
|
|
display: flex
|
|
|
|
flex-direction: column
|
|
|
|
max-height: calc(100vh - #{$modal-card-spacing})
|
|
|
|
overflow: hidden
|
2021-02-15 07:50:28 +00:00
|
|
|
-ms-overflow-y: visible
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
.modal-card-head,
|
|
|
|
.modal-card-foot
|
|
|
|
align-items: center
|
|
|
|
background-color: $modal-card-head-background-color
|
|
|
|
display: flex
|
|
|
|
flex-shrink: 0
|
|
|
|
justify-content: flex-start
|
|
|
|
padding: $modal-card-head-padding
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
.modal-card-head
|
|
|
|
border-bottom: $modal-card-head-border-bottom
|
|
|
|
border-top-left-radius: $modal-card-head-radius
|
|
|
|
border-top-right-radius: $modal-card-head-radius
|
|
|
|
|
|
|
|
.modal-card-title
|
|
|
|
color: $modal-card-title-color
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 0
|
|
|
|
font-size: $modal-card-title-size
|
|
|
|
line-height: $modal-card-title-line-height
|
|
|
|
|
|
|
|
.modal-card-foot
|
|
|
|
border-bottom-left-radius: $modal-card-foot-radius
|
|
|
|
border-bottom-right-radius: $modal-card-foot-radius
|
|
|
|
border-top: $modal-card-foot-border-top
|
|
|
|
.button
|
|
|
|
&:not(:last-child)
|
2021-02-15 07:50:28 +00:00
|
|
|
+ltr-property("margin", 0.5em)
|
2018-01-29 09:42:34 +00:00
|
|
|
|
|
|
|
.modal-card-body
|
|
|
|
+overflow-touch
|
|
|
|
background-color: $modal-card-body-background-color
|
|
|
|
flex-grow: 1
|
|
|
|
flex-shrink: 1
|
|
|
|
overflow: auto
|
|
|
|
padding: $modal-card-body-padding
|