143 lines
2.3 KiB
SCSS
143 lines
2.3 KiB
SCSS
/*
|
||
作者: imsyy
|
||
主页:https://www.imsyy.top/
|
||
GitHub:https://github.com/imsyy/home
|
||
版权所有,请勿删除
|
||
*/
|
||
|
||
@charset "utf-8";
|
||
|
||
/*全局样式*/
|
||
|
||
html,
|
||
body {
|
||
width: 100%;
|
||
height: 100%;
|
||
background-color: #333;
|
||
overflow: hidden;
|
||
}
|
||
|
||
*,
|
||
a,
|
||
p {
|
||
margin: 0;
|
||
padding: 0;
|
||
-webkit-user-select: none;
|
||
user-select: none;
|
||
text-decoration: none;
|
||
transition: .3s;
|
||
color: #fff;
|
||
box-sizing: border-box;
|
||
|
||
&:hover {
|
||
transition: .3s;
|
||
// color: #ffffff90;
|
||
}
|
||
}
|
||
|
||
|
||
// 字体文件
|
||
@font-face {
|
||
font-family: "Pacifico-Regular";
|
||
src: url('/font/Pacifico-Regular.ttf') format('truetype');
|
||
}
|
||
|
||
@font-face {
|
||
font-family: "UnidreamLED";
|
||
src: url('/font/UnidreamLED.ttf') format('truetype');
|
||
}
|
||
|
||
|
||
// 基础样式
|
||
#app {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100vw;
|
||
height: 100vh;
|
||
z-index: 0;
|
||
}
|
||
|
||
// 卡片样式
|
||
.cards {
|
||
border-radius: 6px;
|
||
background: #00000040;
|
||
-webkit-backdrop-filter: blur(10px);
|
||
backdrop-filter: blur(10px);
|
||
transform: scale(1);
|
||
transition: 0.5s;
|
||
animation: fade;
|
||
-webkit-animation: fade 0.5s;
|
||
}
|
||
|
||
.cards:hover {
|
||
transform: scale(1.01);
|
||
transition: 0.5s;
|
||
}
|
||
|
||
.cards:active {
|
||
transform: scale(0.98);
|
||
transition: 0.5s;
|
||
}
|
||
|
||
// 弹窗样式
|
||
.el-message {
|
||
--el-message-bg-color: #00000040 !important;
|
||
--el-message-text-color: #efefef !important;
|
||
-webkit-backdrop-filter: blur(10px);
|
||
backdrop-filter: blur(10px);
|
||
border-radius: 25px !important;
|
||
border-color: transparent !important;
|
||
|
||
.el-message__badge {
|
||
display: none;
|
||
}
|
||
}
|
||
|
||
// 渐入动画
|
||
.fade-enter-active {
|
||
animation: fade 0.3s ease-in-out;
|
||
}
|
||
|
||
.fade-leave-active {
|
||
animation: fade 0.3s ease-in-out reverse;
|
||
}
|
||
|
||
@keyframes fade {
|
||
0% {
|
||
opacity: 0;
|
||
}
|
||
|
||
100% {
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
// 自定义鼠标
|
||
#cursor {
|
||
position: fixed;
|
||
width: 18px;
|
||
height: 18px;
|
||
background: #fff;
|
||
border-radius: 25px;
|
||
opacity: 0.25;
|
||
z-index: 10086;
|
||
pointer-events: none;
|
||
transition: 0.2s ease-in-out;
|
||
transition-property: background, opacity, transform;
|
||
|
||
&.hidden {
|
||
opacity: 0;
|
||
}
|
||
|
||
&.hover {
|
||
opacity: 0.1;
|
||
transform: scale(2.5);
|
||
}
|
||
|
||
&.active {
|
||
opacity: 0.5;
|
||
transform: scale(0.5);
|
||
|
||
}
|
||
} |