mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 02:59:45 +00:00
166 lines
2.8 KiB
SCSS
166 lines
2.8 KiB
SCSS
#root {
|
|
position: relative;
|
|
background-repeat: no-repeat;
|
|
background-position: center bottom;
|
|
background-size: 100% auto;
|
|
z-index: 0;
|
|
opacity: 0;
|
|
min-height: 100vh;
|
|
background-image: url("../../shared/assets/images/backround/bg_footer_02.svg");
|
|
|
|
&::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 160px;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 364px;
|
|
background-image: url("../../shared/assets/images/backround/bg_news_block.svg");
|
|
background-repeat: no-repeat;
|
|
background-position: left center;
|
|
background-size: contain;
|
|
z-index: -1;
|
|
|
|
@media (max-width: 768px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&.main-page {
|
|
background-image: url("../../shared/assets/images/backround/bg_footer.svg");
|
|
|
|
&::before {
|
|
background-image: none;
|
|
}
|
|
}
|
|
|
|
&.inner-page {
|
|
background-image: url("../../shared/assets/images/backround/bg_footer_02.svg");
|
|
|
|
&::before {
|
|
background-image: url("../../shared/assets/images/backround/bg_news_block.svg");
|
|
}
|
|
}
|
|
}
|
|
|
|
.page-loaded #root {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
#layout-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
#react-page {
|
|
flex: 1;
|
|
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 {
|
|
background: $bg-primary;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
.block .heading a,
|
|
#navbar .nav-link {
|
|
position: relative;
|
|
|
|
&::after {
|
|
position: absolute;
|
|
content: "";
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
bottom: 0;
|
|
display: block;
|
|
width: 0;
|
|
height: 1px;
|
|
transition: 0.3s;
|
|
}
|
|
}
|
|
|
|
.block .heading a::after {
|
|
background: $text-primary;
|
|
}
|
|
|
|
.block .heading a:hover:after,
|
|
#navbar .nav-link:hover:after,
|
|
#navbar .nav-link.active:after {
|
|
width: 100%;
|
|
}
|
|
|
|
.scroll-to-top {
|
|
position: fixed;
|
|
right: 2vw;
|
|
bottom: 7.5vh;
|
|
background-color: white;
|
|
border-radius: 50%;
|
|
width: 61px;
|
|
height: 61px;
|
|
z-index: 10;
|
|
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) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@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);
|
|
}
|
|
}
|