-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.css
More file actions
48 lines (40 loc) · 1.28 KB
/
content.css
File metadata and controls
48 lines (40 loc) · 1.28 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
/**
* ReddJSON Content Styles
* ═══════════════════════════════════════════════════════════════════
* Additional styles injected into Reddit pages via content_scripts.
* These supplement the inline styles applied by content.js.
*/
/* ── Button container adjustments ── */
.reddjson-button-wrapper {
display: inline-flex;
align-items: center;
}
/* ── Ensure button doesn't break Reddit's layout ── */
shreddit-post .reddjson-button {
flex-shrink: 0;
}
/* ── Old Reddit specific styles ── */
.thing .reddjson-old-reddit-item {
margin-left: 4px;
}
/* ── Toast layer (ensure always on top of Reddit) ── */
.reddjson-toast {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ── Button micro-interactions ── */
.reddjson-button {
transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease !important;
}
.reddjson-button:hover {
transform: translateY(-1px);
}
.reddjson-button:active {
transform: translateY(0) scale(0.96) !important;
}
/* ── Loading state ── */
.reddjson-button:disabled {
opacity: 0.6;
cursor: wait !important;
pointer-events: none;
}