Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

2.9 KB
Raw Blame
/* SettingRow (SettingRow.tsx) and FeatureLine (FeatureLine.tsx): the one row for a setting, its name, one grey line and
   its control at the right end; rows in a list divided by hairlines. */
.k-setrow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.k-setrow:first-child,
.k-card-head + .k-setrow {
  padding-top: 0;
  border-top: 0;
}
.k-setrow-text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.k-setrow-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}
.k-setrow-aside {
  margin-left: 4px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-muted);
}
.k-setrow-end {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}
/* A value at the right end (a language, a number of days): grey text, not a badge. */
.k-setrow-value {
  font-size: 12.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.k-setrow.is-dimmed .k-setrow-title,
.k-setrow.is-dimmed .help {
  color: var(--ink-disabled);
}
/* An option of the row above: indented under it, without the line between them. */
.k-setrow.is-nested {
  margin-left: 14px;
  padding-top: 0;
  padding-left: 12px;
  border-top: 0;
  border-left: 2px solid var(--line);
}
/* A row that is a person: the 24px avatar first. */
.k-setrow.has-lead > :first-child {
  flex: none;
}
/* Rows of a list: the gap between them is the row's own top padding. */
.k-setrows {
  display: grid;
  gap: 10px;
  min-width: 0;
}
/* Phone: a wide control (a select, or a badge with a button) goes under the words; a switch, one button or one badge
   stays at the right end. */
@media (max-width: 560px) {
  .k-setrow:has(> .k-setrow-end > .k-select),
  .k-setrow:has(> .k-setrow-end > :nth-child(2)) {
    flex-wrap: wrap;
  }
  .k-setrow:has(> .k-setrow-end > .k-select) > .k-setrow-text,
  .k-setrow:has(> .k-setrow-end > :nth-child(2)) > .k-setrow-text {
    flex-basis: calc(100% - 36px);
  }
}

/* FeatureLine: the row in its own card; Change opens its settings under a hairline. */
.k-feature-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
/* ListLine: a FeatureLine as a row of a list inside a card; rows divided by hairlines like SettingRows. */
.k-list-line {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.k-list-line + .k-list-line {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
/* An area's label above its lines (Phone, Voice, …): quiet words, never capitals. */
.k-line-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 16px 2px 0;
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 600;
  color: var(--ink-muted);
}
.k-line-group:first-child {
  margin-top: 0;
}
.k-line-group-after {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 400;
}