mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 15:09:13 +00:00
65 lines
1.3 KiB
JavaScript
65 lines
1.3 KiB
JavaScript
/* eslint-disable react/no-unknown-property */
|
|
/**
|
|
* 此处样式只对当前主题生效
|
|
* 此处不支持tailwindCSS的 @apply 语法
|
|
* @returns
|
|
*/
|
|
const Style = () => {
|
|
return <style jsx global>{`
|
|
body {
|
|
background-color: #f7f9fe;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
// 公告栏中的字体固定白色
|
|
#announcement-content .notion{
|
|
color: white;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgba(60, 60, 67, 0.4);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
.today-card-cover {
|
|
-webkit-mask-image: linear-gradient(to top, transparent 5%, black 70%);
|
|
mask-image: linear-gradient(to top, transparent 5%, black 70%);
|
|
}
|
|
|
|
.recent-top-post-group::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.scroll-hidden::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
// 标签滚动动画
|
|
.tags-group-wrapper {
|
|
animation: rowup 60s linear infinite;
|
|
}
|
|
|
|
@keyframes rowup {
|
|
0% {
|
|
transform: translateX(0%);
|
|
}
|
|
100% {
|
|
transform: translateX(-50%);
|
|
}
|
|
}
|
|
|
|
`}</style>
|
|
}
|
|
|
|
export { Style }
|