diff --git a/src/app/ui/browse.component.ts b/src/app/ui/browse.component.ts index 9a9c121..b8ed6ea 100644 --- a/src/app/ui/browse.component.ts +++ b/src/app/ui/browse.component.ts @@ -19,15 +19,7 @@ import { CommonModule } from '@angular/common'; `, - styles: [` - .server-item { - @apply p-2 bg-gray-700/50 text-gray-200 mb-2; - } - .btn-menu { - @apply w-full text-left px-4 py-2 text-gray-100 hover:bg-gray-700/50 transition-colors mb-2; - border-radius: 0; - } - `], + styleUrls: ['./menu-styles.css'], }) export class BrowseComponent { @Output() diff --git a/src/app/ui/menu-styles.css b/src/app/ui/menu-styles.css new file mode 100644 index 0000000..b5e0330 --- /dev/null +++ b/src/app/ui/menu-styles.css @@ -0,0 +1,37 @@ +/* Host styles */ +:host { + @apply contents; + font-family: Tiny5, serif; +} + +/* Fixed backdrop */ +.fixed { + @apply overflow-hidden; +} + +/* Menu button styles */ +.btn-menu { + @apply text-left px-2 py-1 text-gray-100 hover:bg-gray-700/50 transition-colors mb-2 rounded-none; + font-family: Tiny5, serif; +} + +/* Server item styles */ +.server-item { + @apply p-2 bg-gray-700/50 text-gray-200 mb-2; +} + +/* Setting item styles */ +.setting-item { + @apply flex justify-between items-center mb-4 text-gray-200; + font-family: Tiny5, serif; +} + +/* Input styles */ +input[type='text'], select, input[type='color'] { + @apply bg-gray-800 text-white px-2 py-1 rounded; +} + +/* Checkbox styles */ +input[type='checkbox'] { + @apply w-4 h-4 accent-cyan-500; +} diff --git a/src/app/ui/menu.component.ts b/src/app/ui/menu.component.ts index 0396ba4..235b551 100644 --- a/src/app/ui/menu.component.ts +++ b/src/app/ui/menu.component.ts @@ -20,7 +20,7 @@ import { BrowseComponent } from './browse.component.ts';

-
+ `, - styles: [` - :host { - @apply contents; - } - .fixed { - @apply overflow-hidden; - } - .btn-menu { - @apply text-left px-2 py-1 text-gray-100 hover:bg-gray-700/50 transition-colors mb-2 rounded-none; - - } - `], + styleUrls: ['./menu-styles.css'], }) export class MenuComponent { @Input() diff --git a/src/app/ui/settings.component.ts b/src/app/ui/settings.component.ts index 4164948..fb7fd7e 100644 --- a/src/app/ui/settings.component.ts +++ b/src/app/ui/settings.component.ts @@ -13,8 +13,7 @@ import { SettingsManager } from '../../client/core/SettingsManager.ts';
- +
@@ -37,14 +36,12 @@ import { SettingsManager } from '../../client/core/SettingsManager.ts';
- +
- @@ -61,34 +58,23 @@ import { SettingsManager } from '../../client/core/SettingsManager.ts';
- +
- +
- +
-
`, - styles: [` - .setting-item { - @apply flex justify-between items-center mb-4 text-gray-200; - } - .btn-menu { - @apply text-left px-2 py-1 text-gray-100 hover:bg-gray-700/50 transition-colors mb-2 rounded-none; - } - `], + styleUrls: ['./menu-styles.css'], }) export class SettingsComponent { @Output()