wip: article AI polish, category SEO fields, cover generator, membership plan seeder
This commit is contained in:
@@ -0,0 +1,312 @@
|
||||
/* LaraBlog admin table density + filter / sticky helpers */
|
||||
|
||||
/* —— Filters: full-width row, inline labels, wrap, Apply+Reset together —— */
|
||||
.lb-admin-table .fi-ta-filters-above-content-ctn {
|
||||
padding-block: 0.75rem;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-filters-above-content-ctn .fi-ta-filters-header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-filters-above-content-ctn .fi-ta-filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
gap: 0.625rem 0.875rem;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-filters-above-content-ctn .fi-sc {
|
||||
display: flex !important;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.625rem 0.875rem;
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-filters-above-content-ctn .fi-grid-col {
|
||||
flex: 0 1 auto;
|
||||
width: auto !important;
|
||||
max-width: none !important;
|
||||
min-width: 11rem;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-filters-above-content-ctn .fi-fo-field-has-inline-label {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-filters-above-content-ctn .fi-fo-field-has-inline-label > .fi-fo-field-label-ctn {
|
||||
flex: 0 0 auto;
|
||||
width: auto !important;
|
||||
max-width: none !important;
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-filters-above-content-ctn .fi-ta-filters-actions-ctn {
|
||||
display: inline-flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* —— Slightly denser rows (between Filament default and ultra-compact) —— */
|
||||
.lb-admin-table .fi-ta-header-cell {
|
||||
padding-block: 0.7rem;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-text:not(.fi-inline),
|
||||
.lb-admin-table .fi-ta-icon,
|
||||
.lb-admin-table .fi-ta-image,
|
||||
.lb-admin-table .fi-ta-color,
|
||||
.lb-admin-table .fi-ta-cell:has(.fi-ta-actions),
|
||||
.lb-admin-table .fi-ta-cell:has(.fi-ta-record-checkbox),
|
||||
.lb-admin-table .fi-ta-selection-cell {
|
||||
padding-block: 0.7rem;
|
||||
}
|
||||
|
||||
/* —— Sticky selection (left) + actions (right, fixed width) —— */
|
||||
.lb-admin-table .fi-ta-table {
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-selection-cell {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 2;
|
||||
background-color: #fff;
|
||||
box-shadow: 4px 0 8px -6px rgba(15, 23, 42, 0.18);
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-selection-cell.lb-sticky-col-start,
|
||||
.lb-admin-table .lb-sticky-col-start {
|
||||
position: sticky;
|
||||
z-index: 2;
|
||||
background-color: #fff;
|
||||
box-shadow: 4px 0 8px -6px rgba(15, 23, 42, 0.18);
|
||||
}
|
||||
|
||||
.lb-admin-table .lb-sticky-col-start {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-selection-cell + .lb-sticky-col-start,
|
||||
.lb-admin-table th.fi-ta-selection-cell + th.lb-sticky-col-start,
|
||||
.lb-admin-table td.fi-ta-selection-cell + td.lb-sticky-col-start {
|
||||
left: 3.25rem;
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-cell:has(.fi-ta-actions),
|
||||
.lb-admin-table .fi-ta-actions-header-cell {
|
||||
position: sticky;
|
||||
right: 0;
|
||||
z-index: 2;
|
||||
width: 7.5rem;
|
||||
min-width: 7.5rem;
|
||||
max-width: 7.5rem;
|
||||
background-color: #fff;
|
||||
box-shadow: -4px 0 8px -6px rgba(15, 23, 42, 0.18);
|
||||
}
|
||||
|
||||
.lb-admin-table .fi-ta-cell:has(.fi-ta-actions) .fi-ta-actions {
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
html.dark .lb-admin-table .fi-ta-selection-cell,
|
||||
html.dark .lb-admin-table .lb-sticky-col-start,
|
||||
html.dark .lb-admin-table .fi-ta-cell:has(.fi-ta-actions),
|
||||
html.dark .lb-admin-table .fi-ta-actions-header-cell {
|
||||
background-color: #101828;
|
||||
}
|
||||
|
||||
/* Selected row backgrounds stay coherent under sticky cells */
|
||||
.lb-admin-table .fi-selected .fi-ta-selection-cell,
|
||||
.lb-admin-table .fi-selected .lb-sticky-col-start,
|
||||
.lb-admin-table .fi-selected .fi-ta-cell:has(.fi-ta-actions) {
|
||||
background-color: color-mix(in srgb, var(--color-primary-50, #f0fdfa) 80%, #fff);
|
||||
}
|
||||
|
||||
html.dark .lb-admin-table .fi-selected .fi-ta-selection-cell,
|
||||
html.dark .lb-admin-table .fi-selected .lb-sticky-col-start,
|
||||
html.dark .lb-admin-table .fi-selected .fi-ta-cell:has(.fi-ta-actions) {
|
||||
background-color: color-mix(in srgb, var(--color-primary-950, #042f2e) 55%, #101828);
|
||||
}
|
||||
|
||||
/* Centered plugin-docs modal: scroll the body, keep header/footer on screen */
|
||||
.lb-plugin-docs-modal.fi-modal-window {
|
||||
max-height: min(90vh, 56rem);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.lb-plugin-docs-modal .fi-modal-content {
|
||||
min-height: 0;
|
||||
flex: 1 1 auto;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/* Plugin README rendered as HTML (not a notification dump) */
|
||||
.lb-plugin-docs {
|
||||
max-width: none;
|
||||
font-size: 0.9375rem;
|
||||
line-height: 1.7;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.lb-plugin-docs > *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.lb-plugin-docs h1,
|
||||
.lb-plugin-docs h2,
|
||||
.lb-plugin-docs h3,
|
||||
.lb-plugin-docs h4 {
|
||||
color: #0f172a;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.lb-plugin-docs h1 {
|
||||
font-size: 1.35rem;
|
||||
font-weight: 700;
|
||||
margin: 0 0 0.85rem;
|
||||
}
|
||||
|
||||
.lb-plugin-docs h2 {
|
||||
font-size: 1.12rem;
|
||||
font-weight: 650;
|
||||
margin: 1.5rem 0 0.55rem;
|
||||
}
|
||||
|
||||
.lb-plugin-docs h3,
|
||||
.lb-plugin-docs h4 {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
margin: 1.15rem 0 0.4rem;
|
||||
}
|
||||
|
||||
.lb-plugin-docs p,
|
||||
.lb-plugin-docs ul,
|
||||
.lb-plugin-docs ol,
|
||||
.lb-plugin-docs pre,
|
||||
.lb-plugin-docs table,
|
||||
.lb-plugin-docs blockquote {
|
||||
margin: 0 0 0.85rem;
|
||||
}
|
||||
|
||||
.lb-plugin-docs ul,
|
||||
.lb-plugin-docs ol {
|
||||
padding-left: 1.35rem;
|
||||
}
|
||||
|
||||
.lb-plugin-docs li {
|
||||
margin: 0.22rem 0;
|
||||
}
|
||||
|
||||
.lb-plugin-docs li > p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.lb-plugin-docs a {
|
||||
color: #0f766e;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.lb-plugin-docs strong {
|
||||
font-weight: 650;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.lb-plugin-docs code {
|
||||
font-size: 0.84em;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
background: #f1f5f9;
|
||||
padding: 0.12em 0.38em;
|
||||
border-radius: 0.28rem;
|
||||
}
|
||||
|
||||
.lb-plugin-docs pre {
|
||||
overflow-x: auto;
|
||||
background: #0f172a;
|
||||
color: #e2e8f0;
|
||||
padding: 0.9rem 1rem;
|
||||
border-radius: 0.55rem;
|
||||
}
|
||||
|
||||
.lb-plugin-docs pre code {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
color: inherit;
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.lb-plugin-docs table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.lb-plugin-docs th,
|
||||
.lb-plugin-docs td {
|
||||
border: 1px solid #e2e8f0;
|
||||
padding: 0.4rem 0.55rem;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.lb-plugin-docs th {
|
||||
background: #f8fafc;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.lb-plugin-docs blockquote {
|
||||
border-left: 3px solid #99f6e4;
|
||||
padding: 0.15rem 0 0.15rem 0.85rem;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.lb-plugin-docs hr {
|
||||
margin: 1.25rem 0;
|
||||
border: 0;
|
||||
border-top: 1px solid #e2e8f0;
|
||||
}
|
||||
|
||||
html.dark .lb-plugin-docs {
|
||||
color: #cbd5e1;
|
||||
}
|
||||
|
||||
html.dark .lb-plugin-docs h1,
|
||||
html.dark .lb-plugin-docs h2,
|
||||
html.dark .lb-plugin-docs h3,
|
||||
html.dark .lb-plugin-docs h4,
|
||||
html.dark .lb-plugin-docs strong {
|
||||
color: #f8fafc;
|
||||
}
|
||||
|
||||
html.dark .lb-plugin-docs a {
|
||||
color: #5eead4;
|
||||
}
|
||||
|
||||
html.dark .lb-plugin-docs code {
|
||||
background: #1e293b;
|
||||
}
|
||||
|
||||
html.dark .lb-plugin-docs th,
|
||||
html.dark .lb-plugin-docs td {
|
||||
border-color: #334155;
|
||||
}
|
||||
|
||||
html.dark .lb-plugin-docs th {
|
||||
background: #1e293b;
|
||||
}
|
||||
|
||||
html.dark .lb-plugin-docs blockquote {
|
||||
border-left-color: #134e4a;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
html.dark .lb-plugin-docs hr {
|
||||
border-top-color: #334155;
|
||||
}
|
||||
@@ -129,6 +129,32 @@ a:hover { color: var(--teal); }
|
||||
}
|
||||
|
||||
.post-list { display: grid; gap: 0; }
|
||||
.post-item__cover {
|
||||
display: block;
|
||||
margin: 0 0 0.75rem;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
aspect-ratio: 16 / 9;
|
||||
background: #e8eef2;
|
||||
}
|
||||
.post-item__cover img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
.post__cover {
|
||||
margin: 0 0 1.25rem;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
background: #e8eef2;
|
||||
}
|
||||
.post__cover img {
|
||||
width: 100%;
|
||||
max-height: 420px;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
.post-item {
|
||||
padding: 1.35rem 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
@@ -148,6 +174,24 @@ a:hover { color: var(--teal); }
|
||||
.meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.55rem; }
|
||||
.excerpt { margin: 0; color: #243442; }
|
||||
|
||||
.category-hero { margin-bottom: 1.25rem; }
|
||||
.category-hero__cover {
|
||||
margin: 0 0 1rem;
|
||||
border-radius: calc(var(--radius) - 0.35rem);
|
||||
overflow: hidden;
|
||||
}
|
||||
.category-hero__cover img {
|
||||
width: 100%;
|
||||
max-height: 240px;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
.category-hero__intro {
|
||||
margin: 0 0 0.75rem;
|
||||
color: #243442;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-family: var(--serif);
|
||||
font-size: clamp(1.8rem, 3vw, 2.4rem);
|
||||
@@ -212,6 +256,26 @@ a:hover { color: var(--teal); }
|
||||
.post__toc-item--h3 { padding-left: 0.85rem; }
|
||||
.post__toc-item--h4 { padding-left: 1.7rem; }
|
||||
|
||||
.post__paywall {
|
||||
margin-top: 1.5rem;
|
||||
padding: 1.1rem 1.25rem;
|
||||
border: 1px solid rgba(15, 138, 122, 0.28);
|
||||
background: rgba(15, 138, 122, 0.06);
|
||||
}
|
||||
.post__paywall-title {
|
||||
margin: 0 0 0.4rem;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
.post__paywall .button {
|
||||
display: inline-block;
|
||||
margin-top: 0.35rem;
|
||||
padding: 0.55rem 1rem;
|
||||
border-radius: 0.4rem;
|
||||
background: var(--teal-deep, #0f8a7a);
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post__content {
|
||||
font-size: 1.08rem;
|
||||
line-height: 1.8;
|
||||
@@ -272,6 +336,8 @@ a:hover { color: var(--teal); }
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
.comment__author { color: var(--ink); }
|
||||
a.comment__author { text-decoration: none; }
|
||||
a.comment__author:hover { color: var(--teal); }
|
||||
.comment__body { color: #243442; }
|
||||
|
||||
.article-body .body { font-size: 1.05rem; }
|
||||
|
||||
Reference in New Issue
Block a user