Initial FarmCal MVP
This commit is contained in:
113
static/styles.css
Normal file
113
static/styles.css
Normal file
@@ -0,0 +1,113 @@
|
||||
:root {
|
||||
--bg: #f2f5ef;
|
||||
--card: #ffffff;
|
||||
--text: #1f2a1d;
|
||||
--muted: #5d6a5a;
|
||||
--accent: #365f2c;
|
||||
--accent-2: #93b877;
|
||||
--danger: #9b2f2f;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Segoe UI", Tahoma, sans-serif;
|
||||
background: radial-gradient(circle at top, #e8f1df, var(--bg));
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.top {
|
||||
padding: 1.2rem 1rem;
|
||||
background: linear-gradient(90deg, #2f4f2a, #4d7a40);
|
||||
color: #fff;
|
||||
}
|
||||
.top h1 { margin: 0; }
|
||||
.top p { margin: .35rem 0 0; opacity: .9; }
|
||||
|
||||
.layout {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 1rem;
|
||||
padding: 1rem;
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--card);
|
||||
border: 1px solid #dbe6d5;
|
||||
border-radius: 12px;
|
||||
padding: 1rem;
|
||||
box-shadow: 0 8px 20px rgba(0,0,0,0.05);
|
||||
}
|
||||
.card h2 {
|
||||
margin-top: 0;
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: .8rem;
|
||||
grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
|
||||
}
|
||||
.full { grid-column: 1 / -1; }
|
||||
.mt { margin-top: .8rem; }
|
||||
|
||||
label {
|
||||
display: grid;
|
||||
gap: .35rem;
|
||||
font-weight: 600;
|
||||
color: var(--muted);
|
||||
}
|
||||
input, select, button {
|
||||
font: inherit;
|
||||
padding: .55rem .65rem;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #c9d8c2;
|
||||
}
|
||||
button {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
}
|
||||
button:hover { background: #2d5124; }
|
||||
|
||||
.tasks {
|
||||
margin: 0;
|
||||
padding-left: 1.1rem;
|
||||
}
|
||||
.tasks li { margin: .35rem 0; }
|
||||
|
||||
.table-wrap { overflow: auto; }
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
th, td {
|
||||
text-align: left;
|
||||
padding: .5rem;
|
||||
border-bottom: 1px solid #e2eadf;
|
||||
white-space: nowrap;
|
||||
}
|
||||
th {
|
||||
background: #eef5e8;
|
||||
color: #384534;
|
||||
}
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
right: 1rem;
|
||||
bottom: 1rem;
|
||||
padding: .7rem .9rem;
|
||||
border-radius: 8px;
|
||||
color: #fff;
|
||||
max-width: 380px;
|
||||
}
|
||||
.toast.error { background: var(--danger); }
|
||||
.toast.info { background: #2f6d7a; }
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.layout { grid-template-columns: 1fr; }
|
||||
}
|
||||
Reference in New Issue
Block a user