Repository navigation
Expand file tree
/
Copy pathcontent.css
More file actions
76 lines (67 loc) · 1.66 KB
/
Copy pathcontent.css
File metadata and controls
76 lines (67 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* Page Lock - Content Styles
* 锁定状态下的全局样式
*/
/* 锁定状态:禁止拖拽和编辑 */
html.page-lock-active * {
-webkit-user-drag: none !important;
user-drag: none !important;
}
/* 锁定状态:禁止 contenteditable */
html.page-lock-active [contenteditable],
html.page-lock-active [contenteditable="true"],
html.page-lock-active [contenteditable=""] {
-webkit-user-modify: read-only !important;
user-modify: read-only !important;
pointer-events: none !important;
}
/* 锁定状态:禁止输入 */
html.page-lock-active input,
html.page-lock-active textarea {
pointer-events: none !important;
-webkit-user-modify: read-only !important;
user-modify: read-only !important;
}
/* 锁定提示条 */
#page-lock-banner {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 2147483647;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
text-align: center;
padding: 10px 20px;
font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
line-height: 1.4;
}
#page-lock-banner .lock-icon {
width: 18px;
height: 18px;
flex-shrink: 0;
animation: page-lock-pulse 2s ease-in-out infinite;
}
@keyframes page-lock-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
#page-lock-banner .lock-text {
font-weight: 600;
letter-spacing: 0.3px;
}
#page-lock-banner .lock-hint {
font-size: 12px;
opacity: 0.85;
margin-left: 6px;
}
/* 滚动补偿 */
html.page-lock-active {
scroll-padding-top: 44px;
}