diff --git a/css/style.css b/css/style.css index 2feb820..d42bfec 100755 --- a/css/style.css +++ b/css/style.css @@ -28,10 +28,12 @@ button { border: 0px; color: #888; font-size: 15px; - width: 60px; + width: auto; margin: 10px 0 0; font-family: Lato, sans-serif; cursor: pointer; + transition: color 0.2s ease; + padding: 0 10px; } button:hover { color: #333; @@ -117,4 +119,99 @@ ul li.editMode input[type=text] { ul li.editMode label { display:none; +} + +/* Stats and Filters */ +.stats { + display: flex; + justify-content: space-between; + align-items: center; + margin: 20px 0; + padding: 10px; + background: #f5f5f5; + border-radius: 6px; + font-size: 14px; + color: #666; +} + +#task-count { + font-weight: 300; +} + +.clear-completed { + background: #fff; + border: 1px solid #ddd; + border-radius: 4px; + padding: 5px 10px; + font-size: 13px; + color: #888; + cursor: pointer; + transition: all 0.2s ease; +} + +.clear-completed:hover { + background: #0FC57C; + color: #fff; + border-color: #0FC57C; +} + +.filters { + display: flex; + justify-content: center; + gap: 10px; + margin: 20px 0; + padding: 10px; + background: #f5f5f5; + border-radius: 6px; +} + +.filter-btn { + background: #fff; + border: 1px solid #ddd; + border-radius: 4px; + padding: 8px 16px; + font-size: 14px; + font-weight: 500; + color: #888; + cursor: pointer; + transition: all 0.2s ease; +} + +.filter-btn:hover { + background: #0FC57C; + color: #fff; + border-color: #0FC57C; +} + +.filter-btn.active { + background: #0FC57C; + color: #fff; + border-color: #0FC57C; +} + +/* Responsive Design */ +@media (max-width: 480px) { + .container { + width: 95%; + margin: 50px auto 0; + } + + .stats { + flex-direction: column; + gap: 10px; + align-items: stretch; + } + + .filters { + flex-direction: column; + gap: 8px; + } + + .filter-btn { + padding: 10px; + } + + input#new-task { + width: calc(100% - 80px); + } } \ No newline at end of file diff --git a/index.html b/index.html index 66f032d..b0a82c8 100755 --- a/index.html +++ b/index.html @@ -11,6 +11,19 @@

+ +
+ 0 tasks · 0 completed + +
+ + +
+ + + +
+

Todo