From 95eeea181c0ab5e25f807c8f8384d2f1cd769a3c Mon Sep 17 00:00:00 2001 From: ArtemB Date: Mon, 31 Jul 2023 17:00:54 +0300 Subject: [PATCH] 0.0.63 add fonts --- static/css/styles.css | 23 ++++++++++++++++------- static/js/user_profile.js | 2 +- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 099b7e4..169182e 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -6,7 +6,16 @@ } @font-face { font-family: Inter; - + src: + /*url("/static/fonts/inter/Inter-Black.ttf"),*/ + /*url("/static/fonts/inter/Inter-Bold.ttf"),*/ + /*url("/static/fonts/inter/Inter-ExtraBold.ttf"),*/ + /*url("/static/fonts/inter/Inter-ExtraLight.ttf"),*/ + /*url("/static/fonts/inter/Inter-Light.ttf"),*/ + url("/static/fonts/inter/Inter-Medium.ttf"), + url("/static/fonts/inter/Inter-Regular.ttf"), + url("/static/fonts/inter/Inter-SemiBold.ttf"), + url("/static/fonts/inter/Inter-Thin.ttf"); } /* Links */ @@ -1195,16 +1204,16 @@ input#id_cargo_type{ display: inline-block; } -#edit_route { +button#edit_route { display: block; height: 44px; - width: 285px; + width: 86%; background: #FF613A; color: #FFF; font-family: Inter; - font-size: 18px; + font-size: 16px; font-style: normal; - font-weight: 600; + font-weight: 500; text-decoration: none; line-height: 26px; border-radius: 10px; @@ -1228,13 +1237,13 @@ button.confirm_remove{ color: white; font-style: normal; font-weight: 600; + margin-right: 3px; } button.cancel_remove{ - height: 44px; - width: 45%; + width: 46%; background: #808080cc; border-radius: 10px; color: white; diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 89188a9..966e617 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -110,7 +110,7 @@ function confirmRemove(el) { let cancel_button = document.createElement('button') cancel_button.className = "cancel_remove"; cancel_button.innerText = "Отменить удаление"; - let place = btn.closest("#select-remove") + let place = btn.closest(".button_remove_route") place.insertBefore(cancel_button, btn.nextSibling); } btn.removeAttribute("id", "select-remove")