meal-planner/src/components/ConfigForm.css

188 lines
3.0 KiB
CSS

.config-form {
background-color: #f9f9f9;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
text-align: left;
}
/* Dark mode styles for config form */
body.dark-mode .config-form {
background-color: #1f1f1f;
color: #e0e0e0;
box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}
.form-section {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
}
body.dark-mode .form-section {
border-bottom-color: #333;
}
.form-section:last-child {
border-bottom: none;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"] {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
background-color: #fff;
color: #333;
}
body.dark-mode .form-group input[type="text"],
body.dark-mode .form-group input[type="number"],
body.dark-mode .form-group input[type="date"] {
background-color: #333;
color: #e0e0e0;
border-color: #555;
}
.list-with-input {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.list-with-input input {
flex-grow: 1;
}
.list-with-input button {
padding: 8px 15px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}
body.dark-mode .list-with-input button {
background-color: #388e3c;
}
.list-with-input button:hover {
background-color: #45a049;
}
body.dark-mode .list-with-input button:hover {
background-color: #2e7d32;
}
.tag-list {
list-style: none;
padding: 0;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.tag {
background-color: #e0e0e0;
padding: 5px 10px;
border-radius: 16px;
font-size: 14px;
display: flex;
align-items: center;
}
body.dark-mode .tag {
background-color: #555;
color: #e0e0e0;
}
.remove-button {
background: none;
border: none;
cursor: pointer;
font-size: 16px;
margin-left: 5px;
padding: 0 5px;
color: #333; /* Default color */
}
body.dark-mode .remove-button {
color: #e0e0e0; /* Dark mode color */
}
.button-group {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 20px;
}
.save-button,
.generate-button {
padding: 10px 20px;
border: none;
border-radius: 4px;
font-weight: bold;
cursor: pointer;
}
.save-button {
background-color: #f0f0f0;
color: #333;
}
body.dark-mode .save-button {
background-color: #555;
color: #e0e0e0;
}
.generate-button {
background-color: #4285F4;
color: white;
}
body.dark-mode .generate-button {
background-color: #61dafb;
color: #121212;
}
.save-button:hover {
background-color: #e0e0e0;
}
body.dark-mode .save-button:hover {
background-color: #777;
}
.generate-button:hover {
background-color: #3367d6;
}
body.dark-mode .generate-button:hover {
background-color: #a9e9ff;
}
@media (max-width: 768px) {
.button-group {
flex-direction: column;
}
}