mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 03:49:45 +00:00
Пофиксин масштаб,немного изменена галеря, футер и прочее
This commit is contained in:
1 parent
134f05214e
commit
6332da4db9
13 files changed
+109
-56
No files matched your search
@@ -11,8 +11,8 @@ body {
|
||||
|
||||
#mainpageheader {
|
||||
position: relative;
|
||||
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
min-height: 100vh;
|
||||
padding: 0 10%;
|
||||
margin: 0;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ $news-card-gap: 1em;
|
||||
aspect-ratio: 5 / 1;
|
||||
@media (max-width: 768px) {
|
||||
width: 100%;
|
||||
}
|
||||
}height: 325px;
|
||||
.pic .label {
|
||||
font-size: clamp(18px, 2vw, 28px);
|
||||
@media (max-width: 768px) {
|
||||
@@ -22,7 +22,7 @@ $news-card-gap: 1em;
|
||||
/* Для последующих карточек (на второй и третьей позиции) в первой строке */
|
||||
.card:nth-child(2), .card:nth-child(3) {
|
||||
width: calc(33.333% - $news-card-gap);
|
||||
aspect-ratio: 3 / 2.6;
|
||||
aspect-ratio: 3 / 2.6;height: 325px;
|
||||
@media (max-width: 768px) {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -31,7 +31,7 @@ $news-card-gap: 1em;
|
||||
/* Для всех остальных строк карточки остаются по 3 штуки в строке */
|
||||
.card:nth-child(n+4) {
|
||||
width: calc(33.333% - $news-card-gap);
|
||||
aspect-ratio: 3 / 2.6;
|
||||
aspect-ratio: 3 / 2.6;height: 325px;
|
||||
@media (max-width: 768px) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -37,8 +37,7 @@ function NewsItem() {
|
||||
{news.photos.length !== 0 && <Slider images={news.photos} />}
|
||||
{news.text.map(textRow => <p dangerouslySetInnerHTML={{ __html: textRow }}></p>)}
|
||||
<div className="row">
|
||||
<p><a href={newsUrl} target="_blank" rel="noreferrer">Ссылка на новость <img class="icon" src={extLink} /></a></p>
|
||||
<p className="date">Дата публикации: {news.date}</p>
|
||||
<p><a href={newsUrl} target="_blank" rel="noreferrer">Ссылка на новость <img class="icon" src={extLink} /></a><span className="date">Дата публикации: {news.date}</span></p>
|
||||
</div>
|
||||
</PageContent>
|
||||
</>
|
||||
|
||||
@@ -5,6 +5,11 @@
|
||||
justify-content: space-between;
|
||||
margin-top: 2em;
|
||||
|
||||
p {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.icon {
|
||||
height: $main-font-size;
|
||||
}
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
margin-top: calc($navbar-height + 5 * $navbar-padding-tb);
|
||||
|
||||
.header, .content {
|
||||
margin-left: 10%;
|
||||
margin-right: 10%;
|
||||
margin-left: 8%;
|
||||
margin-right: 8%;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
margin-left: 5%;
|
||||
@@ -61,9 +61,12 @@
|
||||
}
|
||||
|
||||
.content {
|
||||
//background: $bg-primary;
|
||||
background: $bg-primary;
|
||||
//padding: 0 1em;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
//box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +101,7 @@
|
||||
.scroll-to-top {
|
||||
position: fixed;
|
||||
right: 2vw; // Используем vw для адаптивности
|
||||
bottom: 5vh; // Используем vh для адаптивности
|
||||
bottom: 7.5vh; // Используем vh для адаптивности
|
||||
background-color: white;
|
||||
border-radius: 50%;
|
||||
width: 61px;
|
||||
|
||||
Reference in new issue
Block a user