mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-01-16 08:21:55 +00:00
update command style
This commit is contained in:
parent
10524008b4
commit
906aa39f82
@ -209,7 +209,7 @@ const CommandsView = (
|
||||
{/* header */}
|
||||
<div className="infio-commands-header">
|
||||
<div className="infio-commands-new">
|
||||
<h2 className="infio-commands-header-name">Create Quick Command</h2>
|
||||
<h2 className="infio-commands-header-title">Create Quick Command</h2>
|
||||
<div className="infio-commands-label">Name</div>
|
||||
<input
|
||||
type="text"
|
||||
|
||||
74
styles.css
74
styles.css
@ -234,13 +234,13 @@
|
||||
/* 为后续问题添加特殊样式 */
|
||||
.infio-markdown.infio-followup-question {
|
||||
margin-top: 8px;
|
||||
color: #e9730f; /* 橙色 */
|
||||
color: var(--text-accent-hover); /* 替换原来的 #e9730f 橙色 */
|
||||
font-weight: 500; /* 稍微加粗 */
|
||||
}
|
||||
|
||||
.infio-markdown.infio-attempt-completion {
|
||||
margin-top: 8px;
|
||||
color: #008000; /* 绿色 */
|
||||
color: var(--color-green); /* 替换原来的 #008000 绿色 */
|
||||
font-weight: 500; /* 稍微加粗 */
|
||||
}
|
||||
|
||||
@ -1862,7 +1862,7 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
|
||||
.infio-chat-code-block-status-button {
|
||||
color: #008000;
|
||||
color: var(--color-green); /* 替换原来的 #008000 */
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 4px 8px;
|
||||
@ -1882,18 +1882,17 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
|
||||
.infio-commands-container {
|
||||
/* background-color: #1e1e1e; */
|
||||
color: var(--text-normal);
|
||||
border-radius: var(--radius-m);
|
||||
padding: var(--size-4-3);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: var(--shadow-s);
|
||||
height: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.infio-commands-header {
|
||||
padding-bottom: var(--size-4-2);
|
||||
border-bottom: 1px solid #333;
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
margin-bottom: var(--size-4-2);
|
||||
}
|
||||
|
||||
@ -1918,14 +1917,14 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
|
||||
.infio-commands-hint {
|
||||
color: #999;
|
||||
color: var(--text-muted);
|
||||
font-size: var(--font-ui-smaller);
|
||||
margin-top: var(--size-2-1);
|
||||
}
|
||||
|
||||
.infio-commands-input {
|
||||
background-color: #333 !important;
|
||||
border: none;
|
||||
background-color: var(--background-primary) !important;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: var(--radius-s);
|
||||
color: var(--text-normal);
|
||||
padding: var(--size-4-2);
|
||||
@ -1936,8 +1935,8 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
|
||||
.infio-commands-textarea {
|
||||
background-color: #333 !important;
|
||||
border: none;
|
||||
background-color: var(--background-primary) !important;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: var(--radius-s);
|
||||
color: var(--text-normal);
|
||||
padding: var(--size-4-2);
|
||||
@ -1953,9 +1952,9 @@ button.infio-chat-input-model-select {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--size-2-2);
|
||||
background-color: transparent;
|
||||
color: var(--text-accent);
|
||||
border: 1px solid #555;
|
||||
background-color: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
border: none;
|
||||
border-radius: var(--radius-s);
|
||||
padding: var(--size-2-3) var(--size-4-3);
|
||||
cursor: pointer;
|
||||
@ -1965,17 +1964,17 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
|
||||
.infio-commands-add-btn:disabled {
|
||||
background-color: #444;
|
||||
color: #777;
|
||||
background-color: var(--background-modifier-form-field);
|
||||
color: var(--text-faint);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.infio-commands-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #333 !important;
|
||||
border: 1px solid #444;
|
||||
border-radius: 6px;
|
||||
background-color: var(--background-primary) !important;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: var(--radius-s);
|
||||
padding: 6px 12px;
|
||||
margin-bottom: var(--size-4-3);
|
||||
transition: all 0.2s ease;
|
||||
@ -1984,11 +1983,11 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
|
||||
.infio-commands-search:focus-within {
|
||||
border-color: #666;
|
||||
border-color: var(--background-modifier-border-focus);
|
||||
}
|
||||
|
||||
.infio-commands-search-icon {
|
||||
color: #888;
|
||||
color: var(--text-muted);
|
||||
margin-right: 8px;
|
||||
opacity: 0.8;
|
||||
}
|
||||
@ -1996,7 +1995,7 @@ button.infio-chat-input-model-select {
|
||||
.infio-commands-search-input {
|
||||
background-color: transparent !important;
|
||||
border: none !important;
|
||||
color: #ddd;
|
||||
color: var(--text-normal);
|
||||
padding: 4px 0;
|
||||
font-size: 14px;
|
||||
width: 100%;
|
||||
@ -2009,14 +2008,9 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
}
|
||||
|
||||
.infio-commands-search-input::placeholder {
|
||||
color: #888;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.infio-commands-search-input::placeholder {
|
||||
color: var(--text-faint);
|
||||
opacity: 0.7;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.infio-commands-list {
|
||||
@ -2033,10 +2027,11 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
|
||||
.infio-commands-item {
|
||||
background-color: #2a2a2a;
|
||||
background-color: var(--background-primary);
|
||||
border-radius: var(--radius-s);
|
||||
padding: var(--size-4-2);
|
||||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: var(--shadow-s);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.infio-commands-name {
|
||||
@ -2048,7 +2043,7 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
|
||||
.infio-commands-content {
|
||||
color: var(--text-muted);
|
||||
color: var(--text-normal);
|
||||
margin-bottom: var(--size-4-2);
|
||||
font-size: var(--font-ui-small);
|
||||
white-space: pre-wrap;
|
||||
@ -2077,10 +2072,10 @@ button.infio-chat-input-model-select {
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
color: var(--text-muted);
|
||||
padding: 0 !important; /* 确保没有内边距 */
|
||||
margin: 0 !important; /* 确保没有外边距 */
|
||||
width: 24px !important; /* 限制宽度 */
|
||||
height: 24px !important; /* 限制高度 */
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
width: 24px !important;
|
||||
height: 24px !important;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--background-modifier-hover) !important;
|
||||
@ -2094,8 +2089,8 @@ button.infio-chat-input-model-select {
|
||||
}
|
||||
|
||||
.infio-commands-edit-name {
|
||||
background-color: #333 !important;
|
||||
border: none;
|
||||
background-color: var(--background-primary) !important;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: var(--radius-s);
|
||||
color: var(--text-normal);
|
||||
padding: var(--size-4-2);
|
||||
@ -2123,7 +2118,7 @@ button.infio-chat-input-model-select {
|
||||
|
||||
.infio-commands-section {
|
||||
margin-bottom: var(--size-4-3);
|
||||
border-bottom: 1px solid #333;
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
padding-bottom: var(--size-4-3);
|
||||
}
|
||||
|
||||
@ -2143,7 +2138,8 @@ button.infio-chat-input-model-select {
|
||||
.infio-commands-location-option {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background-color: #2a2a2a;
|
||||
background-color: var(--background-primary);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: var(--radius-s);
|
||||
padding: var(--size-4-2);
|
||||
width: 50%;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user