
- Frontend: HTML/CSS/JS demos and test pages - Backend: Go API with SQLite database - Features: AJAX calls, items management, random number generation - Database: SQLite with items table for CRUD operations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
266 lines
No EOL
3.9 KiB
CSS
266 lines
No EOL
3.9 KiB
CSS
/* Base Layout */
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
max-width: 700px;
|
|
margin: 50px auto;
|
|
padding: 20px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Typography */
|
|
h1 {
|
|
color: #333;
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
h3 {
|
|
color: #333;
|
|
margin-top: 0;
|
|
}
|
|
|
|
p {
|
|
color: #333;
|
|
}
|
|
|
|
/* Buttons */
|
|
button {
|
|
font-size: 16px;
|
|
padding: 10px 20px;
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
button:disabled {
|
|
background-color: #6c757d;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Large button variant for special cases */
|
|
.btn-large {
|
|
font-size: 18px;
|
|
padding: 12px 24px;
|
|
}
|
|
|
|
/* Sections */
|
|
.section {
|
|
margin: 30px 0;
|
|
padding: 20px;
|
|
border: 2px solid #ddd;
|
|
border-radius: 8px;
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
/* Feature List (for index page) */
|
|
.feature-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.feature-list li {
|
|
margin: 15px 0;
|
|
padding: 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
.feature-list a {
|
|
text-decoration: none;
|
|
color: #007bff;
|
|
font-weight: bold;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.feature-list a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.description {
|
|
color: #666;
|
|
margin-top: 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Response Fields */
|
|
.response-field {
|
|
min-height: 50px;
|
|
padding: 15px;
|
|
border: 2px solid #ccc;
|
|
border-radius: 4px;
|
|
background-color: white;
|
|
margin: 15px 0;
|
|
font-size: 16px;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
/* Special display for large numbers */
|
|
.display-large {
|
|
font-size: 48px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin: 30px 0;
|
|
padding: 20px;
|
|
border: 2px solid #ddd;
|
|
border-radius: 8px;
|
|
background-color: #f9f9f9;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Centered response fields */
|
|
.response-field.centered {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-group {
|
|
margin: 15px 0;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
input[type="text"] {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 2px solid #ccc;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Status Classes */
|
|
.loading {
|
|
color: #666;
|
|
font-style: italic;
|
|
}
|
|
|
|
.response {
|
|
color: #007bff;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.response.large {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.error {
|
|
color: #dc3545;
|
|
}
|
|
|
|
/* Navigation */
|
|
.back-link {
|
|
margin-top: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.back-link a {
|
|
color: #666;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.back-link a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Utility Classes */
|
|
.info {
|
|
color: #666;
|
|
font-size: 14px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.timestamp {
|
|
color: #999;
|
|
font-size: 12px;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
/* Items Management Styles */
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.items-container {
|
|
min-height: 100px;
|
|
}
|
|
|
|
.item-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 15px;
|
|
margin: 8px 0;
|
|
border: 1px solid #ddd;
|
|
border-radius: 6px;
|
|
background-color: white;
|
|
}
|
|
|
|
.item-name {
|
|
flex-grow: 1;
|
|
font-size: 16px;
|
|
color: #333;
|
|
}
|
|
|
|
.item-id {
|
|
color: #666;
|
|
font-size: 14px;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.delete-btn {
|
|
background-color: #dc3545;
|
|
padding: 6px 12px;
|
|
font-size: 14px;
|
|
margin: 0;
|
|
}
|
|
|
|
.delete-btn:hover {
|
|
background-color: #c82333;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.form-group input[type="text"] {
|
|
flex-grow: 1;
|
|
width: auto;
|
|
}
|
|
|
|
.empty {
|
|
color: #666;
|
|
font-style: italic;
|
|
text-align: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.back-button {
|
|
color: #666;
|
|
text-decoration: none;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.back-button:hover {
|
|
text-decoration: underline;
|
|
} |