@import '../../../../../../node_modules/codemirror/lib/codemirror.css';
@import '../../../../../../node_modules/codemirror/theme/material-darker.css';

@prefix: script-editor;

.@{prefix}-modal {
  background-color: #252526;

  .@{prefix} {
    width: 100%;
    height: 100%;

    &-toolbar {
      height: 32px;
    }

    &-body {
      height: 100%;
      display: flex;
      align-items: stretch;
      align-content: space-between;

      .@{prefix}-code {
        width: 50%;
        height: ~"calc(100% - 32px)";

        .react-codemirror2 {
          height: 100%;

          .CodeMirror {
            height: 100%;
          }
        }

        .@{prefix}-js {
          height: 49%;
        }

        .@{prefix}-html {
          height: 49%;
          margin-top: 1%;
        }
      }

      .@{prefix}-result {
        margin-left: 10px;
        width: 50%;
        height: ~"calc(100% - 32px)";

        &-code {
          height: 49%;
          background-color: #1e1e1e;
          color: #fff;
          margin: 0;
          box-shadow: inset 0 0 0 1px #333;
        }

        .@{prefix}-dom {
          height: 49%;
          margin-top: 1%;
          background-color: #1e1e1e;
          color: #fff;
          box-shadow: inset 0 0 0 1px #333;
        }
      }
    }
  }
}
