From 4951ac49890a09dd50dc69a65dfb3006c6f3da89 Mon Sep 17 00:00:00 2001 From: VividTruthKeeper Date: Thu, 23 Feb 2023 12:27:31 +0500 Subject: [PATCH] styling --- src/animations/search.animation.ts | 4 ++-- src/api/params.ts | 2 +- src/components/header/SubNav.tsx | 6 ------ src/styles/_nav.scss | 12 +++++++++++- src/styles/_news-article.scss | 10 ++++++++++ src/styles/_news.scss | 6 +++++- src/styles/_variables.scss | 2 +- 7 files changed, 30 insertions(+), 12 deletions(-) diff --git a/src/animations/search.animation.ts b/src/animations/search.animation.ts index fb31143..b4522f5 100644 --- a/src/animations/search.animation.ts +++ b/src/animations/search.animation.ts @@ -31,12 +31,12 @@ export const searchMobileMotion: Variants = { logoRest: { display: "block", opacity: 1, - transform: "translateX(0%)", + transform: "translateX(0%) translateY(-50%)", type: "spring", }, logoActive: { opacity: 0, - transform: "translateX(-150%)", + transform: "translateX(-150%) translateY(-50%)", type: "spring", }, diff --git a/src/api/params.ts b/src/api/params.ts index 6bd0569..5c78635 100644 --- a/src/api/params.ts +++ b/src/api/params.ts @@ -14,7 +14,7 @@ export const newsScrollParams: IurlParamAdder[] = [ export const categoriesParams: IurlParamAdder[] = [ { name: "count", - value: 7, + value: 5, }, { name: "page", diff --git a/src/components/header/SubNav.tsx b/src/components/header/SubNav.tsx index 681d878..aac7154 100644 --- a/src/components/header/SubNav.tsx +++ b/src/components/header/SubNav.tsx @@ -59,12 +59,6 @@ const SubNav = () => {