Moves bookmarks from core hardcoding into modules/bookmarks/ as a
fully self-contained module, following the same pattern as addressbook.
Module contributions via platform slots:
- aside.tab_panel: bookmark sidebar panel
- topbar.right_item: bookmark toggle button
- layout.body_end_template: bookmark/group dialogs
- layout.head_style: bookmark CSS (form + sidebar)
- runtime.component: bookmark-save and bookmark-panel (phase: late)
- search.resource_item: bookmarks in global search (user-scoped via {{userId}})
Backend fully in module namespace (MintyPHP\Module\Bookmarks\*):
- Service: BookmarkService, BookmarkServicesFactory, BookmarkRepositoryFactory
- Repository: BookmarkRepository, BookmarkGroupRepository, BookmarkNavigationRepository
- Support: BookmarkUrlNormalizer
- Providers: BookmarksSessionProvider, BookmarksLayoutProvider, BookmarksSearchProvider
Core cleanup:
- Removed all bookmark-specific markup from core templates
- Removed core DI registrations for bookmark services
- Removed core bookmark pages, JS, CSS
- AuthSessionTenantContextService delegates to module SessionProvider
Architecture guards:
- NoBookmarksHardcodingTest: verifies zero bookmark references in core
- testModuleClassesUseModuleNamespace: prevents core namespace leakage
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
116 lines
2.9 KiB
CSS
116 lines
2.9 KiB
CSS
/**
|
|
* app-bookmark-form.css
|
|
* Styles for bookmark and bookmark-group dialogs.
|
|
*/
|
|
@layer components {
|
|
dialog[data-app-bookmark-dialog] > article.app-bookmark-dialog,
|
|
dialog[data-app-bookmark-group-dialog] > article.app-bookmark-dialog {
|
|
max-width: 24rem;
|
|
}
|
|
|
|
dialog[data-app-bookmark-dialog] > article.app-bookmark-dialog > header,
|
|
dialog[data-app-bookmark-group-dialog] > article.app-bookmark-dialog > header {
|
|
position: relative;
|
|
padding-inline-end: 2rem;
|
|
}
|
|
|
|
dialog[data-app-bookmark-dialog] > article.app-bookmark-dialog > header h2,
|
|
dialog[data-app-bookmark-group-dialog] > article.app-bookmark-dialog > header h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
dialog[data-app-bookmark-dialog] [data-bookmark-dialog-close].close,
|
|
dialog[data-app-bookmark-group-dialog] [data-bookmark-group-dialog-close].close {
|
|
position: absolute;
|
|
inset-inline-end: 1rem;
|
|
inset-block-start: 1rem;
|
|
float: none;
|
|
margin: 0;
|
|
}
|
|
|
|
dialog[data-app-bookmark-dialog] form,
|
|
dialog[data-app-bookmark-group-dialog] form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin: 0;
|
|
}
|
|
|
|
dialog[data-app-bookmark-dialog] form label,
|
|
dialog[data-app-bookmark-group-dialog] form label {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
dialog[data-app-bookmark-dialog] form input[type="text"],
|
|
dialog[data-app-bookmark-dialog] form select,
|
|
dialog[data-app-bookmark-group-dialog] form input[type="text"],
|
|
dialog[data-app-bookmark-group-dialog] form select {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
dialog[data-app-bookmark-dialog] form footer,
|
|
dialog[data-app-bookmark-group-dialog] form footer {
|
|
padding-top: var(--app-spacing);
|
|
}
|
|
|
|
.app-bookmark-delete-btn {
|
|
color: var(--app-del-color, #c62828);
|
|
border-color: var(--app-del-color, #c62828);
|
|
width: 100%;
|
|
}
|
|
|
|
.app-bookmark-delete-btn:hover {
|
|
background: var(--app-del-color, #c62828);
|
|
color: #fff;
|
|
}
|
|
|
|
.app-bookmark-new-group-btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.app-bookmark-group-icon-picker {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, minmax(0, 1fr));
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
.app-bookmark-group-icon-option {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
min-height: 1.9rem;
|
|
border: 1px solid var(--app-border);
|
|
border-radius: var(--app-border-radius);
|
|
background: transparent;
|
|
color: var(--app-muted-color);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
margin: 0;
|
|
transition: border-color 120ms ease, color 120ms ease;
|
|
}
|
|
|
|
.app-bookmark-group-icon-option:hover {
|
|
border-color: var(--app-primary);
|
|
color: var(--app-primary);
|
|
}
|
|
|
|
.app-bookmark-group-icon-option.app-bookmark-icon-active {
|
|
border-color: var(--app-primary);
|
|
background: var(--app-primary);
|
|
color: #fff;
|
|
}
|
|
|
|
.app-bookmark-group-icon-option > i {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.app-bookmark-delete-separator {
|
|
margin-block: 0.2rem 0.35rem;
|
|
}
|
|
}
|