禁止复制文章功能,附带开关

This commit is contained in:
tangly1024.com
2023-08-02 16:37:40 +08:00
parent 86fd5adf59
commit 5942d28cca
16 changed files with 30 additions and 75 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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