File size: 3,650 Bytes
17037b0 28147a1 1f66b27 28147a1 1f66b27 28147a1 1f66b27 28147a1 1f66b27 28147a1 1f66b27 28147a1 17037b0 654165a 17037b0 312e591 1f66b27 312e591 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | // Chat / Attribution / Causal flow 共用的左栏 prompt 输入区样式
@use 'breakpoints' as *;
@use 'query-history-dropdown' as qh;
.input-section > .chat-raw-prompt-mode-row {
margin-bottom: 0;
}
// Prompt 区选项标签:panel 标题、勾选行同系(9pt + 勾选主次色)
.input-section {
span.options-label {
color: var(--text-muted);
}
.options-row:not(.attribution-exclude-prompt-patterns-header):not(.attribution-exclude-generated-patterns-header):not(.attribution-delete-prompt-patterns-header) {
label.options-label {
color: var(--text-primary);
}
label.options-label:has(> input[type='checkbox']:not(:checked)) {
color: var(--text-muted);
}
}
.chat-prompt-panel > .input-header > .options-label {
font-size: 9pt;
}
// System 在 input-header 内(非 options-row)
.chat-prompt-panel > .input-header label.chat-use-system-label.options-label {
font-size: 9pt;
input[type='checkbox'] {
margin: 0;
flex-shrink: 0;
}
&:has(> input[type='checkbox']:not(:checked)) {
color: var(--text-muted);
}
&:has(> input[type='checkbox']:checked) {
color: var(--text-primary);
}
}
}
.input-section .textarea-wrapper.chat-prompt-actions-row .chat-completion-options-row {
margin-bottom: 8px;
width: 100%;
}
.chat-prompt-panel + .chat-prompt-panel {
margin-top: 12px;
}
.chat-use-system-label {
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
margin: 0;
font: inherit;
color: inherit;
}
.text-metrics-chat #metric_usage .text-metrics-api-usage {
font-size: inherit;
line-height: inherit;
opacity: 1;
}
.chat-cached-history-bar {
margin-bottom: 12px;
}
.chat-cached-history-bar .chat-prompt-history-wrapper {
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-end;
}
.chat-prompt-history-wrapper {
position: relative;
width: 100%;
box-sizing: border-box;
}
.chat-prompt-history-wrapper .semantic-search-history-dropdown {
@include qh.query-history-dropdown;
}
.input-section .textarea-wrapper textarea {
height: 250px;
}
.input-section .textarea-wrapper textarea#chat_system_text,
.input-section .textarea-wrapper textarea#gen_attr_system_text {
height: 36px;
min-height: 36px;
}
.input-section .attribution-exclude-prompt-patterns-input {
width: 100%;
box-sizing: border-box;
padding: 4px 8px;
line-height: 1.35;
height: 2.6em;
min-height: 2.6em;
max-height: 12em;
resize: vertical;
border: 1px solid var(--input-border);
border-radius: 4px;
background: var(--input-bg);
color: var(--text-color);
}
@media (min-width: $breakpoint-tablet) {
.input-section .textarea-wrapper textarea {
font-size: calc(var(--font-size-base) + 2pt);
}
}
@media (max-width: $breakpoint-mobile) {
.input-section .textarea-wrapper textarea {
min-height: 80px;
max-height: none;
height: auto;
field-sizing: content;
}
}
// Teacher forcing(Chat / Causal flow 共用)
.teacher-forcing-row {
margin-top: 10px;
display: flex;
flex-direction: column;
gap: 0;
}
.input-section .textarea-wrapper textarea.teacher-forcing-text {
height: 90px;
min-height: 60px;
max-height: 250px;
}
.teacher-forcing-toggle-row label.options-label,
.teacher-forcing-block.chat-prompt-panel .stop-after-tf-row label.options-label {
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
user-select: none;
}
.teacher-forcing-block.chat-prompt-panel .stop-after-tf-row {
margin-top: 8px;
}
.input-section > .textarea-wrapper.chat-prompt-actions-row {
margin-top: 10px;
}
|