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

182 lines
4.2 KiB
SCSS
Raw Normal View History

2022-02-23 11:42:11 +00:00
.landing {
2023-10-13 23:06:52 +00:00
background-color: var(--home-bg);
2022-02-23 11:42:11 +00:00
scroll-behavior: smooth;
2023-10-10 08:38:49 +00:00
padding-top: 4rem;
2022-02-23 11:42:11 +00:00
.box {
border: 1px solid var(--home-border-color);
border-radius: 10px;
background-color: var(--home-box-bg);
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;
color: var(--home-linkbox-text-color);
2023-03-24 12:54:11 +00:00
padding: 0.5rem 1rem;
2022-02-23 11:42:11 +00:00
border: var(--home-linkbox-border);
background-color: var(--home-linkbox-bg);
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 {
background: var(--home-linkbox-hover-bg);
}
&.active {
background: var(--home-highlight-color);
color: var(--home-highlight-fore-color);
&:hover {
background: var(--home-highlight-darker-color);
}
}
}
.section-header {
font-size: 2rem;
color: var(--home-primary-text-color);
font-weight: 700;
text-align: center;
padding: 0 2rem;
}
.section-detail {
text-align: center;
color: var(--home-secondary-text-color);
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 {
border: 1px solid var(--home-border-color);
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 {
color: var(--home-secondary-text-color);
}
.hover\:surface-hover:hover {
background-color: var(--surface-hover);
}
.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;
color: var(--home-text-color);
padding: 0.25rem 0.5rem;
border-radius: var(--border-radius);
display: inline-block;
width: 14.45rem;
&::before {
border-radius: var(--border-radius);
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;
background-image: linear-gradient(-225deg, var(--blue-400) 30%, var(--cyan-400) 60%, var(--purple-400) 80%);
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;
background-image: linear-gradient(-225deg, var(--blue-400) 30%, var(--cyan-400) 60%, var(--purple-400) 80%);
animation: color-animation 2s linear infinite;
background-size: auto auto;
background-clip: border-box;
background-size: 200% auto;
background-clip: text;
text-fill-color: transparent;
-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
}