primevue-mirror/assets/styles/layout/landing/_blocks.scss

220 lines
6.0 KiB
SCSS
Raw Normal View History

2022-02-23 11:42:11 +00:00
.landing-blocks {
* {
box-sizing: content-box;
}
.prime-blocks {
transform: rotateX(55deg) rotateY(0deg) rotateZ(-45deg);
margin: -12rem 0;
&.blocks-animation {
.prime-block {
.block-sidebar,
.block-header,
.block-sidebar-list,
.block-content {
opacity: 1;
visibility: visible;
transform: scale(1);
}
}
}
.prime-block {
2024-03-28 14:11:57 +00:00
background: var(--ground-surface);
2022-02-23 11:42:11 +00:00
box-shadow:var(--home-blocks-block-shadow);
2024-03-28 14:11:57 +00:00
border-left: 5px solid var(--border-color);
border-bottom: 7px solid var(--border-color);
2022-02-23 11:42:11 +00:00
border-radius: 10px;
height: 300px;
width: 600px;
position: relative;
z-index: 1;
margin: 15px;
transition: opacity 1.3s, transform 1.3s;
.block-sidebar,
.block-header,
.block-sidebar-list,
.block-content {
transition: opacity 1.3s, transform 1.3s;
opacity: 0;
visibility: hidden;
transform: scale(0.9);
}
&:before {
content: '';
position: absolute;
top: 0;
left:0;
right:0;
bottom: 0;
border-radius: 6px;
2024-03-28 14:11:57 +00:00
border: 1px solid var(--border-color);
2022-02-23 11:42:11 +00:00
}
.block-sidebar,
.block-header {
background: var(--home-blocks-sidebar-bg);
border-radius: 6px;
}
.block-sidebar-list {
background: var(--home-blocks-list-bg);
}
.block-content {
.block-main {
2024-03-28 14:11:57 +00:00
border: 1px solid var(--border-color);
2022-02-23 11:42:11 +00:00
border-radius: 13px;
background: var(--home-blocks-main-bg);
}
}
}
.block-item {
background: var(--home-blocks-item-bg);
border-radius: 6px;
padding: 1rem;
transition: transform 1s, box-shadow 1s;
overflow: hidden;
transform: translateY(0);
.box {
border-radius: 4px;
width: 14px;
height: 14px;
&.box-orange{
background-color: #F57C00;
}
&.box-pink{
background-color: #E91E63;
}
&.box-green {
background-color: #4CAF50;
}
&.box-blue{
background-color: #2196F3;
}
}
.block-image {
background-color: var(--home-blocks-image-bg);
height: 44px;
}
.text {
display: block;
font-size: 24px;
font-weight: 700;
color: var(--home-blocks-text-color);
}
&.block-item-active {
2024-03-28 14:11:57 +00:00
box-shadow: 0px 30px 50px 0px rgba(0, 0, 0, .1);
2022-02-23 11:42:11 +00:00
border-radius: 6px;
2024-03-28 14:11:57 +00:00
border-top: 1px solid var(--border-color);
border-right: 1px solid var(--border-color);
border-bottom: 4px solid var(--border-color);
border-left: 4px solid var(--border-color);
2022-02-23 11:42:11 +00:00
position: relative;
z-index: 5;
animation: block-animation 1500ms ease-in-out alternate infinite;
&.animation-2{
animation-delay: 1s;
}
&.animation-3{
animation-delay: 1.5s;
}
}
&.block-item-col {
background: none !important;
border: none;
padding: 12px 0;
}
&.block-item-table {
border-radius: 100px;
padding: 10px;
.bar{
background: var(--home-blocks-tablebar-bg);
}
}
}
.bar {
background: var(--home-blocks-bar-bg);
height: 6px;
border-radius: 10px;
&.bar-highlight {
2024-03-28 14:11:57 +00:00
background: var(--primary-color);
2022-02-23 11:42:11 +00:00
&:before {
2024-03-28 14:11:57 +00:00
background: var(--primary-inverse-color) !important ;
2022-02-23 11:42:11 +00:00
}
}
&.bar-button {
height: 16px;
position: relative;
&:before {
content: '';
position: absolute;
top: 6px;
left: 10px;
right: 10px;
bottom: 6px;
height: 3px;
border-radius: 6px;
background: var(--home-blocks-bar-button-bg);
}
}
}
.circle {
width: 18px;
height: 18px;
border-radius: 100%;
background: var(--home-blocks-circle-bg);
&.circle-small {
width: 8px;
height: 8px;
}
&.circle-medium {
width: 14px;
height: 14px;
}
&.circle-highlight {
2024-03-28 14:11:57 +00:00
background: var(--primary-color);
2022-02-23 11:42:11 +00:00
}
}
}
}
2023-03-07 10:49:25 +00:00
@media screen and (max-width: $landingBreakpointXL) {
2022-02-23 11:42:11 +00:00
.landing-blocks .prime-blocks {
margin: -24rem 0;
transform: rotateX(55deg) rotateY(0deg) rotateZ(-45deg) scale(0.6);
}
}
@keyframes block-animation {
to {
transform: translateY(-10px) translateX(10px) scale(1.02);
2024-03-28 14:11:57 +00:00
box-shadow: 0px 30px 50px 10px rgba(0, 0, 0, .2);
2022-02-23 11:42:11 +00:00
}
}