growing-guide / ui /static /css /styles.css
sp103107's picture
Upload 8 files
a1e0bad verified
Raw History Blame Contribute Delete
3.16 kB
/* Main Layout */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Search Section */
.search-section {
background: #f8f9fa;
padding: 20px;
border-radius: 12px;
margin-bottom: 30px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.search-bar {
display: flex;
gap: 10px;
margin-bottom: 15px;
}
.search-input {
flex: 1;
padding: 10px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 16px;
}
.search-button {
padding: 10px 20px;
background: #2E7D32;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
transition: background 0.3s;
}
.search-button:hover {
background: #1B5E20;
}
/* Filters */
.filters {
display: flex;
gap: 15px;
flex-wrap: wrap;
}
.filter-group {
flex: 1;
min-width: 200px;
}
.filter-label {
display: block;
margin-bottom: 5px;
color: #666;
}
.filter-select {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
/* Guide Cards */
.guides-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
margin-top: 30px;
}
.guide-card {
background: white;
border-radius: 12px;
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.3s;
}
.guide-card:hover {
transform: translateY(-5px);
}
.guide-header {
margin-bottom: 15px;
}
.strain-name {
font-size: 20px;
color: #2E7D32;
margin: 0 0 5px 0;
}
.difficulty {
display: inline-block;
padding: 4px 8px;
border-radius: 4px;
font-size: 14px;
margin-bottom: 10px;
}
.difficulty.easy { background: #E8F5E9; color: #2E7D32; }
.difficulty.medium { background: #FFF3E0; color: #EF6C00; }
.difficulty.hard { background: #FFEBEE; color: #C62828; }
.guide-details {
margin-bottom: 15px;
}
.detail-item {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
font-size: 14px;
}
.detail-label {
color: #666;
}
.guide-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #eee;
}
.view-button {
padding: 8px 16px;
background: #2E7D32;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
font-size: 14px;
}
.view-button:hover {
background: #1B5E20;
}
/* Modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: 1000;
}
.modal-content {
position: relative;
background: white;
width: 90%;
max-width: 800px;
margin: 50px auto;
padding: 30px;
border-radius: 12px;
max-height: 80vh;
overflow-y: auto;
}
.close-modal {
position: absolute;
top: 20px;
right: 20px;
font-size: 24px;
cursor: pointer;
color: #666;
}
/* Responsive Design */
@media (max-width: 768px) {
.guides-grid {
grid-template-columns: 1fr;
}
.filter-group {
min-width: 100%;
}
}