144 lines
2.3 KiB
CSS
144 lines
2.3 KiB
CSS
/* OpenRPC UI Styles */
|
|
|
|
.method-tree {
|
|
max-height: 600px;
|
|
overflow-y: auto;
|
|
border-right: 1px solid #dee2e6;
|
|
}
|
|
|
|
.method-item {
|
|
cursor: pointer;
|
|
padding: 8px 15px;
|
|
border-radius: 4px;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.method-item:hover {
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.method-item.active {
|
|
background-color: #e9ecef;
|
|
font-weight: bold;
|
|
border-left: 3px solid #0d6efd;
|
|
}
|
|
|
|
.param-card {
|
|
margin-bottom: 15px;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.result-container {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
margin-top: 20px;
|
|
padding: 15px;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 4px;
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.code-editor {
|
|
font-family: 'Courier New', Courier, monospace;
|
|
min-height: 200px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
white-space: pre;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
padding: 10px;
|
|
border: 1px solid #ced4da;
|
|
border-radius: 4px;
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.schema-table {
|
|
font-size: 0.9rem;
|
|
width: 100%;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.schema-table th {
|
|
font-weight: 600;
|
|
background-color: #f8f9fa;
|
|
}
|
|
|
|
.schema-required {
|
|
color: #dc3545;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.schema-optional {
|
|
color: #6c757d;
|
|
}
|
|
|
|
.method-description {
|
|
font-size: 0.9rem;
|
|
color: #6c757d;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.section-header {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
margin-top: 20px;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 5px;
|
|
border-bottom: 1px solid #dee2e6;
|
|
}
|
|
|
|
.example-container {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.example-header {
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.example-content {
|
|
background-color: #f8f9fa;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
/* Socket path input styling */
|
|
.socket-path-container {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.socket-path-label {
|
|
font-weight: 600;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
/* Execute button styling */
|
|
.execute-button {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Response styling */
|
|
.response-success {
|
|
border-left: 4px solid #28a745;
|
|
}
|
|
|
|
.response-error {
|
|
border-left: 4px solid #dc3545;
|
|
}
|
|
|
|
/* Loading indicator */
|
|
.loading-spinner {
|
|
display: inline-block;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
border: 0.2em solid currentColor;
|
|
border-right-color: transparent;
|
|
border-radius: 50%;
|
|
animation: spinner-border .75s linear infinite;
|
|
}
|
|
|
|
@keyframes spinner-border {
|
|
to { transform: rotate(360deg); }
|
|
} |