Files
Francescos.Recipes.World/Francesco.Recipes.World/wwwroot/css/site.css
T
2025-05-13 14:52:16 +02:00

186 lines
3.0 KiB
CSS

html {
font-size: 14px;
}
@media (min-width: 768px) {
html {
font-size: 16px;
}
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px;
}
.instruction-item, .ingredient-item {
background-color: #f8f9fa;
padding: 15px;
margin-bottom: 10px;
border-radius: 4px;
}
.instruction-controls, .ingredient-controls {
display: flex;
align-items: center;
gap: 10px;
}
.instruction-media {
width: 80px;
height: 80px;
overflow: hidden;
margin-right: 10px;
}
.instruction-media img {
width: 100%;
height: 100%;
object-fit: cover;
}
.instruction-file {
max-width: 200px;
}
textarea.form-control {
min-height: 80px;
}
.btn-delete, .btn-move-up, .btn-move-down, .btn-save {
background: none;
border: none;
font-size: 1.2rem;
cursor: pointer;
}
.btn-delete {
color: #dc3545;
}
.btn-save {
color: #28a745;
}
.instruction-actions {
display: flex;
justify-content: flex-end;
margin-top: 5px;
}
.btn-add {
background-color: #007bff;
color: white;
border: none;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
margin-top: 10px;
}
/* Recipe Instructions Grid Layout */
.instructions-grid {
margin-top: 2rem;
margin-bottom: 2rem;
}
.instruction-row {
display: flex;
justify-content: space-between;
margin-bottom: 2.5rem;
flex-wrap: wrap;
}
.instruction-card {
width: calc(33.333% - 20px);
margin-bottom: 1.5rem;
}
@media (max-width: 992px) {
.instruction-card {
width: calc(50% - 15px);
}
}
@media (max-width: 576px) {
.instruction-card {
width: 100%;
}
}
.instruction-image {
position: relative;
width: 100%;
aspect-ratio: 1/1;
border: 1px solid #ddd;
border-radius: 4px;
overflow: hidden;
margin-bottom: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
background-color: #f8f9fa;
}
.instruction-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.placeholder-image {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
color: #aaa;
}
.placeholder-image i {
font-size: 2rem;
}
.step-number {
position: absolute;
bottom: 5px;
right: 10px;
background-color: rgba(0, 0, 0, 0.5);
color: white;
font-weight: bold;
padding: 3px 8px;
border-radius: 50%;
}
.instruction-text {
font-size: 0.9rem;
line-height: 1.4;
color: #333;
}
.recipe-instructions-section h3 {
margin-bottom: 1.5rem;
position: relative;
padding-bottom: 0.5rem;
}
.recipe-instructions-section h3:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 2px;
background-color: #007bff;
}