From 7fad136ff1ef114d48f1713b321922485e85d338 Mon Sep 17 00:00:00 2001 From: "web_103.2" Date: Fri, 23 Oct 2026 12:11:58 +0300 Subject: [PATCH] =?UTF-8?q?task=2017081=20|=20=D1=81=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D0=BB=20"=D0=92=D1=8B=D0=B1=D0=B5=D1=80=D0=B8=D1=82?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=BE=D0=B4=D1=85=D0=BE=D0=B4=D1=8F=D1=89=D0=B8?= =?UTF-8?q?=D0=B9=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=82"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../themes/hantico/assets/css/style.css | 233 ++++++++++++++++++ .../themes/hantico/assets/scss/_formats.scss | 232 +++++++++++++++++ .../themes/hantico/assets/scss/style.scss | 1 + .../themes/hantico/template-parts/formats.php | 54 ++++ .../hantico/templates/template-courier.php | 1 + 5 files changed, 521 insertions(+) create mode 100644 wp-content/themes/hantico/assets/scss/_formats.scss create mode 100644 wp-content/themes/hantico/template-parts/formats.php diff --git a/wp-content/themes/hantico/assets/css/style.css b/wp-content/themes/hantico/assets/css/style.css index 6032335..d129a90 100644 --- a/wp-content/themes/hantico/assets/css/style.css +++ b/wp-content/themes/hantico/assets/css/style.css @@ -8276,3 +8276,236 @@ h4 { transition: none; } } + +.work-formats { + --formats-heading: #172d38; + --formats-text: #595757; + --formats-border: #ededed; + --formats-accent: #ae001b; + box-sizing: border-box; + display: flex; + width: min(1280px, calc(100% - 80px)); + margin: var(--space-section) auto 0; + flex-direction: column; + gap: 60px; + color: var(--formats-heading); + font-family: "Onest", sans-serif; + -webkit-font-smoothing: antialiased; +} + +.work-formats *, +.work-formats *::before, +.work-formats *::after { + box-sizing: border-box; +} + +.work-formats__header { + display: flex; + flex-direction: column; + align-items: center; + gap: 40px; + text-align: center; +} + +.work-formats__title { + width: 964px; + max-width: 100%; + margin: 0; + font-size: 56px; + font-weight: 700; + line-height: 62px; + letter-spacing: -0.56px; +} + +.work-formats__description { + width: 100%; + margin: 0; + color: var(--formats-text); + font-size: 20px; + font-weight: 400; + line-height: 22px; + letter-spacing: -0.2px; +} + +.work-formats__groups { + display: flex; + flex-direction: column; + gap: 40px; +} + +.work-formats__group { + display: flex; + flex-direction: column; + gap: 24px; +} + +.work-formats__group-title { + margin: 0; + font-size: 26px; + font-weight: 600; + line-height: 29px; + letter-spacing: -0.26px; + text-align: center; +} + +.work-formats__links { + display: flex; + flex-wrap: wrap; + align-items: flex-start; + justify-content: center; + gap: 12px; + margin: 0; + padding: 0; + list-style: none; +} + +.work-formats__links > li { + max-width: 100%; +} + +.work-formats__link { + display: flex; + width: auto; + max-width: 100%; + min-height: 54px; + align-items: center; + gap: 8px; + padding: 16px 16px 16px 24px; + border-radius: 100px; + box-shadow: inset 0 0 0 1px var(--formats-border); + color: inherit; + font-size: 18px; + font-weight: 600; + line-height: 20px; + letter-spacing: -0.18px; + text-decoration: none; + overflow-wrap: anywhere; +} + +.work-formats__link:is(:hover, :focus-visible) { + background: #f5f5f9; + color: var(--formats-accent); +} + +.work-formats__link:focus-visible { + outline: 2px solid var(--formats-accent); + outline-offset: 4px; +} + +.work-formats__arrow { + display: flex; + align-items: center; + justify-content: center; + flex: 0 0 22px; + width: 22px; + height: 22px; + transition: transform 0.2s ease; +} + +.work-formats__arrow svg { + display: block; + width: 100%; + height: 100%; +} + +.work-formats__link { + transition: color 0.2s ease, background-color 0.2s ease; +} + +.work-formats__link:is(:hover, :focus-visible) .work-formats__arrow { + transform: translateX(3px); +} + +@media (prefers-reduced-motion: reduce) { + .work-formats__link, + .work-formats__arrow { + transition: none; + } + .work-formats__link:is(:hover, :focus-visible) .work-formats__arrow { + transform: none; + } +} + + + +@media (max-width: 1199px) { + .work-formats__title { + font-size: 44px; + line-height: 1.1; + letter-spacing: -0.01em; + } +} + +@media (max-width: 899px) { + .work-formats { + width: calc(100% - 48px); + gap: 40px; + } + + .work-formats__header { + gap: 24px; + } + + .work-formats__title { + font-size: 36px; + } +} + +@media (max-width: 600px) { + .work-formats { + width: calc(100% - 40px); + gap: 30px; + } + + .work-formats__header { + gap: 14px; + } + + .work-formats__title { + font-size: 24px; + line-height: 26px; + letter-spacing: -0.24px; + } + + .work-formats__description { + font-size: 14px; + line-height: 15px; + letter-spacing: -0.14px; + } + + .work-formats__groups { + gap: 30px; + } + + .work-formats__group { + gap: 16px; + } + + .work-formats__group-title { + font-size: 16px; + line-height: 18px; + letter-spacing: -0.16px; + } + + .work-formats__links { + gap: 4px; + } + + .work-formats__link { + min-height: 36px; + gap: 4px; + padding: 11px 11px 11px 16px; + font-size: 13px; + line-height: 14px; + letter-spacing: -0.13px; + } + + .work-formats__arrow { + flex-basis: 14px; + width: 14px; + height: 14px; + } + + + +} diff --git a/wp-content/themes/hantico/assets/scss/_formats.scss b/wp-content/themes/hantico/assets/scss/_formats.scss new file mode 100644 index 0000000..b252cd9 --- /dev/null +++ b/wp-content/themes/hantico/assets/scss/_formats.scss @@ -0,0 +1,232 @@ +.work-formats { + --formats-heading: #172d38; + --formats-text: #595757; + --formats-border: #ededed; + --formats-accent: #ae001b; + box-sizing: border-box; + display: flex; + width: min(1280px, calc(100% - 80px)); + margin: var(--space-section) auto 0; + flex-direction: column; + gap: 60px; + color: var(--formats-heading); + font-family: "Onest", sans-serif; + -webkit-font-smoothing: antialiased; +} + +.work-formats *, +.work-formats *::before, +.work-formats *::after { + box-sizing: border-box; +} + +.work-formats__header { + display: flex; + flex-direction: column; + align-items: center; + gap: 40px; + text-align: center; +} + +.work-formats__title { + width: 964px; + max-width: 100%; + margin: 0; + font-size: 56px; + font-weight: 700; + line-height: 62px; + letter-spacing: -0.56px; +} + +.work-formats__description { + width: 100%; + margin: 0; + color: var(--formats-text); + font-size: 20px; + font-weight: 400; + line-height: 22px; + letter-spacing: -0.2px; +} + +.work-formats__groups { + display: flex; + flex-direction: column; + gap: 40px; +} + +.work-formats__group { + display: flex; + flex-direction: column; + gap: 24px; +} + +.work-formats__group-title { + margin: 0; + font-size: 26px; + font-weight: 600; + line-height: 29px; + letter-spacing: -0.26px; + text-align: center; +} + +.work-formats__links { + display: flex; + flex-wrap: wrap; + align-items: flex-start; + justify-content: center; + gap: 12px; + margin: 0; + padding: 0; + list-style: none; +} + +.work-formats__links > li { + max-width: 100%; +} + +.work-formats__link { + display: flex; + width: auto; + max-width: 100%; + min-height: 54px; + align-items: center; + gap: 8px; + padding: 16px 16px 16px 24px; + border-radius: 100px; + box-shadow: inset 0 0 0 1px var(--formats-border); + color: inherit; + font-size: 18px; + font-weight: 600; + line-height: 20px; + letter-spacing: -0.18px; + text-decoration: none; + overflow-wrap: anywhere; +} + +.work-formats__link:is(:hover, :focus-visible) { + background: #f5f5f9; + color: var(--formats-accent); +} + +.work-formats__link:focus-visible { + outline: 2px solid var(--formats-accent); + outline-offset: 4px; +} + +.work-formats__arrow { + display: flex; + align-items: center; + justify-content: center; + flex: 0 0 22px; + width: 22px; + height: 22px; + transition: transform 0.2s ease; +} + +.work-formats__arrow svg { + display: block; + width: 100%; + height: 100%; +} + +.work-formats__link { + transition: color 0.2s ease, background-color 0.2s ease; +} + +.work-formats__link:is(:hover, :focus-visible) .work-formats__arrow { + transform: translateX(3px); +} + +@media (prefers-reduced-motion: reduce) { + .work-formats__link, + .work-formats__arrow { + transition: none; + } + .work-formats__link:is(:hover, :focus-visible) .work-formats__arrow { + transform: none; + } +} + + + +@media (max-width: 1199px) { + .work-formats__title { + font-size: 44px; + line-height: 1.1; + letter-spacing: -0.01em; + } +} + +@media (max-width: 899px) { + .work-formats { + width: calc(100% - 48px); + gap: 40px; + } + + .work-formats__header { + gap: 24px; + } + + .work-formats__title { + font-size: 36px; + } +} + +@media (max-width: 600px) { + .work-formats { + width: calc(100% - 40px); + gap: 30px; + } + + .work-formats__header { + gap: 14px; + } + + .work-formats__title { + font-size: 24px; + line-height: 26px; + letter-spacing: -0.24px; + } + + .work-formats__description { + font-size: 14px; + line-height: 15px; + letter-spacing: -0.14px; + } + + .work-formats__groups { + gap: 30px; + } + + .work-formats__group { + gap: 16px; + } + + .work-formats__group-title { + font-size: 16px; + line-height: 18px; + letter-spacing: -0.16px; + } + + .work-formats__links { + gap: 4px; + } + + .work-formats__link { + min-height: 36px; + gap: 4px; + padding: 11px 11px 11px 16px; + font-size: 13px; + line-height: 14px; + letter-spacing: -0.13px; + } + + .work-formats__arrow { + flex-basis: 14px; + width: 14px; + height: 14px; + } + + + +} diff --git a/wp-content/themes/hantico/assets/scss/style.scss b/wp-content/themes/hantico/assets/scss/style.scss index 3968b78..ad93736 100644 --- a/wp-content/themes/hantico/assets/scss/style.scss +++ b/wp-content/themes/hantico/assets/scss/style.scss @@ -2,6 +2,7 @@ @use "config" as *; @use "courier-services"; @use "delivery-orders"; +@use "formats"; *, *::before, diff --git a/wp-content/themes/hantico/template-parts/formats.php b/wp-content/themes/hantico/template-parts/formats.php new file mode 100644 index 0000000..2c6b2a7 --- /dev/null +++ b/wp-content/themes/hantico/template-parts/formats.php @@ -0,0 +1,54 @@ + +
aria-labelledby=""> + +
+ +

+ + +

+ +
+ + + +
+ $group) : ?> + + + +
+ +
diff --git a/wp-content/themes/hantico/templates/template-courier.php b/wp-content/themes/hantico/templates/template-courier.php index 055bcee..9bb18ac 100644 --- a/wp-content/themes/hantico/templates/template-courier.php +++ b/wp-content/themes/hantico/templates/template-courier.php @@ -17,6 +17,7 @@ Template Name: Курьерам +