From a31f9287b33a372d0bf79326efaebd5af55e4552 Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Wed, 25 Dec 2024 08:51:59 +0700 Subject: [PATCH] fix video crop, add margin in services --- app/cybercode/settings.py | 2 +- app/static/cybercode/styles/style.css | 10 +++++----- app/templates/index.html | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/cybercode/settings.py b/app/cybercode/settings.py index e5d7291..f75df8f 100644 --- a/app/cybercode/settings.py +++ b/app/cybercode/settings.py @@ -95,7 +95,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' # AUTH_USER_MODEL = 'users.User' LOGIN_URL = '/users/login' -APP_VERSION = '1.0.1.1' +APP_VERSION = '1.0.1.2' MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') CSRF_TRUSTED_ORIGINS = ["https://cybercode.pro", "http://cybercode.pro"] diff --git a/app/static/cybercode/styles/style.css b/app/static/cybercode/styles/style.css index 6fb483b..70374e7 100644 --- a/app/static/cybercode/styles/style.css +++ b/app/static/cybercode/styles/style.css @@ -437,11 +437,11 @@ article p a { .page-video .video { position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - min-width: 100%; - min-height: 100%; + left: 0; + top: 0; + width: 100%; + height: 100%; + object-fit: fill; } .content-wrapper { diff --git a/app/templates/index.html b/app/templates/index.html index d49fa1d..2292005 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -55,7 +55,7 @@

Наши услуги

{#
#} -
+