<|start_filename|>demo/IntrospectionModal.css<|end_filename|>
@import '../src/components/variables.css';

.modal-paper {
  position: absolute;
  z-index: 10;

  width: 75%;
  height: 75%;
  max-height: 400px;
  max-width: 800px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 4px;
  outline: none;
  top: 50%;
  left: 50%;
  box-shadow: 0px 0px 10px 0px var(--shadow-color);
  background: white;

  display: flex;
  flex-direction: column;

  padding: var(--panel-spacing);

  @media (--small-viewport) {
    width: 90%;
    height: 90%;
  }
}

.tab-container {
  flex: 1;
  padding: 10px 0;
  display: flex;
  flex-direction: column;

  & > textarea {
    width: 100%;
    box-sizing: border-box;
    flex: 1;
    outline: none;
    padding: 10px;
    font-size: 14px;
  }
}

.copy-button {
  user-select: none;
  cursor: pointer;
  margin: 5px 0;
  text-align: center;
}

.model-footer {
  text-align: right;

  & > button {
    margin-left: 20px;
  }
}

.preset-card {
  overflow: hidden;
  border: 3px solid transparent;
  /* background-color: color(var(--modal-bg-color) l(- 3%)); */
  box-shadow: 0px 0 8px 2px rgba(0, 0, 0, 0.1);
  font-family: var(--base-font-family);
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  vertical-align: middle;

  & h2 {
    font-weight: normal;
  }

  margin: 20px;
  padding: 10px 20px;

  &:hover {
    box-shadow: 0px 0 8px 2px color(var(--primary-color) alpha(0.3) l(-10%));
  }

  &.-active {
    box-shadow: 0px 0 8px 2px color(var(--primary-color) alpha(0.5) l(-10%));
  }
}

.preset-cards {
  flex: 5;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: space-around;

  @media (--small-viewport) {
    padding-right: 0;
  }

  & > div {
    width: calc(50% - 40px);
    height: 100px;
  }

  & > .preset-card {
    @media (--small-viewport) {
      width: 100%;
      height: 50px;
      margin: 10px 0;
    }
  }
}


<|start_filename|>src/components/Voyager.css<|end_filename|>
@import './variables.css';

/* fix height of element */
[data-reactroot] {
  height: 100%;
}

.graphql-voyager {
  font: var(--base-font-size) var(--base-font-family);
  display: flex;
  height: 100%;

  @media (--small-viewport) {
    flex-direction: column;
  }

  & > .doc-panel {
    width: var(--doc-panel-width);
    min-width: var(--doc-panel-width);
    background: var(--doc-panel-bg-color);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
  }

  & > .viewport {
    flex: 1;
    max-height: 100vh;

    & > svg {
      width: 100%;
      height: 100%;
    }
  }

  @media (--small-viewport) {
    & > .doc-panel,
    & > .viewport {
      height: 50%;
      width: 100%;
      max-width: none;
    }
  }

  & > .menu-content {
    position: absolute;
    bottom: var(--panel-spacing);
    left: calc(var(--doc-panel-width) + var(--panel-spacing));
    background: var(--doc-panel-bg-color);
    box-shadow: 0 4px 4px -2px var(--shadow-color);
    border: 1px solid var(--shadow-color);
    padding: var(--spacing-unit);

    & > .setting-other-options {
      display: flex;

      & > label:first-of-type {
        padding-right: var(--spacing-unit);
      }

      & > label {
        margin-bottom: calc(var(--panel-spacing) - var(--spacing-unit));
      }
    }

    @media (--small-viewport) {
      left: 10px;
    }
  }
}


<|start_filename|>src/components/variables.css<|end_filename|>
:root {
  --monospace-font-family: 'Consolas', 'Inconsolata', 'Droid Sans Mono',
    'Monaco', monospace;
  --base-font-family: 'helvetica neue', helvetica, arial, sans-serif;
  --base-font-size: 14px;
  --spacing-unit: 5px;
  --panel-items-spacing: 8px;
  --panel-spacing: 15px;
  --icons-size: 24px;

  --primary-color: #00bcd4;
  --background-color: #fff;
  --dark-bg-color: #0b2840;
  --highlight-color: var(--primary-color);
  --secondary-color: #548f9e;
  --logo-color: #27535e;
  --link-color: #42a0dd;
  --link-hover-color: #0262a0;
  --field-name-color: #224d6f;
  --builtin-color: #711c1c;
  --text-color: #666;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --alert-color: #b71c1c;

  --modal-bg-color: var(--dark-bg-color);

  --doc-panel-width: 320px;
  --type-info-popover-width: 320px;
  --doc-panel-bg-color: var(--background-color);
  --doc-panel-item-stripe-color: rgba(158, 158, 158, 0.07);
  --doc-panel-item-hover-color: rgba(214, 236, 238, 0.6);

  --arg-default-color: #0b7fc7;
  --arg-name-color: #c77f53;

  --node-fill-color: #f6f8f8;
  --node-header-color: var(--secondary-color);
  --node-header-text-color: white;

  --edge-color: color(var(--secondary-color) l(- 15%));
  --selected-edge-color: red;
  --selected-field-bg: rgba(255, 0, 0, 0.18);
}

@custom-media --small-viewport (max-width: 780px);
@custom-media --big-viewport (min-width: 781px);
