Skip to content

Visualize Your Ideas With Code

1.5 KB
Raw Blame
$colors: (
  'error': var(--red),
  'warn': var(--yellow),
  'info': var(--blue),
  'http': #cccccc,
  'verbose': #cccccc,
  'debug': #cccccc,
  'silly': #cccccc,
);

.root {
  width: 100%;
  height: 100%;
  display: flex;
  background-color: var(--surface-color);
}

.tabs {
  flex-grow: 0;
  flex-shrink: 0;
  padding: 4px 0;
  width: 48px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  background-color: var(--background-color);
}

.tab {
  padding: 8px;
  margin: 4px;
  cursor: pointer;
  position: relative;
  color: rgba(255, 255, 255, 0.54);
  border-radius: 50%;

  &:hover {
    color: white;
    background-color: var(--surface-color);
  }

  &.active {
    border-radius: var(--radius);
    background: var(--theme-overlay);
    color: var(--theme-light);
    transition: border-radius var(--duration-normal) var(--timing-ease-out);
  }

  &.disabled {
    pointer-events: none;
    color: rgba(255, 255, 255, 0.16);
  }
}

.badge {
  font-size: var(--font-size-small);
  line-height: 16px;
  color: rgba(255, 255, 255, 0.7);
  position: absolute;
  font-weight: 900;
  right: 4px;
  bottom: 4px;
  padding: 0 4px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  text-align: center;
  z-index: 1;

  @each $level, $color in $colors {
    &.#{$level} {
      background-color: $color;
    }
  }
}

.space {
  flex-grow: 1;
}

.panes {
  flex-grow: 1;
  flex-shrink: 1;
  overflow: hidden;
}

.pane {
  width: 100%;
  height: 100%;
  padding: 16px;
  overflow-y: scroll;
  background-color: var(--surface-color);
}