mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 06:09:45 +00:00
исправление размера добавление фона
This commit is contained in:
1 parent
4978c36070
commit
ad810c6217
36 files changed
+1553
-135
No files matched your search
@@ -1,11 +1,34 @@
|
||||
@import "../../assets/styles/theme.scss";
|
||||
|
||||
#root {
|
||||
background-image: url('/assets/images/backround/bg_footer.svg');
|
||||
background-repeat: no-repeat;
|
||||
background-position: center bottom;
|
||||
|
||||
background-size: 100% auto;
|
||||
z-index: 0; // Измените на 0 или больше
|
||||
position: relative;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
|
||||
.page-loaded #root {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
#react-page {
|
||||
margin-top: calc($navbar-height + 5 * $navbar-padding-tb);
|
||||
|
||||
.header, .content {
|
||||
margin-left: 10%;
|
||||
margin-right: 10%;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
@@ -39,4 +62,73 @@
|
||||
#navbar .nav-link:hover:after,
|
||||
#navbar .nav-link.active:after {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-to-top {
|
||||
position: fixed;
|
||||
right: 2%;
|
||||
bottom: 15%;
|
||||
background-color: white;
|
||||
border-radius: 50%;
|
||||
width: 61px;
|
||||
height: 61px;
|
||||
z-index: 1000;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
bottom: 24px;
|
||||
padding: 0;
|
||||
}
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
opacity: 0;
|
||||
transform: scale(0);
|
||||
transition: opacity 0.3s ease, transform 0.3s ease;
|
||||
animation: scaleIn 0.5s forwards; /* Анимация появления */
|
||||
box-shadow: 5px 6px 15px rgba(0, 0, 0, 0.05);
|
||||
|
||||
&.visible {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
box-shadow: 5px 6px 15px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
&.hidden {
|
||||
opacity: 0;
|
||||
transform: scale(0);
|
||||
animation: scaleOut 0.5s forwards; /* Анимация исчезновения */
|
||||
}
|
||||
|
||||
img {
|
||||
height: auto;
|
||||
@media (max-width: 768px) {
|
||||
width: 56%;
|
||||
height: 56%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Анимация для появления кнопки */
|
||||
@keyframes scaleIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
transform: scale(0);
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Анимация для исчезновения кнопки */
|
||||
@keyframes scaleOut {
|
||||
0% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
100% {
|
||||
opacity: 0;
|
||||
transform: scale(0);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user