Skip to content

Commit 4c7f13c

Browse files
committed
UI updates
1 parent 15691de commit 4c7f13c

10 files changed

Lines changed: 78 additions & 127 deletions

File tree

app/Providers/Filament/AdminPanelProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function panel(Panel $panel): Panel
3636
->sidebarCollapsibleOnDesktop()
3737
->maxContentWidth(\Filament\Support\Enums\Width::Full)
3838
->favicon(config('app.logo'))
39-
->viteTheme('resources/css/filament.scss')
39+
->viteTheme('resources/css/filament.css')
4040
->discoverResources(in: app_path('Filament/Resources'), for: 'App\\Filament\\Resources')
4141
->discoverPages(in: app_path('Filament/Pages'), for: 'App\\Filament\\Pages')
4242
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\\Filament\\Widgets')

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@
66
"build": "vite build"
77
},
88
"devDependencies": {
9-
"@tailwindcss/forms": "^0.5.9",
10-
"@tailwindcss/typography": "^0.5.15",
11-
"autoprefixer": "^10.4.20",
9+
"@tailwindcss/forms": "^0.5.11",
10+
"@tailwindcss/typography": "^0.5.19",
1211
"axios": "^1.7",
1312
"laravel-vite-plugin": "^1.2",
1413
"postcss": "^8.4",
15-
"sass": "^1.80",
16-
"tailwindcss": "^3.4",
14+
"tailwindcss": "^4.2.2",
1715
"tippy.js": "^6.3.7",
1816
"vite": "^6.0"
1917
},
2018
"dependencies": {
19+
"@tailwindcss/vite": "^4.2.2",
2120
"flowbite": "^2.5"
2221
}
2322
}

