flare / flare-ui /src /app /dialogs /api-edit-dialog /api-edit-dialog.component.scss
ciyidogan's picture
Update flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.scss
548c527 verified
raw
history blame
4.33 kB
.tab-content {
padding: 24px 16px;
min-height: 400px;
}
.full-width {
width: 100%;
margin-bottom: 16px;
}
.form-section {
margin: 24px 0;
h4 {
margin-bottom: 16px;
color: rgba(0, 0, 0, 0.87);
}
.section-label {
display: block;
margin-bottom: 8px;
color: rgba(0, 0, 0, 0.87);
font-weight: 500;
}
}
.json-editor {
margin-bottom: 16px;
.json-textarea {
width: 100%;
font-family: 'Courier New', monospace;
font-size: 13px;
border: 1px solid #c0c0c0;
border-radius: 4px;
padding: 12px;
background-color: #f5f5f5;
resize: vertical;
&:focus {
outline: none;
border-color: #3f51b5;
background-color: #fff;
}
}
button {
margin-top: 8px;
}
}
.template-helpers {
margin-top: 16px;
.template-list {
padding: 16px;
display: flex;
flex-wrap: wrap;
gap: 8px;
mat-chip {
cursor: pointer;
&:hover {
background-color: #e3f2fd !important;
}
}
}
}
.retry-settings {
display: flex;
gap: 16px;
flex-wrap: wrap;
mat-form-field {
flex: 1;
min-width: 150px;
}
}
.headers-section {
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
h4 {
margin: 0;
}
}
.headers-list {
.header-row {
display: flex;
gap: 12px;
margin-bottom: 12px;
align-items: flex-start;
mat-form-field {
flex: 1;
&.header-value {
flex: 2;
}
}
button {
margin-top: 8px;
}
}
}
.empty-state {
text-align: center;
padding: 40px 20px;
color: rgba(0, 0, 0, 0.54);
mat-icon {
font-size: 48px;
width: 48px;
height: 48px;
margin-bottom: 16px;
}
p {
margin: 0;
}
}
.common-headers {
padding: 16px;
p {
margin: 8px 0;
font-size: 14px;
strong {
color: #3f51b5;
}
}
}
}
.auth-settings {
margin-top: 24px;
mat-divider {
margin: 24px 0;
}
h4 {
margin-bottom: 16px;
color: rgba(0, 0, 0, 0.87);
}
}
.test-section {
h4 {
margin-bottom: 16px;
}
p {
color: rgba(0, 0, 0, 0.54);
margin-bottom: 24px;
}
.test-info {
margin: 16px 0;
mat-chip-listbox {
mat-chip-option {
margin-right: 8px;
}
}
}
button {
margin-bottom: 24px;
}
.test-result {
margin-top: 24px;
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 16px;
background-color: #fafafa;
h4 {
margin-top: 0;
}
.result-status {
display: flex;
align-items: center;
gap: 12px;
padding: 12px;
border-radius: 4px;
margin-bottom: 16px;
&.success {
background-color: #e8f5e9;
color: #2e7d32;
mat-icon {
color: #2e7d32;
}
}
&.error {
background-color: #ffebee;
color: #c62828;
mat-icon {
color: #c62828;
}
}
.status-code,
.response-time {
margin-left: auto;
font-size: 14px;
}
}
.error-message {
display: flex;
align-items: center;
gap: 8px;
padding: 12px;
background-color: #ffebee;
color: #c62828;
border-radius: 4px;
margin-bottom: 16px;
mat-icon {
color: #c62828;
}
}
.response-section {
margin-top: 16px;
h5 {
margin-bottom: 8px;
color: rgba(0, 0, 0, 0.87);
}
pre {
background-color: #f5f5f5;
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 12px;
overflow-x: auto;
font-size: 12px;
margin: 0;
}
}
}
.test-note {
display: flex;
align-items: center;
gap: 8px;
margin-top: 24px;
padding: 12px;
background-color: #e3f2fd;
border-radius: 4px;
color: #1565c0;
mat-icon {
color: #1565c0;
}
p {
margin: 0;
color: #1565c0;
}
}
}
mat-dialog-content {
padding: 0;
max-width: 800px;
min-width: 600px;
max-height: 70vh;
overflow: hidden;
mat-tab-group {
height: 100%;
}
}
mat-dialog-actions {
padding: 16px 24px;
margin: 0;
}