Browse Source

Merge pull request #36 from andrewdwallo/theme

Update theme
3.x
Andrew Wallo 1 year ago
parent
commit
efe11164f4
No account linked to committer's email address

+ 1
- 0
app/Providers/FilamentCompaniesServiceProvider.php View File

80
             )
80
             )
81
             ->colors([
81
             ->colors([
82
                 'primary' => Color::Indigo,
82
                 'primary' => Color::Indigo,
83
+                'gray' => Color::Gray,
83
             ])
84
             ])
84
             ->viteTheme('resources/css/filament/company/theme.css')
85
             ->viteTheme('resources/css/filament/company/theme.css')
85
             ->tenant(Company::class)
86
             ->tenant(Company::class)

+ 51
- 51
composer.lock View File

347
         },
347
         },
348
         {
348
         {
349
             "name": "aws/aws-sdk-php",
349
             "name": "aws/aws-sdk-php",
350
-            "version": "3.293.4",
350
+            "version": "3.293.5",
351
             "source": {
351
             "source": {
352
                 "type": "git",
352
                 "type": "git",
353
                 "url": "https://github.com/aws/aws-sdk-php.git",
353
                 "url": "https://github.com/aws/aws-sdk-php.git",
354
-                "reference": "bb62581cb3796dd1866ace52ed0a750bd22936a8"
354
+                "reference": "f2002e52b382b45231da3f9552033f769acfebd8"
355
             },
355
             },
356
             "dist": {
356
             "dist": {
357
                 "type": "zip",
357
                 "type": "zip",
358
-                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/bb62581cb3796dd1866ace52ed0a750bd22936a8",
359
-                "reference": "bb62581cb3796dd1866ace52ed0a750bd22936a8",
358
+                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/f2002e52b382b45231da3f9552033f769acfebd8",
359
+                "reference": "f2002e52b382b45231da3f9552033f769acfebd8",
360
                 "shasum": ""
360
                 "shasum": ""
361
             },
361
             },
362
             "require": {
362
             "require": {
436
             "support": {
436
             "support": {
437
                 "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
437
                 "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
438
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
438
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
439
-                "source": "https://github.com/aws/aws-sdk-php/tree/3.293.4"
439
+                "source": "https://github.com/aws/aws-sdk-php/tree/3.293.5"
440
             },
440
             },
441
-            "time": "2023-12-05T19:07:19+00:00"
441
+            "time": "2023-12-06T19:09:15+00:00"
442
         },
442
         },
443
         {
443
         {
444
             "name": "aws/aws-sdk-php-laravel",
444
             "name": "aws/aws-sdk-php-laravel",
1691
         },
1691
         },
1692
         {
1692
         {
1693
             "name": "filament/actions",
1693
             "name": "filament/actions",
1694
-            "version": "v3.1.12",
1694
+            "version": "v3.1.15",
1695
             "source": {
1695
             "source": {
1696
                 "type": "git",
1696
                 "type": "git",
1697
                 "url": "https://github.com/filamentphp/actions.git",
1697
                 "url": "https://github.com/filamentphp/actions.git",
1698
-                "reference": "9fa7c1d94db998d71dd1c2afc0443dd92de3e29f"
1698
+                "reference": "14b89222a5de0c987fdde16797fa0cadf6b62d99"
1699
             },
1699
             },
1700
             "dist": {
1700
             "dist": {
1701
                 "type": "zip",
1701
                 "type": "zip",
1702
-                "url": "https://api.github.com/repos/filamentphp/actions/zipball/9fa7c1d94db998d71dd1c2afc0443dd92de3e29f",
1703
-                "reference": "9fa7c1d94db998d71dd1c2afc0443dd92de3e29f",
1702
+                "url": "https://api.github.com/repos/filamentphp/actions/zipball/14b89222a5de0c987fdde16797fa0cadf6b62d99",
1703
+                "reference": "14b89222a5de0c987fdde16797fa0cadf6b62d99",
1704
                 "shasum": ""
1704
                 "shasum": ""
1705
             },
1705
             },
1706
             "require": {
1706
             "require": {
1738
                 "issues": "https://github.com/filamentphp/filament/issues",
1738
                 "issues": "https://github.com/filamentphp/filament/issues",
1739
                 "source": "https://github.com/filamentphp/filament"
1739
                 "source": "https://github.com/filamentphp/filament"
1740
             },
1740
             },
1741
-            "time": "2023-12-05T13:29:08+00:00"
1741
+            "time": "2023-12-07T12:32:28+00:00"
1742
         },
1742
         },
1743
         {
1743
         {
1744
             "name": "filament/filament",
1744
             "name": "filament/filament",
1745
-            "version": "v3.1.12",
1745
+            "version": "v3.1.15",
1746
             "source": {
1746
             "source": {
1747
                 "type": "git",
1747
                 "type": "git",
1748
                 "url": "https://github.com/filamentphp/panels.git",
1748
                 "url": "https://github.com/filamentphp/panels.git",
1749
-                "reference": "b4e8e18de60894d04c78b9773d3ee6da543944dc"
1749
+                "reference": "afe0c3316db11cdabfc2b12e201b7999d1146029"
1750
             },
1750
             },
1751
             "dist": {
1751
             "dist": {
1752
                 "type": "zip",
1752
                 "type": "zip",
1753
-                "url": "https://api.github.com/repos/filamentphp/panels/zipball/b4e8e18de60894d04c78b9773d3ee6da543944dc",
1754
-                "reference": "b4e8e18de60894d04c78b9773d3ee6da543944dc",
1753
+                "url": "https://api.github.com/repos/filamentphp/panels/zipball/afe0c3316db11cdabfc2b12e201b7999d1146029",
1754
+                "reference": "afe0c3316db11cdabfc2b12e201b7999d1146029",
1755
                 "shasum": ""
1755
                 "shasum": ""
1756
             },
1756
             },
1757
             "require": {
1757
             "require": {
1803
                 "issues": "https://github.com/filamentphp/filament/issues",
1803
                 "issues": "https://github.com/filamentphp/filament/issues",
1804
                 "source": "https://github.com/filamentphp/filament"
1804
                 "source": "https://github.com/filamentphp/filament"
1805
             },
1805
             },
1806
-            "time": "2023-12-05T13:29:11+00:00"
1806
+            "time": "2023-12-07T12:32:31+00:00"
1807
         },
1807
         },
1808
         {
1808
         {
1809
             "name": "filament/forms",
1809
             "name": "filament/forms",
1810
-            "version": "v3.1.12",
1810
+            "version": "v3.1.15",
1811
             "source": {
1811
             "source": {
1812
                 "type": "git",
1812
                 "type": "git",
1813
                 "url": "https://github.com/filamentphp/forms.git",
1813
                 "url": "https://github.com/filamentphp/forms.git",
1814
-                "reference": "55979eed7dc9c7197d82599b1d0a228151881a14"
1814
+                "reference": "56c3f923784b45f59b58ac76ce98ec044f4a106f"
1815
             },
1815
             },
1816
             "dist": {
1816
             "dist": {
1817
                 "type": "zip",
1817
                 "type": "zip",
1818
-                "url": "https://api.github.com/repos/filamentphp/forms/zipball/55979eed7dc9c7197d82599b1d0a228151881a14",
1819
-                "reference": "55979eed7dc9c7197d82599b1d0a228151881a14",
1818
+                "url": "https://api.github.com/repos/filamentphp/forms/zipball/56c3f923784b45f59b58ac76ce98ec044f4a106f",
1819
+                "reference": "56c3f923784b45f59b58ac76ce98ec044f4a106f",
1820
                 "shasum": ""
1820
                 "shasum": ""
1821
             },
1821
             },
1822
             "require": {
1822
             "require": {
1859
                 "issues": "https://github.com/filamentphp/filament/issues",
1859
                 "issues": "https://github.com/filamentphp/filament/issues",
1860
                 "source": "https://github.com/filamentphp/filament"
1860
                 "source": "https://github.com/filamentphp/filament"
1861
             },
1861
             },
1862
-            "time": "2023-12-05T13:29:11+00:00"
1862
+            "time": "2023-12-07T12:32:31+00:00"
1863
         },
1863
         },
1864
         {
1864
         {
1865
             "name": "filament/infolists",
1865
             "name": "filament/infolists",
1866
-            "version": "v3.1.12",
1866
+            "version": "v3.1.15",
1867
             "source": {
1867
             "source": {
1868
                 "type": "git",
1868
                 "type": "git",
1869
                 "url": "https://github.com/filamentphp/infolists.git",
1869
                 "url": "https://github.com/filamentphp/infolists.git",
1870
-                "reference": "719ba0d5995575750dd011185241b1a908295eb6"
1870
+                "reference": "00798e2aa59602e9dc85f56d5d1743d16842125f"
1871
             },
1871
             },
1872
             "dist": {
1872
             "dist": {
1873
                 "type": "zip",
1873
                 "type": "zip",
1874
-                "url": "https://api.github.com/repos/filamentphp/infolists/zipball/719ba0d5995575750dd011185241b1a908295eb6",
1875
-                "reference": "719ba0d5995575750dd011185241b1a908295eb6",
1874
+                "url": "https://api.github.com/repos/filamentphp/infolists/zipball/00798e2aa59602e9dc85f56d5d1743d16842125f",
1875
+                "reference": "00798e2aa59602e9dc85f56d5d1743d16842125f",
1876
                 "shasum": ""
1876
                 "shasum": ""
1877
             },
1877
             },
1878
             "require": {
1878
             "require": {
1910
                 "issues": "https://github.com/filamentphp/filament/issues",
1910
                 "issues": "https://github.com/filamentphp/filament/issues",
1911
                 "source": "https://github.com/filamentphp/filament"
1911
                 "source": "https://github.com/filamentphp/filament"
1912
             },
1912
             },
1913
-            "time": "2023-12-05T13:29:06+00:00"
1913
+            "time": "2023-12-07T12:32:29+00:00"
1914
         },
1914
         },
1915
         {
1915
         {
1916
             "name": "filament/notifications",
1916
             "name": "filament/notifications",
1917
-            "version": "v3.1.12",
1917
+            "version": "v3.1.15",
1918
             "source": {
1918
             "source": {
1919
                 "type": "git",
1919
                 "type": "git",
1920
                 "url": "https://github.com/filamentphp/notifications.git",
1920
                 "url": "https://github.com/filamentphp/notifications.git",
1921
-                "reference": "b0a917a041bee3819a3b58c543d82ba463ffb20c"
1921
+                "reference": "13029b0f257ce9f0f9691b5fe8de933c581d03bc"
1922
             },
1922
             },
1923
             "dist": {
1923
             "dist": {
1924
                 "type": "zip",
1924
                 "type": "zip",
1925
-                "url": "https://api.github.com/repos/filamentphp/notifications/zipball/b0a917a041bee3819a3b58c543d82ba463ffb20c",
1926
-                "reference": "b0a917a041bee3819a3b58c543d82ba463ffb20c",
1925
+                "url": "https://api.github.com/repos/filamentphp/notifications/zipball/13029b0f257ce9f0f9691b5fe8de933c581d03bc",
1926
+                "reference": "13029b0f257ce9f0f9691b5fe8de933c581d03bc",
1927
                 "shasum": ""
1927
                 "shasum": ""
1928
             },
1928
             },
1929
             "require": {
1929
             "require": {
1962
                 "issues": "https://github.com/filamentphp/filament/issues",
1962
                 "issues": "https://github.com/filamentphp/filament/issues",
1963
                 "source": "https://github.com/filamentphp/filament"
1963
                 "source": "https://github.com/filamentphp/filament"
1964
             },
1964
             },
1965
-            "time": "2023-12-02T22:24:00+00:00"
1965
+            "time": "2023-12-07T12:32:30+00:00"
1966
         },
1966
         },
1967
         {
1967
         {
1968
             "name": "filament/spatie-laravel-tags-plugin",
1968
             "name": "filament/spatie-laravel-tags-plugin",
1969
-            "version": "v3.1.12",
1969
+            "version": "v3.1.15",
1970
             "source": {
1970
             "source": {
1971
                 "type": "git",
1971
                 "type": "git",
1972
                 "url": "https://github.com/filamentphp/spatie-laravel-tags-plugin.git",
1972
                 "url": "https://github.com/filamentphp/spatie-laravel-tags-plugin.git",
2003
         },
2003
         },
2004
         {
2004
         {
2005
             "name": "filament/support",
2005
             "name": "filament/support",
2006
-            "version": "v3.1.12",
2006
+            "version": "v3.1.15",
2007
             "source": {
2007
             "source": {
2008
                 "type": "git",
2008
                 "type": "git",
2009
                 "url": "https://github.com/filamentphp/support.git",
2009
                 "url": "https://github.com/filamentphp/support.git",
2060
         },
2060
         },
2061
         {
2061
         {
2062
             "name": "filament/tables",
2062
             "name": "filament/tables",
2063
-            "version": "v3.1.12",
2063
+            "version": "v3.1.15",
2064
             "source": {
2064
             "source": {
2065
                 "type": "git",
2065
                 "type": "git",
2066
                 "url": "https://github.com/filamentphp/tables.git",
2066
                 "url": "https://github.com/filamentphp/tables.git",
2067
-                "reference": "2e4decb182cad6babf6ddf64ee56da071288c321"
2067
+                "reference": "e595f934dcbc9c227c76f35a719291b94fd8fa28"
2068
             },
2068
             },
2069
             "dist": {
2069
             "dist": {
2070
                 "type": "zip",
2070
                 "type": "zip",
2071
-                "url": "https://api.github.com/repos/filamentphp/tables/zipball/2e4decb182cad6babf6ddf64ee56da071288c321",
2072
-                "reference": "2e4decb182cad6babf6ddf64ee56da071288c321",
2071
+                "url": "https://api.github.com/repos/filamentphp/tables/zipball/e595f934dcbc9c227c76f35a719291b94fd8fa28",
2072
+                "reference": "e595f934dcbc9c227c76f35a719291b94fd8fa28",
2073
                 "shasum": ""
2073
                 "shasum": ""
2074
             },
2074
             },
2075
             "require": {
2075
             "require": {
2109
                 "issues": "https://github.com/filamentphp/filament/issues",
2109
                 "issues": "https://github.com/filamentphp/filament/issues",
2110
                 "source": "https://github.com/filamentphp/filament"
2110
                 "source": "https://github.com/filamentphp/filament"
2111
             },
2111
             },
2112
-            "time": "2023-12-05T13:29:30+00:00"
2112
+            "time": "2023-12-07T12:32:45+00:00"
2113
         },
2113
         },
2114
         {
2114
         {
2115
             "name": "filament/widgets",
2115
             "name": "filament/widgets",
2116
-            "version": "v3.1.12",
2116
+            "version": "v3.1.15",
2117
             "source": {
2117
             "source": {
2118
                 "type": "git",
2118
                 "type": "git",
2119
                 "url": "https://github.com/filamentphp/widgets.git",
2119
                 "url": "https://github.com/filamentphp/widgets.git",
2701
         },
2701
         },
2702
         {
2702
         {
2703
             "name": "kirschbaum-development/eloquent-power-joins",
2703
             "name": "kirschbaum-development/eloquent-power-joins",
2704
-            "version": "3.3.3",
2704
+            "version": "3.4.0",
2705
             "source": {
2705
             "source": {
2706
                 "type": "git",
2706
                 "type": "git",
2707
                 "url": "https://github.com/kirschbaum-development/eloquent-power-joins.git",
2707
                 "url": "https://github.com/kirschbaum-development/eloquent-power-joins.git",
2708
-                "reference": "e55fa70dfa4a5e897443454825b9d4ce6081786a"
2708
+                "reference": "9238fcb53d777265ee9d8d139810e2cadecde079"
2709
             },
2709
             },
2710
             "dist": {
2710
             "dist": {
2711
                 "type": "zip",
2711
                 "type": "zip",
2712
-                "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/e55fa70dfa4a5e897443454825b9d4ce6081786a",
2713
-                "reference": "e55fa70dfa4a5e897443454825b9d4ce6081786a",
2712
+                "url": "https://api.github.com/repos/kirschbaum-development/eloquent-power-joins/zipball/9238fcb53d777265ee9d8d139810e2cadecde079",
2713
+                "reference": "9238fcb53d777265ee9d8d139810e2cadecde079",
2714
                 "shasum": ""
2714
                 "shasum": ""
2715
             },
2715
             },
2716
             "require": {
2716
             "require": {
2757
             ],
2757
             ],
2758
             "support": {
2758
             "support": {
2759
                 "issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues",
2759
                 "issues": "https://github.com/kirschbaum-development/eloquent-power-joins/issues",
2760
-                "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.3.3"
2760
+                "source": "https://github.com/kirschbaum-development/eloquent-power-joins/tree/3.4.0"
2761
             },
2761
             },
2762
-            "time": "2023-10-31T18:01:18+00:00"
2762
+            "time": "2023-12-07T10:44:41+00:00"
2763
         },
2763
         },
2764
         {
2764
         {
2765
             "name": "laravel/framework",
2765
             "name": "laravel/framework",
6084
         },
6084
         },
6085
         {
6085
         {
6086
             "name": "spatie/laravel-translatable",
6086
             "name": "spatie/laravel-translatable",
6087
-            "version": "6.5.4",
6087
+            "version": "6.5.5",
6088
             "source": {
6088
             "source": {
6089
                 "type": "git",
6089
                 "type": "git",
6090
                 "url": "https://github.com/spatie/laravel-translatable.git",
6090
                 "url": "https://github.com/spatie/laravel-translatable.git",
6091
-                "reference": "18e0b072d18f8357d8eae2b53e4ea10f554f58a7"
6091
+                "reference": "d6dc7c9fe3c678ce50b2d6a4a7434fcbcfc3df4c"
6092
             },
6092
             },
6093
             "dist": {
6093
             "dist": {
6094
                 "type": "zip",
6094
                 "type": "zip",
6095
-                "url": "https://api.github.com/repos/spatie/laravel-translatable/zipball/18e0b072d18f8357d8eae2b53e4ea10f554f58a7",
6096
-                "reference": "18e0b072d18f8357d8eae2b53e4ea10f554f58a7",
6095
+                "url": "https://api.github.com/repos/spatie/laravel-translatable/zipball/d6dc7c9fe3c678ce50b2d6a4a7434fcbcfc3df4c",
6096
+                "reference": "d6dc7c9fe3c678ce50b2d6a4a7434fcbcfc3df4c",
6097
                 "shasum": ""
6097
                 "shasum": ""
6098
             },
6098
             },
6099
             "require": {
6099
             "require": {
6154
             ],
6154
             ],
6155
             "support": {
6155
             "support": {
6156
                 "issues": "https://github.com/spatie/laravel-translatable/issues",
6156
                 "issues": "https://github.com/spatie/laravel-translatable/issues",
6157
-                "source": "https://github.com/spatie/laravel-translatable/tree/6.5.4"
6157
+                "source": "https://github.com/spatie/laravel-translatable/tree/6.5.5"
6158
             },
6158
             },
6159
             "funding": [
6159
             "funding": [
6160
                 {
6160
                 {
6162
                     "type": "github"
6162
                     "type": "github"
6163
                 }
6163
                 }
6164
             ],
6164
             ],
6165
-            "time": "2023-12-01T10:26:11+00:00"
6165
+            "time": "2023-12-06T10:56:22+00:00"
6166
         },
6166
         },
6167
         {
6167
         {
6168
             "name": "squirephp/model",
6168
             "name": "squirephp/model",

+ 3
- 3
package-lock.json View File

766
             "dev": true
766
             "dev": true
767
         },
767
         },
768
         "node_modules/electron-to-chromium": {
768
         "node_modules/electron-to-chromium": {
769
-            "version": "1.4.605",
770
-            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.605.tgz",
771
-            "integrity": "sha512-V52j+P5z6cdRqTjPR/bYNxx7ETCHIkm5VIGuyCy3CMrfSnbEpIlLnk5oHmZo7gYvDfh2TfHeanB6rawyQ23ktg==",
769
+            "version": "1.4.607",
770
+            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.607.tgz",
771
+            "integrity": "sha512-YUlnPwE6eYxzwBnFmawA8LiLRfm70R2aJRIUv0n03uHt/cUzzYACOogmvk8M2+hVzt/kB80KJXx7d5f5JofPvQ==",
772
             "dev": true
772
             "dev": true
773
         },
773
         },
774
         "node_modules/esbuild": {
774
         "node_modules/esbuild": {

+ 0
- 7
resources/css/filament/company/tailwind.config.js View File

15
         extend: {
15
         extend: {
16
             colors: {
16
             colors: {
17
                 white: '#F6F5F3',
17
                 white: '#F6F5F3',
18
-                platinum: '#E8E9EB',
19
-                moonlight: '#F6F5F3',
20
-                'translucent': {
21
-                    light: 'rgba(255, 255, 255, 0.5)',
22
-                    DEFAULT: 'rgba(255, 255, 255, 0.5)',
23
-                    dark: 'rgba(25, 25, 25, 0.5)',
24
-                },
25
             },
18
             },
26
         }
19
         }
27
     }
20
     }

+ 63
- 4
resources/css/filament/company/theme.css View File

3
 @config './tailwind.config.js';
3
 @config './tailwind.config.js';
4
 
4
 
5
 .fi-body {
5
 .fi-body {
6
-    @apply bg-platinum;
6
+    position: relative;
7
+    background-color: #E8E9EB;
8
+    z-index: 1;
9
+}
10
+
11
+.fi-body::before {
12
+    content: '';
13
+    position: absolute;
14
+    top: 0;
15
+    left: 0;
16
+    width: 100%;
17
+    height: 100%;
18
+    background-image:
19
+        linear-gradient(99.6deg,
20
+            rgba(232, 233, 235, 1) 10.6%,
21
+            rgba(240, 241, 243, 1) 32.9%,
22
+            rgba(248, 249, 251, 0.7) 50%,
23
+            rgba(240, 241, 243, 1) 67.1%,
24
+            rgba(232, 233, 235, 1) 83.4%);
25
+    pointer-events: none;
26
+    z-index: -1;
27
+}
28
+
29
+:is(.dark .fi-body) {
30
+    position: relative;
31
+    background-color: rgb(3, 7, 18);
32
+    z-index: 1;
33
+}
34
+
35
+:is(.dark .fi-body)::before {
36
+    content: '';
37
+    position: absolute;
38
+    top: 0;
39
+    right: 0;
40
+    background-image: radial-gradient(
41
+        ellipse at top right,
42
+        rgba(var(--primary-950), 1) 0%,
43
+        rgba(var(--primary-950), 0.9) 15%,
44
+        rgba(var(--primary-900), 0.7) 30%,
45
+        rgba(var(--primary-900), 0.5) 45%,
46
+        rgba(var(--primary-950), 0.3) 60%,
47
+        rgba(var(--primary-950), 0.1) 75%,
48
+        rgba(3,7,18,0) 100%
49
+    );
50
+    width: 100%;
51
+    height: 100%;
52
+    pointer-events: none;
53
+    z-index: -1;
7
 }
54
 }
8
 
55
 
9
 .fi-topbar > nav, .fi-sidebar-header {
56
 .fi-topbar > nav, .fi-sidebar-header {
24
 }
71
 }
25
 
72
 
26
 .fi-topbar > nav.topbar-hovered, .fi-sidebar-header.topbar-hovered {
73
 .fi-topbar > nav.topbar-hovered, .fi-sidebar-header.topbar-hovered {
27
-    @apply bg-translucent dark:bg-translucent-dark !important;
74
+    background-color: rgba(255, 255, 255, 0.75) !important;
75
+}
76
+
77
+:is(.dark .fi-topbar > nav.topbar-hovered, .dark .fi-sidebar-header.topbar-hovered) {
78
+    background-color: rgba(10, 16, 33, 0.75) !important;
79
+}
80
+
81
+.fi-topbar > nav.topbar-scrolled, .fi-sidebar-header.topbar-scrolled {
82
+    background-color: rgba(255, 255, 255, 0.5) !important;
83
+}
84
+
85
+:is(.dark .fi-topbar > nav.topbar-scrolled, .dark .fi-sidebar-header.topbar-scrolled) {
86
+    background-color: rgba(10, 16, 33, 0.5) !important;
28
 }
87
 }
29
 
88
 
30
 .fi-dropdown.fi-topbar-dropdown .fi-dropdown-panel {
89
 .fi-dropdown.fi-topbar-dropdown .fi-dropdown-panel {
105
 .fi-topbar-dropdown-list-item {
164
 .fi-topbar-dropdown-list-item {
106
     @apply flex justify-between relative transition-[left] duration-200 z-[2] rounded-none left-0;
165
     @apply flex justify-between relative transition-[left] duration-200 z-[2] rounded-none left-0;
107
 
166
 
108
-    &:after {
167
+    &::after {
109
         @apply bg-primary-600 dark:bg-primary-400 content-[''] block h-0 left-[-1rem] absolute transition-all duration-300 w-px top-[calc(100%_+_0.5rem)];
168
         @apply bg-primary-600 dark:bg-primary-400 content-[''] block h-0 left-[-1rem] absolute transition-all duration-300 w-px top-[calc(100%_+_0.5rem)];
110
     }
169
     }
111
 
170
 
117
         @apply text-primary-600 dark:text-primary-400;
176
         @apply text-primary-600 dark:text-primary-400;
118
     }
177
     }
119
 
178
 
120
-    &:hover:after {
179
+    &:hover::after {
121
         @apply -top-2 h-[calc(100%+1rem)];
180
         @apply -top-2 h-[calc(100%+1rem)];
122
     }
181
     }
123
 
182
 

+ 17
- 0
resources/js/top-navigation.js View File

19
     insertBgDiv();
19
     insertBgDiv();
20
 
20
 
21
     handleTopbarAndSidebarHover();
21
     handleTopbarAndSidebarHover();
22
+
23
+    handleScroll();
22
 });
24
 });
23
 
25
 
24
 const updateBorder = (dropdown) => {
26
 const updateBorder = (dropdown) => {
63
     sidebarHeader.addEventListener('mouseleave', removeHoveredClass);
65
     sidebarHeader.addEventListener('mouseleave', removeHoveredClass);
64
 };
66
 };
65
 
67
 
68
+const handleScroll = () => {
69
+    const topbarNav = document.querySelector('.fi-topbar > nav');
70
+    const sidebarHeader = document.querySelector('.fi-sidebar-header');
71
+
72
+    window.addEventListener('scroll', () => {
73
+        if (window.scrollY > 0) {
74
+            topbarNav.classList.add('topbar-scrolled');
75
+            sidebarHeader.classList.add('topbar-scrolled');
76
+        } else {
77
+            topbarNav.classList.remove('topbar-scrolled');
78
+            sidebarHeader.classList.remove('topbar-scrolled');
79
+        }
80
+    });
81
+}
82
+

Loading…
Cancel
Save