mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 19:29:26 -04:00
218 lines
4.0 KiB
SCSS
218 lines
4.0 KiB
SCSS
// The dialogs and pages for sowing seeds and planting out seedlings.
|
|
$sowing-line: #e6e6e6;
|
|
$sowing-muted: #666;
|
|
|
|
// The sow seeds dialog: settings on the left, what to sow on the right, so the
|
|
// packets get the room and nothing needs scrolling past them.
|
|
.sow-seeds {
|
|
.sow-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(260px, 340px) 1fr;
|
|
gap: 2rem;
|
|
align-items: start;
|
|
}
|
|
|
|
.sow-settings .step-legend,
|
|
.sow-settings legend {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.pill-choice {
|
|
padding: 0.25rem 1rem;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.sow-quantity {
|
|
max-width: 8rem;
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.sow-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
}
|
|
|
|
// The search over the seed packets: the box fills the row, with the expired
|
|
// checkbox beside it, and what is shown said quietly underneath.
|
|
.seed-search {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.5rem 1.5rem;
|
|
|
|
.seed-search-field {
|
|
flex: 1 1 18rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.seed-search-expired {
|
|
flex: none;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.crop-picker .seed-search-label {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.seed-search-hint {
|
|
margin: 0.5rem 0 0.75rem;
|
|
color: $sowing-muted;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
// A seed packet in the sow dialog: its photo, if it has one, beside what it is.
|
|
.seed-packets {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
|
|
gap: 0.75rem;
|
|
max-height: 55vh;
|
|
overflow-y: auto;
|
|
padding: 2px;
|
|
}
|
|
|
|
.seed-packet-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.5rem;
|
|
border: 1px solid $sowing-line;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
|
|
&:hover {
|
|
border-color: #43a047;
|
|
}
|
|
|
|
&.selected {
|
|
border: 2px solid #43a047;
|
|
background: #e8f5e9;
|
|
padding: calc(0.5rem - 1px);
|
|
}
|
|
}
|
|
|
|
.seed-packet-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.15rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.seed-packet-badges {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.seed-packet-photo {
|
|
flex: none;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 2px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
// A chosen crop in the sow dialog: its photo beside what it is and how it grows.
|
|
.crop-details {
|
|
display: grid;
|
|
grid-template-columns: minmax(160px, 260px) 1fr;
|
|
gap: 1.5rem;
|
|
margin-top: 1rem;
|
|
padding: 1rem;
|
|
border: 1px solid $sowing-line;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
|
|
.crop-details-photo {
|
|
width: 100%;
|
|
aspect-ratio: 4 / 3;
|
|
border-radius: 3px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.crop-details-name {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.crop-details-scientific {
|
|
margin: 0 0 0.5rem;
|
|
color: $sowing-muted;
|
|
font-style: italic;
|
|
}
|
|
|
|
.crop-details-facts {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: 0.25rem 1rem;
|
|
margin: 0 0 0.75rem;
|
|
|
|
dt {
|
|
color: $sowing-muted;
|
|
font-weight: 600;
|
|
}
|
|
|
|
dd {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
// A chosen seed packet drawn as a packet: crimped top, a window with the photo,
|
|
// and the crop's name on the paper.
|
|
.seed-packet-picture {
|
|
width: 220px;
|
|
margin: 1rem 0 0;
|
|
|
|
.seed-packet-crimp {
|
|
height: 14px;
|
|
border: 1px solid #b2935c;
|
|
border-bottom: 0;
|
|
border-radius: 4px 4px 0 0;
|
|
background:
|
|
repeating-linear-gradient(90deg, #d9c7a3 0 3px, #efe3c8 3px 6px);
|
|
}
|
|
|
|
.seed-packet-front {
|
|
padding: 0.75rem;
|
|
border: 1px solid #b2935c;
|
|
border-radius: 0 0 6px 6px;
|
|
background: #fbf5e6;
|
|
box-shadow: 1px 3px 3px 1px #cac1b3;
|
|
}
|
|
|
|
.seed-packet-window {
|
|
aspect-ratio: 4 / 3;
|
|
overflow: hidden;
|
|
border: 2px solid #57803c;
|
|
border-radius: 3px;
|
|
background: #dfe8d4;
|
|
|
|
img {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.seed-packet-label {
|
|
margin-top: 0.5rem;
|
|
color: #2e4a1f;
|
|
font-size: 1.35rem;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
text-align: center;
|
|
text-transform: capitalize;
|
|
}
|
|
}
|