ref: master
css/tasks.css
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
#task-form { display: flex; flex-direction: column; } .error-message { color: #d4351c; font-size: 0.85rem; margin-top: 4px; display: none; } .error-message.visible { display: block; } input:invalid, textarea:invalid, select:invalid { border-color: #d4351c; outline: none; } input:valid, textarea:valid, select:valid { border-color: green; } .task-filters { display: flex; flex-direction: column; align-items: center; } .task-filters select { margin-left: 5px; } #task-summary { margin: 1rem 0px; } #task-list { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1rem; } #task-list ul { width: 100%; list-style: none; margin: 0; padding: 0; } #task-list ul li { background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); padding: 1rem; min-width: 300px; width: 100%; margin-bottom: 1rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; } #task-list ul li:hover { transform: translateY(-5px); box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); } #task-list ul li strong { font-size: 1.2rem; color: #343a40; margin-bottom: 0.5rem; } #task-list ul li p { margin: 0; font-size: 0.9rem; color: #495057; } #task-list ul li .remove-task { align-self: center; width: 100%; background-color: #e63946; color: #fff; padding: 0.5rem 1rem; font-size: 0.9rem; cursor: pointer; transition: background-color 0.2s ease; } #task-list ul li .remove-task:hover { background-color: #d62828; } #task-summary { background-color: #f1f3f5; border: 1px solid #b1b4b6; padding: 1rem; margin: 1rem 0; text-align: center; } #task-summary p { margin: 0.5rem 0; font-size: 0.9rem; color: #495057; } @media (min-width: 768px) { #task-list ul li .remove-task { width: 20%; } .task-filters { flex-direction: row; } } |