kibodo
Version:
Keyboard-only frontend framework
289 lines (254 loc) • 5.04 kB
CSS
/* Terminal-style CSS for framework */
/* Global font */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Courier Prime', 'Courier New', 'Monaco', 'Menlo', monospace;
}
body {
margin: 0;
padding: 20px;
background-color: #000000;
color: #00ff00;
font-family: 'Courier New', monospace;
font-size: 14px;
line-height: 1.3;
cursor: none;
}
/* Hide cursor globally */
* {
cursor: none ;
}
/* Main app container */
#app {
width: 70%;
margin: 0 auto;
min-width: 600px;
}
/* View container */
.view {
padding: 20px;
background-color: #000000;
}
/* Title styling */
.title {
color: #00ff00;
font-size: 24px;
font-weight: bold;
margin-bottom: 20px;
text-align: center;
border-bottom: 2px solid #00ff00;
padding-bottom: 10px;
}
/* Menu styling */
.menu {
margin: 20px 0;
}
.menu-item {
padding: 6px 12px;
margin: 2px 0;
border: 1px solid transparent;
border-radius: 3px;
transition: all 0.2s ease;
color: #00ff00;
background-color: transparent;
}
.menu-item.selected {
background-color: #00ff00;
color: #000000;
font-weight: bold;
box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}
/* Form styling */
.form {
margin: 20px 0;
}
/* Form styles */
.form-group {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
margin: 4px 0;
border: 1px solid #0f0;
background-color: #000000;
transition: all 0.2s ease;
}
.form-group.selected {
background: #0f0;
color: #000;
}
.form-group.readonly {
opacity: 0.6;
color: #666;
}
.form-group.readonly.selected {
background: #333;
color: #999;
}
.form-group label {
font-weight: bold;
min-width: 120px;
color: #00ff00;
}
/* Field value display */
.field-value {
flex: 1;
text-align: right;
padding-left: 15px;
color: #00ff00;
font-weight: bold;
}
.form-group.selected .field-value {
color: #000000;
font-weight: bold;
}
.form-group.selected label {
color: #000000;
}
/* Button styling */
.btn {
margin-top: 16px;
padding: 8px 16px;
background: #000;
color: #0f0;
border: 1px solid #0f0;
cursor: pointer;
font-family: 'Courier New', monospace;
font-size: 12px;
transition: all 0.2s;
border-radius: 2px;
}
.btn.selected {
background: #0f0;
color: #000;
border: 1px solid #0f0;
font-weight: bold;
}
/* Text input for editing */
.text-input {
width: 100%;
padding: 8px;
background-color: #1a1a1a;
border: 1px solid #00ff00;
color: #00ff00;
font-family: 'Courier New', monospace;
font-size: 14px;
outline: none;
}
.text-input:focus {
border-color: #00ff00;
box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}
/* Text edit container */
.text-edit-container {
margin: 20px 0;
padding: 15px;
border: 1px solid #00ff00;
border-radius: 3px;
background-color: #1a1a1a;
}
/* Result container for API responses */
.result-container {
margin: 15px 0;
border: 1px solid #00ff00;
background-color: #000000;
padding: 10px;
}
.result-container h3 {
color: #00ff00;
margin-top: 0;
margin-bottom: 8px;
}
.result-container pre {
background-color: #000000;
border: 1px solid #00ff00;
padding: 8px;
margin: 8px 0;
overflow: auto;
max-height: 250px;
color: #00ff00;
font-family: monospace;
font-size: 11px;
line-height: 1.3;
}
/* Terminal table */
.table {
margin: 20px 0;
}
.terminal-table {
width: 100%;
border-collapse: collapse;
font-family: 'Courier New', monospace;
font-size: 12px;
color: #00ff00;
background-color: #000000;
}
.terminal-table th {
background-color: #1a1a1a;
color: #00ff00;
font-weight: bold;
padding: 6px 8px;
border: 1px solid #00ff00;
text-align: left;
position: relative;
}
.terminal-table td {
padding: 4px 8px;
border: 1px solid #00ff00;
background-color: #000000;
transition: all 0.2s ease;
}
.terminal-table tr {
transition: all 0.2s ease;
}
.terminal-table tr.selected {
background-color: #00ff00;
color: #000000;
font-weight: bold;
box-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}
.terminal-table tr.selected td {
background-color: #00ff00;
color: #000000;
font-weight: bold;
}
.table-empty {
text-align: center;
padding: 20px;
color: #00ff00;
font-style: italic;
border: 1px solid #00ff00;
background-color: #1a1a1a;
}
.error-container {
margin: 20px 0;
padding: 15px;
border: 1px solid #ff0000;
border-radius: 3px;
background-color: #1a1a1a;
}
.error-container legend {
color: #ff0000;
font-weight: bold;
}
.error-container pre {
color: #ff0000;
}
.help {
color: #00ff00;
font-size: 12px;
font-weight: bold;
margin-top: 20px;
padding: 10px;
border: 1px solid #00ff00;
background-color: #000000;
position: fixed;
bottom: 0;
left: 0;
right: 0;
text-align: center;
}