detached c1e4589

style: Update custom CSS for improved theme consistency

- Removed unused source import for templating models.
- Swapped color values for base theme variables to enhance visual consistency.
- Updated button and card styles to utilize new base color classes for better integration with DaisyUI theme.
commit
c1e458958a4a7a5fea8f08e6fe3e821c20af19e7
author
bamen · · 2025-03-30 18:52 UTC
parent
0ea6c58
signature
unsigned
1 file · +6 -7
M internal/webui/public/assets/css/custom.css +6 -7
@@ -7,7 +7,6 @@
77 /* Embeded path : assets/css/cutsom.css */
88
99 @import "tailwindcss";
10-@source "../../../templating/models/html/**/*.{gohtml,go}";
1110 @plugin "daisyui";
1211
1312 /* Custom DaisyUI theme */
@@ -17,8 +16,8 @@
1716 prefersdark: true;
1817 color-scheme: "dark";
1918 --color-base-100: oklch(28% 0.091 267.935);
20- --color-base-200: oklch(13% 0.028 261.692);
21- --color-base-300: oklch(20% 0.042 265.755);
19+ --color-base-200: oklch(20% 0.042 265.755);
20+ --color-base-300: oklch(13% 0.028 261.692);
2221 --color-base-content: oklch(93% 0.034 272.788);
2322 --color-primary: oklch(87% 0 0);
2423 --color-primary-content: oklch(14% 0 0);
@@ -55,7 +54,7 @@
5554 }
5655
5756 .btn-secondary {
58- @apply flex w-full justify-center border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2;
57+ @apply flex w-full justify-center border border-secondary bg-secondary px-4 py-2 text-sm font-medium text-secondary-content hover:bg-secondary/90 focus:outline-none focus:ring-2 focus:ring-secondary focus:ring-offset-2;
5958 }
6059
6160 .btn-danger {
@@ -89,7 +88,7 @@
8988
9089 /* Card styles */
9190 .card {
92- @apply bg-white p-4 shadow mb-4;
91+ @apply bg-base-100 p-4 shadow mb-4;
9392 }
9493
9594 .card-header {
@@ -98,7 +97,7 @@
9897
9998 /* Background styles */
10099 .bg-app {
101- @apply bg-indigo-50;
100+ @apply bg-base-300;
102101 }
103102
104103 .bg-sidebar {
@@ -106,7 +105,7 @@
106105 }
107106
108107 .bg-card {
109- @apply bg-white;
108+ @apply bg-base-100;
110109 }
111110
112111 /* Text styles */
@@ -7,7 +7,6 @@
7 /* Embeded path : assets/css/cutsom.css */7 /* Embeded path : assets/css/cutsom.css */
8 8
9 @import "tailwindcss";9 @import "tailwindcss";
10-@source "../../../templating/models/html/**/*.{gohtml,go}";
11 @plugin "daisyui";10 @plugin "daisyui";
12 11
13 /* Custom DaisyUI theme */12 /* Custom DaisyUI theme */
@@ -17,8 +16,8 @@
17 prefersdark: true;16 prefersdark: true;
18 color-scheme: "dark";17 color-scheme: "dark";
19 --color-base-100: oklch(28% 0.091 267.935);18 --color-base-100: oklch(28% 0.091 267.935);
20- --color-base-200: oklch(13% 0.028 261.692);19+ --color-base-200: oklch(20% 0.042 265.755);
21- --color-base-300: oklch(20% 0.042 265.755);20+ --color-base-300: oklch(13% 0.028 261.692);
22 --color-base-content: oklch(93% 0.034 272.788);21 --color-base-content: oklch(93% 0.034 272.788);
23 --color-primary: oklch(87% 0 0);22 --color-primary: oklch(87% 0 0);
24 --color-primary-content: oklch(14% 0 0);23 --color-primary-content: oklch(14% 0 0);
@@ -55,7 +54,7 @@
55 }54 }
56 55
57 .btn-secondary {56 .btn-secondary {
58- @apply flex w-full justify-center border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2;57+ @apply flex w-full justify-center border border-secondary bg-secondary px-4 py-2 text-sm font-medium text-secondary-content hover:bg-secondary/90 focus:outline-none focus:ring-2 focus:ring-secondary focus:ring-offset-2;
59 }58 }
60 59
61 .btn-danger {60 .btn-danger {
@@ -89,7 +88,7 @@
89 88
90 /* Card styles */89 /* Card styles */
91 .card {90 .card {
92- @apply bg-white p-4 shadow mb-4;91+ @apply bg-base-100 p-4 shadow mb-4;
93 }92 }
94 93
95 .card-header {94 .card-header {
@@ -98,7 +97,7 @@
98 97
99 /* Background styles */98 /* Background styles */
100 .bg-app {99 .bg-app {
101- @apply bg-indigo-50;100+ @apply bg-base-300;
102 }101 }
103 102
104 .bg-sidebar {103 .bg-sidebar {
@@ -106,7 +105,7 @@
106 }105 }
107 106
108 .bg-card {107 .bg-card {
109- @apply bg-white;108+ @apply bg-base-100;
110 }109 }
111 110
112 /* Text styles */111 /* Text styles */

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 106

↑↓ moveenter openesc close