Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

1.6 KB
Raw Blame
/* Mantine Pill-backed chip/tag — colour from the shared accent palette (accents.css). */
@import "./accents.css";

.sui-chip.mantine-Pill-root {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border: 1px solid transparent;
  font-weight: 500;
  width: auto;
}
.sui-chip--primary.mantine-Pill-root {
  background: var(--_solid);
  color: var(--_on);
}
.sui-chip--secondary.mantine-Pill-root {
  background: var(--_tint);
  color: var(--_text);
  border-color: var(--_bd);
}
.sui-chip--interactive {
  cursor: pointer;
}
/* "box-cut" add/placeholder affordance: no fill, dashed outline. */
.sui-chip--dashed.mantine-Pill-root {
  background: transparent;
  border-style: dashed;
  border-color: var(--_bd);
}
.sui-chip--dashed.sui-chip--interactive:hover {
  background: var(--_tint);
}
.sui-chip--loading {
  opacity: 0.6;
  pointer-events: none;
}

.sui-chip__dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: currentColor;
}
.sui-chip__icon {
  display: inline-flex;
  align-items: center;
}
.sui-chip__label {
  display: inline-block;
}

/* Center the label precisely. Mantine sets line-height: var(--pill-height) on
   the label, which positions the text by its font baseline and reads slightly
   high; flex-centering with line-height:1 centres the ink in the pill. */
.sui-chip .mantine-Pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  overflow: visible;
}
.sui-chip__spinner {
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}