primevue-mirror/apps/showcase/assets/styles/layout/landing/_main.scss

181 lines
4.1 KiB
SCSS
Raw Normal View History

2022-02-23 11:42:11 +00:00
.landing {
scroll-behavior: smooth;
2023-10-10 08:38:49 +00:00
padding-top: 4rem;
2024-03-28 14:11:57 +00:00
background-color: var(--ground-background);
2022-02-23 11:42:11 +00:00
.box {
2024-03-28 14:11:57 +00:00
border: 1px solid var(--border-color);
2022-02-23 11:42:11 +00:00
border-radius: 10px;
2024-03-28 14:11:57 +00:00
background-color: var(--card-background);
2023-12-31 19:21:00 +00:00
position: relative;
z-index: 0;
&::before,
&::after {
content: "";
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border: 2px solid var(--home-box-ring-color);
transition: all .5s;
animation: clippath 3s infinite linear;
border-radius: 10px;
opacity: 0;
z-index: -1;
}
&::after {
animation: clippath 3s infinite -1.5s linear;
}
&:hover {
&::before,
&::after {
opacity: 1;
}
}
}
2022-02-23 11:42:11 +00:00
.linkbox {
2024-05-21 07:57:47 +00:00
transition: background-color .2s, border-color .2s, outline-color .2s;
2022-02-23 11:42:11 +00:00
display: inline-flex;
align-items: center;
2024-03-28 14:11:57 +00:00
color: var(--text-color);
border: 1px solid var(--border-color);
background-color: var(--card-background);
2022-02-23 11:42:11 +00:00
border-radius: 10px;
2024-05-21 07:57:47 +00:00
font-weight: 600;
padding: 1rem 1.5rem;
2023-10-13 22:09:30 +00:00
2024-05-21 07:57:47 +00:00
cursor: pointer;
2023-10-13 22:09:30 +00:00
@include focus-visible();
2022-02-23 11:42:11 +00:00
&:hover {
2024-03-28 14:11:57 +00:00
background: var(--hover-background);
2022-02-23 11:42:11 +00:00
}
2024-05-21 07:57:47 +00:00
&.linkbox-primary {
2024-03-28 14:11:57 +00:00
background: var(--primary-color);
2024-05-14 11:27:21 +00:00
color: var(--primary-contrast-color);
2022-02-23 11:42:11 +00:00
&:hover {
2024-03-28 14:11:57 +00:00
background: var(--primary-hover-color);
2022-02-23 11:42:11 +00:00
}
}
2024-05-21 07:57:47 +00:00
&.linkbox-icon {
width: 3rem;
height: 3rem;
justify-content: center;
}
2022-02-23 11:42:11 +00:00
}
.section-header {
font-size: 2rem;
2024-03-28 14:11:57 +00:00
color: var(--text-color);
2022-02-23 11:42:11 +00:00
font-weight: 700;
text-align: center;
padding: 0 2rem;
}
.section-detail {
text-align: center;
2024-03-28 14:11:57 +00:00
color: var(--text-secondary-color);
2022-02-23 11:42:11 +00:00
font-weight: 500;
2023-03-28 07:23:58 +00:00
font-size: 1.25rem;
2022-02-23 11:42:11 +00:00
margin: 1.5rem 0 0 0;
padding: 0 2rem;
}
.section-divider {
2024-03-28 14:11:57 +00:00
border: 1px solid var(--border-color);
2022-02-23 11:42:11 +00:00
height: 1px;
border-bottom: 0 none;
overflow: hidden;
2024-05-21 07:57:47 +00:00
margin-top: 5rem;
2022-02-23 11:42:11 +00:00
}
2023-10-17 18:56:06 +00:00
&.layout-news-active {
padding-top: 6rem;
}
2022-02-23 11:42:11 +00:00
}
.landing-footer-container {
max-width: 1250px !important;
margin-left: auto !important;
margin-right: auto !important;
2022-02-23 11:42:11 +00:00
}
2023-03-24 12:54:11 +00:00
.animated-text {
position: relative;
padding: 0.25rem 0.5rem;
2024-03-28 14:11:57 +00:00
border-radius: var(--rounded-base);
2023-03-24 12:54:11 +00:00
display: inline-block;
width: 14.45rem;
&::before {
2024-03-28 14:11:57 +00:00
border-radius: var(--rounded-base);
2023-03-24 12:54:11 +00:00
animation: color-animation 2s linear infinite;
background-size: auto auto;
background-clip: border-box;
background-size: 200% auto;
content: "";
width: 14.45rem;
height: 1.5rem;
position: absolute;
z-index: 0;
2024-03-28 14:11:57 +00:00
background-image: linear-gradient(-225deg, var(--p-blue-400) 30%, var(--p-cyan-400) 60%, var(--p-purple-400) 80%);
2023-03-24 12:54:11 +00:00
filter: blur(24px);
opacity: 0.6;
2022-02-23 11:42:11 +00:00
}
2023-03-24 12:54:11 +00:00
> span {
position: relative;
z-index: 3;
2024-03-28 14:11:57 +00:00
background-image: linear-gradient(-225deg, var(--p-blue-400) 30%, var(--p-cyan-400) 60%, var(--p-purple-400) 80%);
2023-03-24 12:54:11 +00:00
animation: color-animation 2s linear infinite;
background-size: auto auto;
background-clip: border-box;
background-size: 200% auto;
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
2022-02-23 11:42:11 +00:00
}
}
2023-03-24 12:54:11 +00:00
@keyframes color-animation {
40%,
100% {
background-position: -200% center;
2022-02-23 11:42:11 +00:00
}
2023-03-07 10:49:25 +00:00
}
2023-03-24 12:54:11 +00:00
@keyframes scroll {
0% {
transform: translateX(0%);
}
100% {
transform: translateX(calc(-100% - 3rem));
}
2024-05-21 07:57:47 +00:00
}
@keyframes clippath {
0%,
100% {
clip-path: inset(0 0 98% 0);
}
25% {
clip-path: inset(0 98% 0 0);
}
50% {
clip-path: inset(98% 0 0 0);
}
75% {
clip-path: inset(0 0 0 98%);
}
2022-02-23 11:42:11 +00:00
}