styling
This commit is contained in:
parent
fc24bd4c9c
commit
4951ac4989
|
|
@ -31,12 +31,12 @@ export const searchMobileMotion: Variants = {
|
||||||
logoRest: {
|
logoRest: {
|
||||||
display: "block",
|
display: "block",
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
transform: "translateX(0%)",
|
transform: "translateX(0%) translateY(-50%)",
|
||||||
type: "spring",
|
type: "spring",
|
||||||
},
|
},
|
||||||
logoActive: {
|
logoActive: {
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
transform: "translateX(-150%)",
|
transform: "translateX(-150%) translateY(-50%)",
|
||||||
type: "spring",
|
type: "spring",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ export const newsScrollParams: IurlParamAdder[] = [
|
||||||
export const categoriesParams: IurlParamAdder[] = [
|
export const categoriesParams: IurlParamAdder[] = [
|
||||||
{
|
{
|
||||||
name: "count",
|
name: "count",
|
||||||
value: 7,
|
value: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "page",
|
name: "page",
|
||||||
|
|
|
||||||
|
|
@ -59,12 +59,6 @@ const SubNav = () => {
|
||||||
<ul className="subnav-inner">
|
<ul className="subnav-inner">
|
||||||
{data ? (
|
{data ? (
|
||||||
<>
|
<>
|
||||||
<SubNavLi
|
|
||||||
isNotCategory
|
|
||||||
dataEl={{ id: 0, name: "Главная" }}
|
|
||||||
activeLink={activeLink}
|
|
||||||
onClickLink={onClickLink}
|
|
||||||
/>
|
|
||||||
{data.data.map((dataEl) => {
|
{data.data.map((dataEl) => {
|
||||||
return (
|
return (
|
||||||
<SubNavLi
|
<SubNavLi
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
.nav-mid {
|
.nav-mid {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 3rem;
|
top: 50%;
|
||||||
}
|
}
|
||||||
.search-wrap {
|
.search-wrap {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -36,7 +36,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-mid {
|
.nav-mid {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 60%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-start;
|
||||||
h1 {
|
h1 {
|
||||||
|
width: fit-content;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: $main;
|
color: $main;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
@ -201,6 +206,11 @@
|
||||||
|
|
||||||
// Media
|
// Media
|
||||||
@media screen and (max-width: 850px) {
|
@media screen and (max-width: 850px) {
|
||||||
|
.nav-mid {
|
||||||
|
h1 {
|
||||||
|
// text-align: start;
|
||||||
|
}
|
||||||
|
}
|
||||||
.nav-right {
|
.nav-right {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
.news-article {
|
.news-article {
|
||||||
padding: 5.6rem 0;
|
padding: 5.6rem 0;
|
||||||
|
.loader {
|
||||||
|
margin: 4rem 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.news-article-inner {
|
.news-article-inner {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
@ -92,6 +95,13 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sresult-content {
|
||||||
|
.news-text {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
line-height: 2.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
.news-article-inner {
|
.news-article-inner {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@
|
||||||
grid-template-columns: 32rem 1fr;
|
grid-template-columns: 32rem 1fr;
|
||||||
grid-template-rows: 20rem;
|
grid-template-rows: 20rem;
|
||||||
gap: 1.6rem;
|
gap: 1.6rem;
|
||||||
|
|
||||||
|
.loader {
|
||||||
|
margin: 4rem 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.news-info {
|
.news-info {
|
||||||
|
|
@ -146,7 +150,7 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.news-image {
|
.news-image {
|
||||||
min-height: 16rem;
|
height: 25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,6 @@ $main: #38a39d;
|
||||||
$white: #ffffff;
|
$white: #ffffff;
|
||||||
$gray: #f1f1f1;
|
$gray: #f1f1f1;
|
||||||
$gray-dark: #a6a6a6;
|
$gray-dark: #a6a6a6;
|
||||||
$body: #5a5a5a;
|
$body: #000;
|
||||||
$red: #e53131;
|
$red: #e53131;
|
||||||
$blue: #3c7ec0;
|
$blue: #3c7ec0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue