UNPKG

@graphiql/react

Version:

[Changelog](https://github.com/graphql/graphiql/blob/main/packages/graphiql-react/CHANGELOG.md) | [API Docs](https://graphiql-test.netlify.app/typedoc/modules/graphiql_react.html) | [NPM](https://www.npmjs.com/package/@graphiql/react)

106 lines (88 loc) 2.09 kB
.graphiql-history-header { font-size: var(--font-size-h2); font-weight: var(--font-weight-medium); display: flex; justify-content: space-between; align-items: center; } .graphiql-history-header button { font-size: var(--font-size-inline-code); padding: var(--px-6) var(--px-10); } .graphiql-history-items { margin: var(--px-16) 0 0; list-style: none; padding: 0; } .graphiql-history-item { border-radius: var(--border-radius-4); color: hsla(var(--color-neutral), var(--alpha-secondary)); display: flex; font-size: var(--font-size-inline-code); font-family: var(--font-family-mono); height: 34px; &:hover { color: hsl(var(--color-neutral)); background-color: hsla(var(--color-neutral), var(--alpha-background-light)); } &:not(:first-child) { margin-top: var(--px-4); } &.editable { background-color: hsla( var(--color-primary), var(--alpha-background-medium) ); & > input { background: transparent; border: none; flex: 1; margin: 0; outline: none; padding: 0 var(--px-10); width: 100%; &::placeholder { color: hsla(var(--color-neutral), var(--alpha-secondary)); } } & > button { color: hsl(var(--color-primary)); padding: 0 var(--px-10); &:active { background-color: hsla( var(--color-primary), var(--alpha-background-heavy) ); } &:focus { outline: hsl(var(--color-primary)) auto 1px; } & > svg { display: block; } } } } button.graphiql-history-item-label { flex: 1; padding: var(--px-8) var(--px-10); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } button.graphiql-history-item-action { align-items: center; color: hsla(var(--color-neutral), var(--alpha-secondary)); display: flex; padding: var(--px-8) var(--px-6); &:hover { color: hsl(var(--color-neutral)); } & > svg { height: 14px; width: 14px; } } .graphiql-history-item-spacer { height: var(--px-16); }