Untitled
unknown
plain_text
13 days ago
2.4 kB
2
Indexable
Never
/* Variables */ :root { --primary-color: #3498db; --accent-color: #2ecc71; --error-color: #e74c3c; --text-color: #333; --background-color: #f9f9f9; --card-bg: #ffffff; --font-family: 'Poppins', sans-serif; } /* Global Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-family); background-color: var(--background-color); color: var(--text-color); line-height: 1.6; } header { background-color: var(--primary-color); padding: 1rem; color: #fff; text-align: center; } .logo { font-size: 1.8rem; font-weight: bold; } main { padding: 2rem; } .todo-container { max-width: 600px; margin: 0 auto; background-color: var(--card-bg); padding: 2rem; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } h1 { text-align: center; margin-bottom: 1.5rem; color: var(--primary-color); } form { display: flex; flex-direction: column; gap: 1rem; } .input-group { display: flex; } input { flex: 1; padding: 0.8rem; border: 2px solid var(--primary-color); border-radius: 5px 0 0 5px; font-size: 1rem; outline: none; } button { padding: 0.8rem 1rem; background-color: var(--accent-color); color: white; border: none; border-radius: 0 5px 5px 0; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease; } button:hover { background-color: #27ae60; } #error-message { color: var(--error-color); font-size: 0.9rem; text-align: center; } .task-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; } .task-card { background-color: var(--card-bg); padding: 1rem; border-left: 5px solid var(--primary-color); border-radius: 5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); display: flex; justify-content: space-between; align-items: center; } .task-card p { margin: 0; flex: 1; padding-right: 1rem; } .task-card button { background-color: var(--error-color); color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 5px; cursor: pointer; } .task-card button:hover { background-color: #c0392b; } footer { text-align: center; margin-top: 2rem; padding: 1rem; background-color: var(--primary-color); color: white; }
Leave a Comment