Skip to content

Commit 89c29ad

Browse files
committed
style: add custom scrollbar styles for light and dark themes
1 parent 91159d0 commit 89c29ad

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

resources/views/index.blade.php

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,51 @@
2323
}
2424
}
2525
</script>
26+
<style>
27+
/* Custom scrollbar styles */
28+
::-webkit-scrollbar {
29+
width: 8px;
30+
height: 8px;
31+
}
32+
33+
::-webkit-scrollbar-track {
34+
background: #f1f1f1;
35+
}
36+
37+
.dark ::-webkit-scrollbar-track {
38+
background: #2d3748;
39+
}
40+
41+
::-webkit-scrollbar-thumb {
42+
background: #cbd5e0;
43+
border-radius: 4px;
44+
}
45+
46+
.dark ::-webkit-scrollbar-thumb {
47+
background: #4a5568;
48+
}
49+
50+
::-webkit-scrollbar-thumb:hover {
51+
background: #a0aec0;
52+
}
53+
54+
.dark ::-webkit-scrollbar-thumb:hover {
55+
background: #718096;
56+
}
57+
58+
/* Terminal scrollbar styles */
59+
.bg-terminal::-webkit-scrollbar-track {
60+
background: #2d2d2d;
61+
}
62+
63+
.bg-terminal::-webkit-scrollbar-thumb {
64+
background: #4d4d4d;
65+
}
66+
67+
.bg-terminal::-webkit-scrollbar-thumb:hover {
68+
background: #5d5d5d;
69+
}
70+
</style>
2671
</head>
2772
<body class="h-screen overflow-hidden flex flex-col bg-gray-50 dark:bg-gray-900 transition-colors duration-200">
2873
<div class="flex flex-col h-screen p-4">
@@ -56,11 +101,11 @@
56101
<div id="output-global" class="fixed top-4 right-4 z-50 max-w-sm hidden"></div>
57102

58103
<div class="flex-none h-[45vh] mb-4">
59-
<div class="w-full overflow-x-auto whitespace-nowrap scrollbar-thin">
104+
<div class="w-full overflow-x-auto whitespace-nowrap">
60105
<div class="inline-flex gap-4">
61106
@foreach($commands as $group => $groupCommands)
62107
@if(count($groupCommands) > 0)
63-
<div class="flex-none w-[300px] bg-white dark:bg-gray-800 p-4 rounded-lg border border-gray-200 dark:border-gray-700 h-[43vh] overflow-y-auto">
108+
<div class="flex-none w-[300px] mb-3 bg-white dark:bg-gray-800 p-4 rounded-lg border border-gray-200 dark:border-gray-700 h-[43vh] overflow-y-auto">
64109
<div class="text-base font-semibold mb-3 text-gray-700 dark:text-gray-300 sticky top-0 bg-white dark:bg-gray-800 py-2 border-b-2 border-gray-200 dark:border-gray-700">
65110
{{ $group }}
66111
</div>

0 commit comments

Comments
 (0)