Sha256: 7d195b9e0b2ef0bbcf7cbfbf39dbcfb0cecc5a189b804e897f468bcd5c00322f

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

.modal-background
  +overlay
  background-color: rgba($black, 0.86)

.modal-content
  margin: 0 20px
  max-height: calc(100vh - 160px)
  overflow: auto
  position: relative
  width: 100%
  // Responsiveness
  +tablet
    margin: 0 auto
    max-height: calc(100vh - 40px)
    width: 640px

.modal-close
  @extend .delete
  background: none
  height: 40px
  position: fixed
  right: 20px
  top: 20px
  width: 40px

.modal-card
  @extend .modal-content
  background-color: $white
  border-radius: $radius-large
  display: flex
  flex-direction: column
  max-height: calc(100vh - 40px)
  overflow: hidden

.modal-card-head,
.modal-card-foot
  align-items: center
  background-color: $background
  display: flex
  flex-shrink: 0
  justify-content: flex-start
  padding: 20px
  position: relative

.modal-card-head
  border-bottom: 1px solid $border

.modal-card-title
  color: $text-strong
  flex-grow: 1
  font-size: $size-4
  line-height: 1

.modal-card-foot
  border-top: 1px solid $border
  .button
    &:not(:last-child)
      margin-right: 10px

.modal-card-body
  flex-grow: 1
  overflow: auto
  padding: 20px

.modal
  +overlay
  align-items: center
  display: none
  justify-content: center
  overflow: hidden
  position: fixed
  z-index: 1986
  // Modifiers
  &.is-active
    display: flex

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bulma-rails-0.1.2 app/assets/stylesheets/sass/components/modal.sass