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

180 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;
}
}
}
@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
}
.linkbox {
2023-10-19 19:09:48 +00:00
transition: background-color .2s, border-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);
2023-03-24 12:54:11 +00:00
padding: 0.5rem 1rem;
2024-03-28 14:11:57 +00:00
border: 1px solid var(--border-color);
background-color: var(--card-background);
2022-02-23 11:42:11 +00:00
border-radius: 10px;
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
}
&.active {
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
}
}
}
.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;
}
2023-10-17 18:56:06 +00:00
&.layout-news-active {
padding-top: 6rem;
}
2022-02-23 11:42:11 +00:00
}
.text-secondary {
2024-03-28 14:11:57 +00:00
color: var(--text-secondary-color);
2022-02-23 11:42:11 +00:00
}
.hover\:surface-hover:hover {
2024-03-28 14:11:57 +00:00
background-color: var(--hover-background);
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));
}
2022-02-23 11:42:11 +00:00
}