示例工程 33-clipboard-dnd-fs

33-clipboard-dnd-fs/app/src/styles/app.css

css · 3.4 KB

.app {
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand h1 {
  margin: 0 8px 0 0;
  font-size: 15px;
}

.pill {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.actions {
  display: flex;
  gap: 6px;
}

.actions.wrap {
  flex-wrap: wrap;
  margin-top: 10px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  padding: 16px 20px 24px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.pad {
  padding: 14px;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card h2 {
  margin: 0;
  font-size: 13px;
}

.input,
.area {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
}

.input:focus {
  border-color: var(--primary);
}

.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  min-height: 18px;
}

.format {
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 10px;
}

.clip-preview {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--panel);
  font-size: 11px;
}

.clip-text {
  margin: 4px 0;
  color: var(--text);
  font-family: var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dropzone {
  padding: 22px 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.drop-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-height: 18px;
  font-size: 11px;
}

.drop-text {
  width: 100%;
  margin-top: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.file-preview {
  margin-top: 12px;
  font-size: 12px;
}

.file-preview strong {
  display: block;
  margin-bottom: 2px;
}

.error {
  color: var(--danger);
  font-size: 11px;
  min-height: 14px;
}

.content {
  max-height: 180px;
  margin: 8px 0 0;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.recent {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
}

.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.recent-item strong {
  display: block;
  font-size: 12px;
}

.ok {
  color: #166534;
}

.missing {
  color: var(--danger);
}

.notes {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.status {
  margin: 0;
}

.small {
  font-size: 11px;
}

.muted {
  color: var(--muted);
}