suna/backend/agent/workspace/styles.css

174 lines
2.7 KiB
CSS
Raw Normal View History

2025-04-01 09:26:52 +08:00
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
2025-04-01 14:41:18 +08:00
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
2025-04-01 14:41:18 +08:00
background-color: #f5f5f5;
padding: 20px;
2025-04-01 09:26:52 +08:00
}
.container {
2025-04-01 14:41:18 +08:00
max-width: 800px;
margin: 0 auto;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
overflow: hidden;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
header {
background: linear-gradient(135deg, #6e8efb, #a777e3);
color: white;
padding: 30px 20px;
text-align: center;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
header h1 {
margin-bottom: 10px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
main {
padding: 20px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.card {
background-color: white;
2025-04-01 14:41:18 +08:00
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.card h2 {
margin-bottom: 15px;
color: #6e8efb;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
button {
background-color: #6e8efb;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
button:hover {
background-color: #5d7ce0;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.color-box {
height: 100px;
background-color: #f0f0f0;
margin-top: 15px;
border-radius: 4px;
transition: background-color 0.5s;
}
.counter-container {
2025-04-01 09:26:52 +08:00
display: flex;
align-items: center;
2025-04-01 14:41:18 +08:00
justify-content: center;
margin-top: 15px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
#counterValue {
font-size: 24px;
2025-04-01 14:41:18 +08:00
margin: 0 20px;
min-width: 40px;
text-align: center;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
/* Todo List Styles */
.todo-container {
margin-top: 15px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.todo-input-container {
display: flex;
margin-bottom: 15px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
#todoInput {
flex: 1;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px 0 0 4px;
font-size: 16px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
#addTodoBtn {
border-radius: 0 4px 4px 0;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.todo-list {
list-style-type: none;
padding: 0;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.todo-item {
2025-04-01 09:26:52 +08:00
display: flex;
2025-04-01 14:41:18 +08:00
align-items: center;
padding: 10px;
border-bottom: 1px solid #eee;
animation: fadeIn 0.3s ease-in;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.todo-item:last-child {
border-bottom: none;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.todo-text {
flex: 1;
margin-left: 10px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.todo-item.completed .todo-text {
text-decoration: line-through;
color: #888;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.delete-btn {
background-color: #ff6b6b;
margin-left: 10px;
padding: 4px 8px;
font-size: 14px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.delete-btn:hover {
background-color: #ff5252;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
footer {
text-align: center;
padding: 20px;
background-color: #f9f9f9;
color: #777;
font-size: 14px;
2025-04-01 10:36:26 +08:00
}
2025-04-01 14:41:18 +08:00
@media (max-width: 600px) {
.container {
border-radius: 0;
2025-04-01 10:36:26 +08:00
}
2025-04-01 14:41:18 +08:00
header {
padding: 20px 15px;
2025-04-01 09:26:52 +08:00
}
2025-04-01 14:41:18 +08:00
.card {
padding: 15px;
2025-04-01 09:26:52 +08:00
}
}