feat: 新增页面防复制功能

This commit is contained in:
LooseLi
2023-08-01 18:20:12 +08:00
parent f60af40459
commit 86fd5adf59
14 changed files with 80 additions and 0 deletions

View File

@@ -10,6 +10,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
`}</style>
}

View File

@@ -13,6 +13,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
/* fukasawa的首页响应式分栏 */
#theme-fukasawa .grid-item {

View File

@@ -11,6 +11,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
`}</style>
}

View File

@@ -10,6 +10,12 @@ const Style = () => {
background-color: #f7f9fe;
overflow-x: hidden;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
// 公告栏中的字体固定白色
#theme-heo #announcement-content .notion{

View File

@@ -13,6 +13,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
/* 菜单下划线动画 */
#theme-hexo .menu-link {

View File

@@ -10,6 +10,12 @@ const Style = () => {
.test {
text-color: red;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
`}</style>
}

View File

@@ -13,6 +13,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
/* 设置了从上到下的渐变黑色 */
#theme-matery .header-cover::before {

View File

@@ -11,6 +11,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
`}</style>
}

View File

@@ -14,6 +14,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
`}</style>
}

View File

@@ -11,6 +11,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
`}</style>
}

View File

@@ -10,6 +10,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
`}</style>
}

View File

@@ -11,6 +11,12 @@ const Style = () => {
.dark body{
background-color: black;
}
// 文本不可选取
.forbid-copy {
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
#theme-simple #announcement-content {
/* background-color: #f6f6f6; */