mahaplatform/reframe

View on GitHub
src/containers/modal/style.less

Summary

Maintainability
Test Coverage
.reframe-modal {
  flex: 1;
  display: flex;
}
.reframe-modal-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.reframe-modal-window {
  position: absolute;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
}
.reframe-modal-window-container {
  position: relative;
  flex: 1;
}
.reframe-modal-loader {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
}
@media only screen and (min-width: 1025px) {
  .reframe-modal-window  {
    max-width: ~"calc(1024px - 2em)";
    max-height: ~"calc(768px - 2em)";
  }
}
@media only screen and (min-width: 769px) {
  .reframe-modal-overlay {
    .opacity-transition(0, 0.5, .5s);
    .opacity(0.5);
    background-color: @black;
  }
  .reframe-modal-window  {
    .opacity-transition(0, 1, .5s);
    width: ~"calc(100% - 2em)";
    height: ~"calc(100% - 2em)";
    top: 50%;
    left: 50%;
    .translateXY(-50%, -50%);
  }
}
@media only screen and (max-width: 768px) {
  .reframe-modal-window  {
    .translate-y-transition(100%, 0, .5s);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}
.reframe-modal-window-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
}