Add taggit, ckeditor, Dockerfile and update CSS styles
This commit is contained in:
parent
0a2088e493
commit
1205123209
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends gcc libpq-dev && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["gunicorn", "OneCprogsite.wsgi:application", "--bind", "0.0.0.0:8000"]
|
||||
@ -6,3 +6,5 @@ psycopg2-binary==2.9.7
|
||||
django-bootstrap5==23.3
|
||||
django-extensions==3.2.3
|
||||
python-dotenv>=1.0.0
|
||||
django-taggit
|
||||
django_ckeditor_5
|
||||
@ -160,6 +160,14 @@
|
||||
|
||||
/* Адаптивность для мобильных устройств */
|
||||
@media (max-width: 768px) {
|
||||
.content-card .image-style-align-left,
|
||||
.content-card .image-style-align-right {
|
||||
float: none !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
.recall-content {
|
||||
flex-direction: column;
|
||||
gap: 1.5rem;
|
||||
@ -226,3 +234,21 @@
|
||||
background: linear-gradient(transparent, rgba(0,0,0,0.7));
|
||||
}
|
||||
}
|
||||
|
||||
.content-card img {
|
||||
max-width: 100% !important;
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.content-card figure.image {
|
||||
max-width: 100%;
|
||||
margin: 1rem auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content-card figure.image img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
@ -867,7 +867,25 @@ body {
|
||||
border: 1px solid var(--border-light);
|
||||
margin-bottom: 2rem;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
/* overflow: visible !important; */
|
||||
}
|
||||
|
||||
.content-card img {
|
||||
max-width: 100% !important;
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.content-card figure.image {
|
||||
max-width: 100%;
|
||||
margin: 1rem auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content-card figure.image img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.content-card::before {
|
||||
@ -1298,6 +1316,14 @@ body {
|
||||
.breadcrumbs {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.content-card .image-style-align-left,
|
||||
.content-card .image-style-align-right {
|
||||
float: none !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user