Spaces:
Sleeping
Sleeping
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | |
| } | |
| body { | |
| background-color: #f5f5f5; | |
| padding: 20px; | |
| } | |
| .container { | |
| max-width: 600px; | |
| margin: 0 auto; | |
| background-color: white; | |
| border-radius: 8px; | |
| box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); | |
| padding: 20px; | |
| } | |
| h1 { | |
| text-align: center; | |
| margin-bottom: 20px; | |
| color: #333; | |
| } | |
| .task-form { | |
| display: flex; | |
| margin-bottom: 20px; | |
| } | |
| .task-form input { | |
| flex: 1; | |
| padding: 10px; | |
| border: 1px solid #ddd; | |
| border-radius: 4px 0 0 4px; | |
| font-size: 16px; | |
| } | |
| .task-form button { | |
| padding: 10px 15px; | |
| background-color: #4CAF50; | |
| color: white; | |
| border: none; | |
| border-radius: 0 4px 4px 0; | |
| cursor: pointer; | |
| font-size: 16px; | |
| } | |
| .task-form button:hover { | |
| background-color: #45a049; | |
| } | |
| .task-list { | |
| list-style-type: none; | |
| } | |
| .task-list li { | |
| padding: 10px 15px; | |
| border-bottom: 1px solid #eee; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .task-list li:last-child { | |
| border-bottom: none; | |
| } | |
| .task-text { | |
| flex: 1; | |
| } | |
| .delete-btn { | |
| color: #f44336; | |
| text-decoration: none; | |
| font-size: 14px; | |
| } | |
| .delete-btn:hover { | |
| text-decoration: underline; | |
| } | |
| .empty-list { | |
| color: #999; | |
| text-align: center; | |
| font-style: italic; | |
| } | |