Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

9.6 KB
Raw Blame
/* ---- Dito companion ----------------------------------------------------
   The transcript and composer are the main chat's own components; this file
   only sizes the column they sit in and draws what is the notebook's: the
   header, the welcome, and the line under a reply. */
.dt-note-companion {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--background);
}
.dt-note-companion-head {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  flex-shrink: 0;
  padding: 0 8px 0 16px;
  position: relative;
  z-index: 5;
}
.dt-note-companion-head > .min-w-0 {
  margin-left: 4px;
}
.dt-note-companion-head h2 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
}
.dt-note-companion-head p {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--muted-foreground);
}
.dt-note-companion-head .dt-note-icon-button:disabled {
  opacity: 0.35;
}
.dt-note-companion-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 16px 32px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.dt-note-companion-welcome {
  padding: 18px 16px 0;
}
.dt-note-companion-thread .dt-note-companion-welcome {
  padding: 6px 0 0;
}
.dt-note-companion-welcome > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.dt-note-starters {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 14px -8px 0;
}
.dt-note-starters button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--foreground);
  text-align: left;
  transition: background-color 120ms;
}
.dt-note-starters button svg {
  color: var(--muted-foreground);
}
.dt-note-starters button:hover {
  background: var(--accent, var(--secondary));
}
.dt-note-starters button:disabled {
  opacity: 0.5;
}
.dt-note-companion-link {
  display: inline-block;
  margin: 10px 0;
  font-size: 12.5px;
  color: var(--primary);
}
.dt-note-companion-link:hover {
  text-decoration: underline;
}
.dt-note-companion-error {
  margin: 10px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--destructive);
}
.dt-note-companion-composer {
  flex-shrink: 0;
  padding: 4px 12px 12px;
}

/* The line this conversation is about. */
.dt-note-anchor {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
  margin: 0 14px 8px;
  padding: 8px 11px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 6%, var(--secondary));
  color: var(--muted-foreground);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: left;
  transition:
    background-color 120ms,
    color 120ms;
}
.dt-note-anchor > svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}
.dt-note-anchor > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dt-note-anchor:hover:not(:disabled) {
  background: color-mix(in srgb, var(--primary) 10%, var(--secondary));
  color: var(--foreground);
}
.dt-note-anchor[data-gone] {
  font-style: italic;
  opacity: 0.75;
}
.dt-note-anchor[data-gone] > svg {
  color: var(--muted-foreground);
}

/* Every conversation on the page. */
.dt-note-thread-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  min-width: 28px;
  justify-content: center;
  padding: 0 6px;
  border-radius: 7px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 120ms,
    color 120ms;
}
.dt-note-thread-switch:hover,
.dt-note-thread-switch[aria-expanded='true'] {
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  color: var(--foreground);
}
.dt-note-thread-list {
  position: absolute;
  top: calc(100% - 4px);
  right: 10px;
  left: 10px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  max-height: min(440px, 70vh);
  padding: 5px;
}
.dt-note-thread-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin-bottom: 4px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}
.dt-note-thread-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  font-size: 13px;
  color: var(--foreground);
  outline: none;
}
.dt-note-thread-list-rows {
  min-height: 0;
  overflow-y: auto;
}
.dt-note-thread-list .dt-note-thread-row-main:hover {
  background: var(--secondary);
}
.dt-note-thread-list .dt-note-thread-row-main[aria-current] {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.dt-note-thread-list .dt-note-menu-empty {
  padding: 18px 10px;
  font-size: 12.5px;
  color: var(--muted-foreground);
  text-align: center;
}

/* What can be made at a line. */
.dt-note-make-title {
  margin: 18px 0 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-foreground);
}
.dt-note-make-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dt-note-make-chips button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--foreground);
  transition:
    background-color 120ms,
    border-color 120ms,
    color 120ms;
}
.dt-note-make-chips button svg {
  color: var(--muted-foreground);
}
.dt-note-make-chips button:hover {
  background: var(--secondary);
}
.dt-note-make-chips button[aria-pressed='true'] {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
}
.dt-note-make-chips button[aria-pressed='true'] svg {
  color: var(--primary);
}

/* ---- The notebook's composer ----------------------------------------- */
.dt-note-composer {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--background);
  box-shadow: 0 6px 20px -14px rgb(0 0 0 / 0.3);
  transition:
    border-color 140ms,
    box-shadow 140ms;
}
.dt-note-composer:focus-within {
  border-color: color-mix(in srgb, var(--foreground) 22%, var(--border));
}
.dt-note-composer[data-disabled] {
  opacity: 0.7;
}
.dt-note-composer-target {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin: 10px 12px 0;
  padding: 3px 4px 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}
.dt-note-composer-target button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
}
.dt-note-composer-target button:hover {
  background: color-mix(in srgb, var(--primary) 16%, transparent);
}
/* Another block the learner clicked: one tap asks about it in its own thread. */
.dt-note-composer-focus {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 8px 8px 0;
  padding: 2px;
  border-radius: 10px;
  background: var(--dt-note-anchor-bg);
  animation: dt-note-focus-in 180ms cubic-bezier(0.32, 0.72, 0, 1);
}
.dt-note-composer-focus > button:last-child {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: var(--muted-foreground);
}
.dt-note-composer-focus > button:last-child:hover {
  background: color-mix(in srgb, var(--foreground) 7%, transparent);
  color: var(--foreground);
}
.dt-note-composer-focus-ask {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 4px 6px 4px 8px;
  border-radius: 8px;
  color: var(--foreground);
  font-size: 12.5px;
  text-align: left;
}
.dt-note-composer-focus-ask svg {
  flex: none;
  color: var(--primary);
}
.dt-note-composer-focus-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-foreground);
}
.dt-note-composer-focus-cta {
  flex: none;
  color: var(--primary);
  font-weight: 500;
}
.dt-note-composer-focus-ask:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
@keyframes dt-note-focus-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.dt-note-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 220px;
  resize: none;
  padding: 12px 14px 4px;
  background: transparent;
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.55;
  outline: none;
}
.dt-note-composer textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.75;
}
.dt-note-composer-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px 8px;
}
.dt-note-composer-make {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--muted-foreground);
  font-size: 13px;
  transition:
    background-color 120ms,
    color 120ms;
}
.dt-note-composer-make:hover:not(:disabled),
.dt-note-composer-make[aria-expanded='true'] {
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  color: var(--foreground);
}
.dt-note-composer-make[aria-pressed='true'] {
  color: var(--primary);
}
.dt-note-composer-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  transition:
    opacity 120ms,
    transform 120ms,
    background-color 120ms;
}
.dt-note-composer-send:disabled {
  background: color-mix(in srgb, var(--foreground) 14%, transparent);
  color: var(--muted-foreground);
}
.dt-note-composer-send:active:not(:disabled) {
  transform: scale(0.92);
}
.dt-note-composer-send.is-stop {
  background: var(--foreground);
}