114 lines
3.1 KiB
CSS
114 lines
3.1 KiB
CSS
/* content.css - 注入到网页的样式 */
|
|
|
|
/* 模糊效果类 */
|
|
.blurtext-blurred {
|
|
filter: blur(var(--blur-intensity, 10px)) !important;
|
|
user-select: none !important;
|
|
pointer-events: auto !important;
|
|
cursor: pointer !important;
|
|
transition: filter 0.2s ease !important;
|
|
position: relative !important;
|
|
}
|
|
|
|
/* 模糊元素的悬停效果 */
|
|
.blurtext-blurred:hover::after {
|
|
content: '点击取消模糊' !important;
|
|
position: absolute !important;
|
|
top: 50% !important;
|
|
left: 50% !important;
|
|
transform: translate(-50%, -50%) !important;
|
|
background: rgba(102, 126, 234, 0.95) !important;
|
|
color: white !important;
|
|
padding: 4px 8px !important;
|
|
border-radius: 4px !important;
|
|
font-size: 12px !important;
|
|
white-space: nowrap !important;
|
|
z-index: 999999 !important;
|
|
pointer-events: none !important;
|
|
filter: none !important;
|
|
}
|
|
|
|
/* 模糊模式下的鼠标样式 */
|
|
body.blurtext-mode * {
|
|
cursor: crosshair !important;
|
|
}
|
|
|
|
/* 模糊模式提示 */
|
|
.blurtext-hint {
|
|
position: fixed !important;
|
|
top: 20px !important;
|
|
left: 50% !important;
|
|
transform: translateX(-50%) !important;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
|
color: white !important;
|
|
padding: 12px 24px !important;
|
|
border-radius: 24px !important;
|
|
font-size: 14px !important;
|
|
font-weight: 500 !important;
|
|
z-index: 9999999 !important;
|
|
box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4) !important;
|
|
animation: blurtext-slideDown 0.3s ease !important;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
|
|
}
|
|
|
|
@keyframes blurtext-slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
}
|
|
|
|
/* 高亮效果(鼠标悬停在可模糊元素上) */
|
|
.blurtext-highlight {
|
|
outline: 2px dashed #667eea !important;
|
|
outline-offset: 2px !important;
|
|
background: rgba(102, 126, 234, 0.1) !important;
|
|
}
|
|
|
|
/* 文本选择模式的模糊按钮 */
|
|
.blurtext-blur-button {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
|
color: white !important;
|
|
padding: 10px 20px !important;
|
|
border-radius: 20px !important;
|
|
font-size: 14px !important;
|
|
font-weight: 500 !important;
|
|
cursor: pointer !important;
|
|
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
|
|
animation: blurtext-buttonPop 0.2s ease !important;
|
|
user-select: none !important;
|
|
white-space: nowrap !important;
|
|
border: none !important;
|
|
transition: all 0.3s ease !important;
|
|
}
|
|
|
|
.blurtext-blur-button:hover {
|
|
transform: translateX(-50%) scale(1.05) !important;
|
|
box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
|
|
}
|
|
|
|
.blurtext-blur-button:active {
|
|
transform: translateX(-50%) scale(0.95) !important;
|
|
}
|
|
|
|
@keyframes blurtext-buttonPop {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-50%) scale(0.8);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(-50%) scale(1);
|
|
}
|
|
}
|
|
|
|
/* 文本选择模式包裹的元素 */
|
|
.blurtext-selection-wrapped {
|
|
display: inline !important;
|
|
}
|