xyyd-fatfox/src/main.css

270 lines
5.0 KiB
CSS
Raw Normal View History

2024-09-09 17:53:07 +08:00
@tailwind base;
@tailwind components;
@tailwind utilities;
2024-11-07 18:48:45 +08:00
.milkdown {
@apply bg-slate-50 p-3 border rounded;
width: 100%;
height: calc(100% - 18px);
border-radius: 12px 12px 20px 20px;
background: rgba(189, 171, 155, 0.1) !important;
border: none !important;
box-shadow: 0 0 #fff !important;
color: #333 !important;
box-sizing: border-box;
overflow-y: auto;
position: relative;
padding-top: 80px;
}
.milkdown-menu {
position: absolute;
left: 0;
top: 0;
right: 0;
overflow: hidden;
border-radius: 12px 12px 0 0 !important;
padding: 0;
background-color: rgba(215, 203, 185, 0.4) !important;
border: none !important;
outline: none;
margin-bottom: 10px;
}
.milkdown ul {
margin: 0;
border: none;
}
.milkdown-menu ul li {
margin: 0;
padding: 0;
}
.milkdown-menu button {
color: #bca694 !important;
font-weight: bold;
padding-top: 5px !important;
padding-bottom: 5px !important;
}
2024-09-09 17:53:07 +08:00
:root {
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family:
2024-10-15 16:25:01 +08:00
SourceHanSansCN-Regular,
2024-09-09 17:53:07 +08:00
-apple-system,
PingFang SC,
Microsoft YaHei,
Noto Sans CJK SC,
2024-10-15 16:25:01 +08:00
WenQuanYi Micro Hei !important;
2024-09-09 17:53:07 +08:00
}
2024-10-10 19:10:55 +08:00
@font-face {
2024-10-15 16:25:01 +08:00
font-family: 'SourceHanSansCN-Regular';
2024-10-10 19:10:55 +08:00
src: url('/fonts/SourceHanSansCN-Regular.subset.otf') format('truetype');
font-weight: normal;
font-style: normal;
}
2024-10-15 16:25:01 +08:00
@font-face {
font-family: 'SourceHanSansCN-bold';
src: url('/fonts/SourceHanSansCN-Regular.subset.otf') format('truetype');
font-weight: 700;
font-style: normal;
}
2024-09-09 17:53:07 +08:00
body {
/* ! 全局禁用鼠标选择,需要在其他位置放开 */
user-select: none;
}
2024-10-29 18:47:37 +08:00
.ant-slider-rail {
background-color: #0000001a !important;
}
.ant-slider-track {
background-color: #ffa94d !important;
}
2024-09-09 17:53:07 +08:00
@keyframes loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.loading {
animation: loading 1s ease-in-out infinite;
}
/* 修改 antd 样式 */
.ant-btn .anticon {
position: relative;
top: -3px;
}
2024-09-09 18:39:15 +08:00
.ant-modal-content {
2024-09-11 13:46:40 +08:00
background-color: rgba(255, 255, 255, 0.8) !important;
2024-09-09 18:39:15 +08:00
backdrop-filter: blur(20px);
}
.ant-modal-header {
background-color: transparent !important;
}
.viewer-backdrop {
backdrop-filter: blur(10px);
}
2024-09-09 17:53:07 +08:00
/* 滚动条样式 */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2);
border-radius: 4px;
}
/* 背景之上阴影文字 */
.shadow-text {
text-shadow: 0 0 0.3em rgba(0, 0, 0, 0.3);
}
.shadow-content {
backdrop-filter: blur(20px);
box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.2);
}
/* 默认动画 */
.v-enter-active,
.v-leave-active {
transition: opacity 0.3s ease-in-out;
}
.v-enter-from,
.v-leave-to {
opacity: 0;
}
/* 搜索框动画 */
.searchContent-enter-active,
.searchContent-leave-active {
transition:
transform 0.3s ease-in-out,
opacity 0.3s ease-in-out;
}
.searchContent-enter-from {
transform: translateY(90%);
opacity: 0;
}
.searchContent-leave-to {
transform: translateY(110%);
opacity: 0;
}
/* 弹框内容动画 */
.modal-enter-active,
.modal-leave-active {
transition:
transform 0.3s ease-in-out,
opacity 0.3s ease-in-out;
}
.modal-enter-from {
transform: translate(-50%, -60%);
opacity: 0;
}
.modal-leave-to {
transform: translate(-50%, -40%);
opacity: 0;
}
/* 设置框动画 */
.settings-enter-active,
.settings-leave-active {
transform-origin: left bottom;
transition:
transform 0.3s ease-in-out,
bottom 0.3s ease-in-out,
opacity 0.3s ease-in-out;
}
.settings-enter-from,
.settings-leave-to {
bottom: 0;
opacity: 0;
transform: scale(0.4);
}
2024-09-11 13:46:40 +08:00
/* 页面添加框动画 */
.page-adder-enter-active,
.page-adder-leave-active {
transform-origin: center bottom;
transition:
transform 0.3s ease-in-out,
left 0.3s ease-in-out,
opacity 0.3s ease-in-out;
}
.page-adder-enter-from,
.page-adder-leave-to {
opacity: 0;
transform: scale(0.4);
left: 0;
}
.no-scrollbar {
scrollbar-width: none;
-ms-overflow-style: none;
}
2024-10-22 16:27:19 +08:00
.hover-move {
transform: translateY(0);
animation: none;
transition-duration: 0.3s;
transition-property: transform;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-move:hover {
transform: translateY(-4px);
}
2024-09-30 18:31:24 +08:00
@layer utilities {
.scrollbar-transparent::-webkit-scrollbar {
width: 0;
height: 0;
}
.scrollbar-hide::-webkit-scrollbar {
width: 0;
height: 0;
}
.scrollbar-hide {
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
}
.scrollbar-transparent::-webkit-scrollbar-thumb {
background-color: transparent;
}
.scrollbar-transparent::-webkit-scrollbar-track {
background-color: transparent;
}
.scrollbar-transparent {
scrollbar-width: thin;
scrollbar-color: transparent transparent;
}
2024-10-10 16:03:17 +08:00
}
.background-enter-active {
2024-10-10 19:10:55 +08:00
animation: bounce-in 0.8s;
2024-10-10 16:03:17 +08:00
}
@keyframes bounce-in {
0% {
transform: scale(1);
}
50% {
transform: scale(1.25);
}
100% {
transform: scale(1);
}
2024-10-10 19:10:55 +08:00
}