-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathcustom.css
More file actions
84 lines (71 loc) · 1.83 KB
/
Copy pathcustom.css
File metadata and controls
84 lines (71 loc) · 1.83 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
* {
scrollbar-width: thin;
scrollbar-color: rgba(120,120,120,0.4) transparent;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
background: transparent !important;
}
::-webkit-scrollbar-thumb {
background: rgba(120,120,120,0.5);
border-radius: 999px;
}
::-webkit-scrollbar-thumb {
opacity: 0;
transition: opacity 0.2s ease;
}
:hover::-webkit-scrollbar-thumb,
*:active::-webkit-scrollbar-thumb {
opacity: 1;
}
/* Remove dark mode background from page icons */
img[src*="/images/"] {
background: transparent !important;
}
/* Clickable prompt cards (snippets/prompt-card.jsx) */
.prompt-card {
/* The wrapper is the grid item; let the inner Card fill it so cards in a row stay equal height. */
display: grid;
cursor: pointer;
outline: none;
}
.prompt-card .card {
transition: border-color 0.15s ease;
}
.prompt-card:hover .card,
.prompt-card:focus-visible .card {
border-color: rgb(var(--primary)) !important;
}
.dark .prompt-card:hover .card,
.dark .prompt-card:focus-visible .card {
border-color: rgb(var(--primary-light)) !important;
}
.prompt-card-hint {
position: absolute;
top: 1rem;
right: 1rem;
padding: 0.3rem 0.6rem;
border-radius: 9999px;
font-size: 0.75rem;
line-height: 1;
color: rgb(var(--gray-500));
background: rgba(120, 120, 120, 0.12);
opacity: 0;
transition: opacity 0.15s ease;
pointer-events: none;
}
.prompt-card:hover .prompt-card-hint,
.prompt-card:focus-visible .prompt-card-hint,
.prompt-card[data-state="copied"] .prompt-card-hint,
.prompt-card[data-state="failed"] .prompt-card-hint {
opacity: 1;
}
.prompt-card[data-state="copied"] .prompt-card-hint {
color: rgb(var(--primary));
background: rgb(var(--primary) / 0.12);
}
.dark .prompt-card[data-state="copied"] .prompt-card-hint {
color: rgb(var(--primary-light));
background: rgb(var(--primary-light) / 0.16);
}