mirror of
https://github.com/hanzoai/insights-js.git
synced 2026-11-03 00:53:53 +00:00
435 lines
6.9 KiB
CSS
435 lines
6.9 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
background: white;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
width: 100%;
|
|
max-width: 500px;
|
|
padding: 30px;
|
|
}
|
|
|
|
h1 {
|
|
color: #333;
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
font-size: 28px;
|
|
}
|
|
|
|
.add-todo {
|
|
display: flex;
|
|
margin-bottom: 20px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.todo-input {
|
|
flex: 1;
|
|
padding: 12px;
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.todo-input:focus {
|
|
outline: none;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
.add-btn {
|
|
padding: 12px 24px;
|
|
background: #667eea;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.add-btn:hover {
|
|
background: #5a67d8;
|
|
}
|
|
|
|
.filters {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.filter-btn {
|
|
padding: 8px 16px;
|
|
background: #f5f5f5;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.filter-btn:hover {
|
|
background: #e0e0e0;
|
|
}
|
|
|
|
.filter-btn.active {
|
|
background: #667eea;
|
|
color: white;
|
|
border-color: #667eea;
|
|
}
|
|
|
|
.todo-list {
|
|
list-style: none;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.todo-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.todo-item:hover {
|
|
background: #f9f9f9;
|
|
}
|
|
|
|
.todo-checkbox {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-right: 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.todo-text {
|
|
flex: 1;
|
|
font-size: 16px;
|
|
color: #333;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.todo-text.completed {
|
|
text-decoration: line-through;
|
|
color: #999;
|
|
}
|
|
|
|
.delete-btn {
|
|
padding: 6px 12px;
|
|
background: #f44336;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.delete-btn:hover {
|
|
background: #d32f2f;
|
|
}
|
|
|
|
.stats {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-top: 15px;
|
|
border-top: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.remaining-count {
|
|
color: #666;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.clear-completed {
|
|
padding: 6px 12px;
|
|
background: #ff9800;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.clear-completed:hover {
|
|
background: #f57c00;
|
|
}
|
|
|
|
.clear-completed:disabled {
|
|
background: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Demo Controls Styles */
|
|
.demo-controls {
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 2px solid #e0e0e0;
|
|
}
|
|
|
|
.demo-controls h3 {
|
|
color: #333;
|
|
margin-bottom: 15px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.control-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.control-group label {
|
|
font-weight: bold;
|
|
color: #555;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.user-name-input {
|
|
padding: 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.control-group button {
|
|
padding: 8px 16px;
|
|
background: #2196F3;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.control-group button:hover {
|
|
background: #1976D2;
|
|
}
|
|
|
|
/* Additional styles for todo stats and demo controls */
|
|
.todo-stats {
|
|
margin-top: 20px;
|
|
padding: 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 6px;
|
|
border: 1px solid #e9ecef;
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 15px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.stat-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
font-size: 12px;
|
|
color: #666;
|
|
margin-bottom: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 8px;
|
|
background: #e0e0e0;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #667eea, #764ba2);
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.demo-note {
|
|
font-size: 14px;
|
|
color: #666;
|
|
margin-bottom: 20px;
|
|
padding: 10px;
|
|
background: #f0f0f0;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.control-section {
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.control-section h4 {
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.control-button {
|
|
padding: 8px 16px;
|
|
background: #2196F3;
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.control-button:hover {
|
|
background: #1976D2;
|
|
}
|
|
|
|
.control-button.error {
|
|
background: #f44336;
|
|
}
|
|
|
|
.control-button.error:hover {
|
|
background: #d32f2f;
|
|
}
|
|
|
|
.control-button.warning {
|
|
background: #ff9800;
|
|
}
|
|
|
|
.control-button.warning:hover {
|
|
background: #f57c00;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-group label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.control-input {
|
|
padding: 8px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
width: 200px;
|
|
}
|
|
|
|
.loading-message {
|
|
color: #2196F3;
|
|
font-style: italic;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.error-message {
|
|
color: #f44336;
|
|
font-weight: 500;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.state-summary {
|
|
background: #f8f9fa;
|
|
border: 1px solid #e9ecef;
|
|
border-radius: 4px;
|
|
padding: 15px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.state-summary pre {
|
|
font-size: 12px;
|
|
color: #333;
|
|
margin: 0;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
/* Home page styles */
|
|
.example-card {
|
|
background: white;
|
|
border: 2px solid #e0e0e0;
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
max-width: 300px;
|
|
text-align: center;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.example-card:hover {
|
|
border-color: #667eea;
|
|
box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.example-card h3 {
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.example-card p {
|
|
color: #666;
|
|
margin-bottom: 15px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.example-card ul {
|
|
font-size: 13px;
|
|
color: #555;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
.example-card ul li {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.example-button {
|
|
display: inline-block;
|
|
padding: 12px 24px;
|
|
background: #667eea;
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
transition: background 0.3s;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.example-button:hover {
|
|
background: #5a67d8;
|
|
text-decoration: none;
|
|
color: white;
|
|
} |