Sha256: 42aaf86697ebd357375609512534151d34748e5093691a0a6b16c768ee300271

Contents?: true

Size: 1.79 KB

Versions: 9

Compression:

Stored size: 1.79 KB

Contents

//
// modal.scss
// Extended from Bootstrap
//

//
// Bootstrap Overrides =======================
//

.modal-dialog {
  // When fading in the modal, animate it to slide down
  .modal.fade & {
    transform: translate(0, -150px);
  }

  .modal.show & {
    transform: translate(0, 0);
  }
}

.modal-header .close {
  margin: -1.5rem -1.5rem -1.5rem auto;
}

//
// Dashkit ===================================
//

// Modal dialog vertical
//
// Creates a vertically aligned version of the modal dialog

.modal-dialog-vertical {
  height: 100%;
  max-width: $modal-dialog-vertical-width;
  margin: 0;
  &.large {
    max-width: $modal-dialog-vertical-width-md !important;
  }

  .modal-content {
    height: inherit;
    border-width: 0 $modal-content-border-width 0 0;
    border-radius: 0;
    border: 0px !important;
  }

  .modal-header {
    border-radius: inherit;
  }

  .modal-body {
    height: inherit;
    overflow-y: auto;
  }

  &.xs {
    max-width: $modal-dialog-vertical-width-xs;
  }
}

.modal.fade .modal-dialog-vertical {
  transform: translateX(-100%);
}

.modal.show .modal-dialog-vertical {
  transform: translateX(0);
}

// Positioning

.modal.fixed-right {
  padding-right: 0 !important;
}

.modal.fixed-right .modal-dialog-vertical {
  margin-left: auto;
}

.modal.fixed-right.fade .modal-dialog-vertical {
  transform: translateX(100%);
}

.modal.fixed-right.show .modal-dialog-vertical {
  transform: translateX(0);
}

// Modal card

.modal-card {
  margin-bottom: 0;

  .card-body {
    max-height: $modal-card-body-max-height;
    overflow-y: auto;
  }
}

// Modal tabs

.modal-header-tabs {
  margin-top: -$modal-header-padding-y;
  margin-bottom: calc(-#{$modal-header-padding-y} - #{$border-width});
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
viniBaxter-desk_front-32.0.0 lib/viniBaxter/sass/desk_front/dashkit/_modal.scss
viniBaxter-desk_front-31.0.0 lib/viniBaxter/sass/desk_front/dashkit/_modal.scss
viniBaxter-desk_front-30.0.1 lib/viniBaxter/sass/desk_front/dashkit/_modal.scss
viniBaxter-desk_front-26 lib/viniBaxter/sass/desk_front/dashkit/_modal.scss
viniBaxter-desk_front-25.1 lib/viniBaxter/sass/desk_front/dashkit/_modal.scss
viniBaxter-desk_front-25 lib/viniBaxter/sass/desk_front/dashkit/_modal.scss
viniBaxter-desk_front-24.0.0 lib/viniBaxter/sass/desk_front/dashkit/_modal.scss
viniBaxter-desk_front-22.0.0 lib/viniBaxter/sass/desk_front/dashkit/_modal.scss
viniBaxter-desk_front-21.0.0 lib/viniBaxter/sass/desk_front/dashkit/_modal.scss