codeflash-internal/js/VSC-Extension/packages/sidebar-webview/src/styles/initForm.module.css
Sarthak Agarwal 761903c2a9
saga4 misc fixes (#2018)
- **misc fixes [VSC]**
- **misc lefthook**

# Pull Request Checklist

## Description
- [ ] **Description of PR**: Clear and concise description of what this
PR accomplishes
- [ ] **Breaking Changes**: Document any breaking changes (if
applicable)
- [ ] **Related Issues**: Link to any related issues or tickets

## Testing
- [ ] **Test cases Attached**: All relevant test cases have been
added/updated
- [ ] **Manual Testing**: Manual testing completed for the changes

## Monitoring & Debugging
- [ ] **Logging in place**: Appropriate logging has been added for
debugging user issues
- [ ] **Sentry will be able to catch errors**: Error handling ensures
Sentry can capture and report errors
- [ ] **Avoid Dev based/Prisma logging**: No development-only or
Prisma-specific logging in production code

## Configuration
- [ ] **Env variables newly added**: Any new environment variables are
documented in .env.example file or mentioned in description
---

## Additional Notes
<!-- Add any additional context, screenshots, or notes for reviewers
here -->
2025-11-14 20:23:58 -08:00

267 lines
5.1 KiB
CSS

.container {
animation: fadeIn 0.3s ease-in-out;
padding: 16px;
position: relative;
border-radius: 8px;
font-family: var(--vscode-font-family);
color: var(--vscode-foreground);
overflow: hidden;
width: 100%;
height: 100%;
}
.container::after {
content: "";
display: block;
position: absolute;
inset: 0;
z-index: -1;
background-color: var(--vscode-sideBar-background);
opacity: 0.6;
}
.form {
display: flex;
flex-direction: column;
gap: 20px;
height: 100%;
}
.title {
margin: 0 0 4px 0;
font-size: 18px;
font-weight: 600;
color: var(--vscode-foreground);
}
.contextInfo {
background: var(--vscode-input-background);
border: 1px solid var(--vscode-input-border);
border-radius: 4px;
padding: 12px;
margin: 8px 0 16px 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.contextItem {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
color: var(--vscode-descriptionForeground);
}
.contextItem code {
background: var(--vscode-textCodeBlock-background);
padding: 2px 6px;
border-radius: 3px;
font-family: var(--vscode-editor-font-family);
font-size: 11px;
color: var(--vscode-textPreformat-foreground);
}
.helpText {
font-size: 11px;
color: var(--vscode-descriptionForeground);
font-style: italic;
margin-top: 4px;
}
.helpText code {
background: var(--vscode-textCodeBlock-background);
padding: 2px 4px;
border-radius: 3px;
font-family: var(--vscode-editor-font-family);
font-size: 10px;
}
.actionHelp {
font-size: 11px;
color: var(--vscode-descriptionForeground);
text-align: center;
margin-top: 4px;
font-style: italic;
}
.bannerError {
padding: 1rem 0.5rem;
border-radius: 5px;
line-height: 2;
font-size: 0.8rem;
background-color: var(--vscode-input-background);
color: var(--vscode-descriptionForeground);
margin: 1rem 0;
max-width: 100%;
overflow-wrap: break-word;
word-break: break-word;
}
.bannerError .codicon {
vertical-align: middle;
position: relative;
top: -1px;
margin-right: 0.8rem;
font-size: 1rem;
}
.field {
display: flex;
flex-direction: column;
gap: 8px;
}
.label {
font-size: 13px;
font-weight: 500;
color: var(--vscode-foreground);
display: flex;
flex-direction: column;
gap: 4px;
}
.description {
font-size: 11px;
font-weight: 400;
color: var(--vscode-descriptionForeground);
font-style: italic;
}
.toggleContainer {
display: flex;
justify-content: flex-end;
}
.customInputContainer {
display: flex;
gap: 8px;
align-items: center;
}
.customInputContainer .input {
flex: 1;
}
.backButton {
background: var(--vscode-button-secondaryBackground);
color: var(--vscode-button-secondaryForeground);
border: 1px solid var(--vscode-button-border);
border-radius: 4px;
padding: 8px 12px;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
min-width: 40px;
height: 37px; /* Match input height */
}
.backButton:hover {
background: var(--vscode-button-secondaryHoverBackground);
}
.input {
background: var(--vscode-input-background);
color: var(--vscode-input-foreground);
border: 1px solid var(--vscode-input-border);
border-radius: 4px;
padding: 8px 12px;
font-size: 13px;
font-family: var(--vscode-font-family);
outline: none;
transition: border-color 0.2s ease;
}
.input:focus {
border-color: var(--vscode-focusBorder);
box-shadow: 0 0 0 1px var(--vscode-focusBorder);
outline: none;
}
.input::placeholder {
color: var(--vscode-input-placeholderForeground);
}
.submitButton {
background: var(--vscode-button-background);
color: var(--vscode-button-foreground);
flex: 1;
border: none;
border-radius: 4px;
padding: 10px 16px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease;
}
.submitButton:active {
transform: translateY(1px);
}
.submitButton:disabled {
cursor: not-allowed;
}
/* Error states */
.inputError {
border-color: var(--vscode-inputValidation-errorBorder) !important;
}
.inputError:focus {
border-color: var(--vscode-inputValidation-errorBorder) !important;
box-shadow: 0 0 0 1px var(--vscode-inputValidation-errorBorder) !important;
}
.errorMessage {
display: flex;
align-items: center;
gap: 6px;
margin-top: 4px;
font-size: 12px;
color: var(--vscode-inputValidation-errorForeground);
line-height: 1.3;
max-width: 100%;
overflow-wrap: break-word;
word-break: break-word;
}
.errorIcon {
color: var(--vscode-inputValidation-errorBorder);
vertical-align: middle;
position: relative;
top: -1px;
margin-right: 0.1rem;
font-size: 1rem;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.formActions {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
margin-top: auto;
}
.cancelButton {
background-color: var(--vscode-button-secondaryBackground);
color: var(--vscode-button-secondaryForeground);
flex: 1;
border: none;
border-radius: 4px;
padding: 10px 16px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.2s ease;
}