-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyles.css
More file actions
158 lines (146 loc) · 3.06 KB
/
styles.css
File metadata and controls
158 lines (146 loc) · 3.06 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/* Sidebar container */
#hypeless-sidebar {
position: fixed;
top: 0;
right: 0;
width: 260px;
max-width: 500px;
min-width: 180px;
height: 100%;
background: #222; /* always dark */
color: #eee; /* mostly light text */
border-left: 2px solid #444;
font-family: Arial, sans-serif;
font-size: 14px;
z-index: 999999;
display: flex;
flex-direction: column;
transition: transform 0.3s ease;
overflow: auto;
resize: none; /* disable native handle */
}
/* Collapsed state */
#hypeless-sidebar.collapsed {
transform: translateX(100%);
}
/* Sidebar header */
#hypeless-header {
background: #333; /* dark header */
padding: 8px;
font-weight: bold;
display: flex;
justify-content: space-between;
align-items: center;
color: #eee; /* light text in buttons too */
}
/* Header buttons (Info / Hide) */
#hypeless-header button {
background: #eee; /* light background */
color: #222; /* dark text */
border: 1px solid #555;
padding: 4px 8px;
border-radius: 4px;
cursor: pointer;
font-size: 12px;
}
#hypeless-header button:hover {
background: #ddd;
}
/* Sidebar content */
#hypeless-content {
flex: 1;
padding: 8px;
overflow-y: auto;
}
.hypeless-item {
margin-bottom: 10px;
cursor: pointer;
}
.hypeless-item:hover {
background: rgba(255, 200, 0, 0.3);
}
/* Floating reopen button */
#hypeless-float-btn {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 999999;
padding: 8px 12px;
background: #ffca28;
border: none;
border-radius: 50%;
font-size: 16px;
cursor: pointer;
display: none;
}
#hypeless-float-btn:hover {
background: #ffc107;
}
/* Highlighted text - use per-element CSS variables set by content.js */
.hypeless-highlight {
background: var(--highlight-normal, yellow);
cursor: pointer;
transition: background-color 0.3s ease;
}
.hypeless-highlight.hypeless-preview {
background: var(--highlight-preview, orange);
}
.hypeless-highlight.hypeless-focus {
background: var(--highlight-focus, red);
}
/* Tooltip */
#hypeless-tooltip {
position: absolute;
background: #333;
color: #fff;
padding: 6px 8px;
border-radius: 4px;
font-size: 12px;
display: none;
z-index: 999999;
pointer-events: none;
max-width: 240px;
}
/* Help popup */
#hypeless-help-popup {
display: none;
position: absolute;
bottom: 10px;
left: 10px;
right: 10px;
padding: 10px;
font-size: 13px;
background: #222;
border: 1px solid #444;
color: #eee;
z-index: 999999;
}
#hypeless-help-popup.visible {
display: block;
}
/* --- Custom resizer handle --- */
#hypeless-resizer {
position: absolute;
left: -6px;
top: 0;
width: 10px;
height: 100%;
cursor: ew-resize;
background: #333;
border-left: 1px solid #444;
border-right: 1px solid #444;
display: flex;
align-items: center;
justify-content: center;
}
#hypeless-resizer::after {
content: '⋮';
writing-mode: vertical-rl;
font-size: 12px;
color: #aaa;
}
#hypeless-sidebar.resizing,
#hypeless-sidebar.resizing * {
cursor: ew-resize !important;
user-select: none !important;
}