.ConfigLink {
  display: inline-block;
  text-decoration: none;
  border-radius: 4px;

  &.is-pre {
    border-radius: 8px;
  }

  &.is-fix {
    padding: 6px 10px;
    font-size: 16px;
    color: var(--text-warning);
    background-color: var(--text-highlited-warning);
  }
}

.ConfigLink code {
  font-size: 13px;
  font-weight: 300;
  color: var(--accent);
}

.ConfigLink > code,
.ConfigLink > pre {
  background-color: var(--text-highlited);
}

.ConfigLink > code {
  display: inline-block;
  padding: 0 4px;
  color: var(--accent);
  border-radius: 4px;
}

.ConfigLink > pre {
  display: flex;
  flex-direction: column;
  padding: 12px;
  margin: 0;
  line-height: 20px;
  border-radius: 8px;
}

.ConfigLink > pre > code {
  overflow: hidden;
  white-space: pre-wrap;
  background-color: initial;
}

@media (hover) {
  .ConfigLink.is-fix:hover {
    background-color: var(--text-highlited-warning-hover);
  }

  .ConfigLink:hover > code,
  .ConfigLink:hover > pre {
    background-color: var(--text-highlited-hover);
  }
}
