From 2788783abfe89d14878d3081487ef0481655cdbe Mon Sep 17 00:00:00 2001 From: monochromer Date: Mon, 13 Jan 2025 17:48:34 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D1=8F=D0=B5=D1=82=20?= =?UTF-8?q?=D0=BB=D0=B8=D1=88=D0=BD=D0=B8=D0=B9=20=D0=BA=D0=BE=D0=B4=20?= =?UTF-8?q?=D1=81=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=D0=BC=D0=B8=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B5=D1=80=D0=B5=D0=BD?= =?UTF-8?q?=D1=86=D0=B8=D0=B8=20(#382)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Удаляет лишний код из шаблонов * Удаляет лишний код из стилей * Удаляет svg-иконку `shout` --- src/images/shout.svg | 1 - src/includes/conference-link.njk | 8 ---- src/layouts/article.njk | 3 -- src/pages/articles/index.njk | 4 -- src/styles/blocks/conference-link.css | 57 --------------------------- src/styles/blocks/main.css | 10 ----- src/styles/blocks/notice.css | 23 ----------- src/styles/styles.css | 1 - 8 files changed, 107 deletions(-) delete mode 100644 src/images/shout.svg delete mode 100644 src/includes/conference-link.njk delete mode 100644 src/styles/blocks/conference-link.css diff --git a/src/images/shout.svg b/src/images/shout.svg deleted file mode 100644 index 49f0702bb..000000000 --- a/src/images/shout.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/includes/conference-link.njk b/src/includes/conference-link.njk deleted file mode 100644 index c660265ec..000000000 --- a/src/includes/conference-link.njk +++ /dev/null @@ -1,8 +0,0 @@ -{%- for conference in collections.conference -%} - - - {{ conference.data.title }} - -{%- endfor -%} diff --git a/src/layouts/article.njk b/src/layouts/article.njk index 18a1e9d45..5b4884491 100644 --- a/src/layouts/article.njk +++ b/src/layouts/article.njk @@ -146,7 +146,4 @@ layout: page.njk {%- endfor -%} - {# #} diff --git a/src/pages/articles/index.njk b/src/pages/articles/index.njk index 1516372ef..6a34e5980 100644 --- a/src/pages/articles/index.njk +++ b/src/pages/articles/index.njk @@ -27,8 +27,4 @@ layout: page.njk paginationModel=paginationModel ) }} - - {# #} diff --git a/src/styles/blocks/conference-link.css b/src/styles/blocks/conference-link.css deleted file mode 100644 index f85d771dc..000000000 --- a/src/styles/blocks/conference-link.css +++ /dev/null @@ -1,57 +0,0 @@ -.conference-link { - position: relative; - display: block; - width: max-content; - margin: 0 auto; - padding-top: 40px; - color: black; - font-size: 24px; - line-height: 1.2; - letter-spacing: -0.02em; - text-align: center; - text-decoration: none; -} - -@media (min-width: 900px) { - .conference-link { - font-size: 36px; - letter-spacing: normal; - } -} - -@media (min-width: 1250px) { - .conference-link { - padding-top: 0; - font-size: 48px; - } -} - -@media (hover: hover) and (pointer: fine) { - .conference-link:hover { - text-decoration: underline; - } -} - -.conference-link::before { - position: absolute; - top: 0; - left: 50%; - display: block; - width: 40px; - height: 24px; - background-image: url('/images/shout.svg'); - background-repeat: no-repeat; - background-size: auto 24px; - transform: translateX(-50%); - content: ''; -} - -@media (min-width: 1250px) { - .conference-link::before { - position: relative; - top: auto; - left: auto; - display: inline-block; - transform: none; - } -} diff --git a/src/styles/blocks/main.css b/src/styles/blocks/main.css index 8846fd31d..8bacea059 100644 --- a/src/styles/blocks/main.css +++ b/src/styles/blocks/main.css @@ -27,10 +27,6 @@ } } -.main__conference-link { - margin-top: 40px; -} - @media (min-width: 1024px) { .main { padding: 100px 64px; @@ -40,9 +36,3 @@ margin-bottom: 40px; } } - -@media (min-width: 1250px) { - .main__conference-link { - margin-top: 60px; - } -} diff --git a/src/styles/blocks/notice.css b/src/styles/blocks/notice.css index ee5320d59..89ecc6578 100644 --- a/src/styles/blocks/notice.css +++ b/src/styles/blocks/notice.css @@ -18,10 +18,6 @@ } @media (min-width: 1024px) { - /* .notice { - margin: 160px 0; - } */ - .notice:last-child { margin-bottom: 60px; } @@ -55,22 +51,3 @@ text-decoration: underline; } } - -.notice__link--shout { - background-image: url('/images/shout.svg'); - background-repeat: no-repeat; - background-position: 50% 0; - background-size: auto 24px; -} - -@media (min-width: 630px) { - .notice__link--shout { - padding-left: 50px; - } -} - -@media (min-width: 1024px) { - .notice__link--shout { - padding-left: 56px; - } -} diff --git a/src/styles/styles.css b/src/styles/styles.css index 8e1db1aff..60a2a2385 100644 --- a/src/styles/styles.css +++ b/src/styles/styles.css @@ -26,7 +26,6 @@ @import 'blocks/blob.css'; @import 'blocks/related-articles.css'; @import 'blocks/article-card.css'; -@import 'blocks/conference-link.css'; @import 'blocks/video.css'; @import 'blocks/tooltip.css'; @import 'blocks/not-found.css';