postcss.config.cjs

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.dialog-container {
2-
@apply fixed top-0 left-0 right-0 bottom-0 w-full h-full bg-gray-500 bg-opacity-50 z-50 flex flex-col justify-center items-center overflow-auto p-5;
2+
@apply fixed top-0 left-0 right-0 bottom-0 w-full h-full bg-gray-500/50 z-50 flex flex-col justify-center items-center overflow-auto p-5;
33

44
margin-top: 0 !important;
55

6-
.dialog {
6+
& .dialog {
77
@apply bg-white rounded-lg shadow border border-gray-200 p-5 max-w-full;
88

99
width: 400px;
@@ -16,19 +16,19 @@
1616
width: 1000px;
1717
}
1818

19-
.dialog-header {
19+
& .dialog-header {
2020
@apply w-full pb-3 mb-3 border-b border-gray-200 text-lg text-gray-500 font-medium;
2121
}
2222

23-
.dialog-content {
23+
& .dialog-content {
2424
@apply w-full flex flex-col gap-3;
2525
}
2626
}
2727

28-
.dialog-buttons {
28+
& .dialog-buttons {
2929
@apply w-full pt-3 mt-3 border-t border-gray-200 flex items-center gap-3;
3030

31-
button {
31+
& button {
3232
@apply px-5 py-3 rounded bg-gray-500 hover:bg-gray-600 text-white hover:shadow hover:cursor-pointer font-medium;
3333

3434
min-width: 100px;

resources/css/filament.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@import 'tailwindcss' source(none);
2+
@import '../../vendor/filament/filament/resources/css/index.css';
3+
4+
@source '../views';
5+
@source '../../app/Filament';
6+
@source '../../app/Livewire';
7+
8+
@plugin '@tailwindcss/forms';
9+
@plugin '@tailwindcss/typography';
10+
11+
@import './kanban.css';
12+
@import './dialogs.css';
13+
@import './loading.io.css';
14+
15+
.filament-header-heading {
16+
display: block;
17+
}
18+
19+
.ticket-comment {
20+
& .actions {
21+
@apply opacity-0 transition;
22+
}
23+
&:hover {
24+
& .actions {
25+
@apply opacity-100;
26+
}
27+
}
28+
}
29+
30+
.filament-forms-repeater-component {
31+
& > .relative.flex.justify-center {
32+
@apply justify-start;
33+
}
34+
}
35+
36+
.social-icon {
37+
@apply w-6 h-6 rounded-full p-1 bg-gray-100 text-white;
38+
&.google { background-color: #ea4335; }
39+
&.facebook { background-color: #3b5998; }
40+
&.github { background-color: #000000; }
41+
&.twitter { background-color: #55acee; }
42+
}
43+
44+
label:has(.sprint-checkboxes) > span {
45+
width: 100%;
46+
}

resources/css/filament.scss

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
11
.kanban-container {
22
@apply w-full flex gap-2 overflow-x-auto;
33

4-
.kanban-statuses {
4+
& .kanban-statuses {
55
@apply w-full flex flex-col gap-2;
66

77
min-width: 250px;
88

9-
.status-header {
9+
& .status-header {
1010
@apply w-full flex gap-1 items-center bg-white p-3 mb-3 text-xs font-medium text-gray-400 uppercase rounded-t border-b-4;
1111
}
1212

13-
.status-container {
13+
& .status-container {
1414
@apply relative w-full flex flex-col gap-2 bg-white p-2 rounded overflow-y-auto overflow-x-hidden border-b-4;
1515

1616
height: calc(100vh);
1717

18-
.create-record {
18+
& .create-record {
1919
@apply flex items-center gap-1 mt-auto text-xs text-gray-500 p-3 bg-transparent hover:text-gray-600 hover:bg-gray-100 rounded;
2020
}
2121

22-
.kanban-record {
22+
& .kanban-record {
2323
@apply w-full flex flex-col gap-4 rounded bg-gray-50 border border-gray-200 p-3 hover:shadow hover:bg-gray-100 relative;
2424

25-
.handle {
25+
& .handle {
2626
@apply absolute top-0 right-0 text-gray-500 opacity-0 hover:cursor-pointer bg-gray-100 hover:bg-gray-200 rounded-bl p-2 transition;
2727
}
2828

2929
&:hover {
30-
.handle {
30+
& .handle {
3131
@apply opacity-100;
3232
}
3333
}
3434

35-
.record-info {
35+
& .record-info {
3636
@apply w-full flex flex-col gap-0;
3737

38-
.record-subtitle {
38+
& .record-subtitle {
3939
@apply text-xs text-gray-400;
4040
}
4141

42-
.record-title {
42+
& .record-title {
4343
@apply text-base text-gray-600 hover:cursor-pointer;
4444

45-
.code {
45+
& .code {
4646
@apply text-xs font-medium text-gray-400;
4747
}
4848

4949
&:hover {
50-
.title {
50+
& .title {
5151
@apply underline;
5252
}
5353
}
5454
}
5555
}
5656

57-
.record-footer {
57+
& .record-footer {
5858
@apply w-full flex justify-between items-center;
5959

60-
.record-type-code {
60+
& .record-type-code {
6161
@apply flex items-center gap-2;
6262
}
6363

64-
.avatar {
64+
& .avatar {
6565
@apply w-6 h-6 rounded-full bg-gray-200 bg-cover bg-center;
6666
}
6767
}
6868

69-
.record-relations {
69+
& .record-relations {
7070
@apply w-full flex flex-col gap-1;
7171

7272
& > div {
7373
@apply flex items-center gap-1 text-sm text-gray-600;
7474

75-
a {
75+
& a {
7676
@apply font-medium hover:underline;
7777
}
7878
}
7979
}
8080

81-
.record-logged-hours {
81+
& .record-logged-hours {
8282
@apply flex items-center gap-1 text-gray-500 text-xs;
8383
}
8484
}

tailwind.config.cjs

Lines changed: 0 additions & 28 deletions
This file was deleted.

vite.config.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
import { defineConfig } from 'vite';
22
import laravel from 'laravel-vite-plugin';
3+
import tailwindcss from '@tailwindcss/vite';
34

45
export default defineConfig({
56
plugins: [
67
laravel({
78
input: [
8-
'resources/css/filament.scss',
9+
'resources/css/filament.css',
910
'resources/js/filament.js'
1011
],
1112
refresh: true,
1213
}),
14+
tailwindcss(),
1315
],
14-
css: {
15-
preprocessorOptions: {
16-
scss: {
17-
silenceDeprecations: ['import'],
18-
},
19-
},
20-
},
2116
});

0 commit comments

Comments
 (0)