Auto-deploy: 2026-05-18 01:49:47

This commit is contained in:
Hamza-Ayed
2026-05-18 01:49:47 +03:00
parent 6c5fd21be6
commit 42aec81504
6 changed files with 548 additions and 11 deletions

167
post_feed.css Normal file
View File

@@ -0,0 +1,167 @@
/* ============================================================
post_feed.css — Smart Comment Feature Styles
Scoped to .lja-comment-btn and .lja-comment-box
============================================================ */
/* ── Smart Comment Button ─────────────────────────────────── */
.lja-comment-btn {
display: inline-flex;
align-items: center;
gap: 5px;
margin-left: 8px;
padding: 6px 14px;
background: linear-gradient(135deg, #6c63ff, #4f46e5);
color: #fff;
border: none;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}
.lja-comment-btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 14px rgba(108, 99, 255, 0.45);
background: linear-gradient(135deg, #7c73ff, #5f56f5);
}
.lja-comment-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}
/* Spinner inside button */
.lja-spinner {
display: inline-block;
width: 10px;
height: 10px;
border: 2px solid rgba(255, 255, 255, 0.4);
border-top-color: #fff;
border-radius: 50%;
animation: lja-spin 0.7s linear infinite;
}
@keyframes lja-spin {
to { transform: rotate(360deg); }
}
/* ── Comment Suggestion Box ───────────────────────────────── */
.lja-comment-box {
margin: 10px 12px;
background: linear-gradient(145deg, #1a1a2e, #16213e);
border: 1px solid rgba(108, 99, 255, 0.35);
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
animation: lja-fadeIn 0.25s ease;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@keyframes lja-fadeIn {
from { opacity: 0; transform: translateY(-6px); }
to { opacity: 1; transform: translateY(0); }
}
/* Header */
.lja-cb-header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
background: rgba(108, 99, 255, 0.15);
border-bottom: 1px solid rgba(108, 99, 255, 0.2);
}
.lja-cb-icon {
font-size: 16px;
}
.lja-cb-title {
flex: 1;
font-size: 13px;
font-weight: 700;
color: #a89cff;
letter-spacing: 0.3px;
}
.lja-cb-close {
background: none;
border: none;
color: #888;
font-size: 14px;
cursor: pointer;
padding: 2px 6px;
border-radius: 4px;
transition: color 0.2s, background 0.2s;
line-height: 1;
}
.lja-cb-close:hover {
color: #fff;
background: rgba(255, 80, 80, 0.25);
}
/* Editable text area */
.lja-cb-text {
display: block;
width: 100%;
min-height: 80px;
max-height: 160px;
padding: 14px 16px;
background: transparent;
border: none;
color: #e0deff;
font-size: 14px;
line-height: 1.65;
resize: vertical;
outline: none;
box-sizing: border-box;
font-family: inherit;
}
.lja-cb-text:focus {
background: rgba(108, 99, 255, 0.05);
}
/* Action buttons row */
.lja-cb-actions {
display: flex;
gap: 8px;
padding: 10px 14px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
flex-wrap: wrap;
}
.lja-cb-actions button {
padding: 6px 14px;
border: 1px solid rgba(108, 99, 255, 0.4);
border-radius: 8px;
background: rgba(108, 99, 255, 0.12);
color: #b0a8ff;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
font-family: inherit;
}
.lja-cb-actions button:hover {
background: rgba(108, 99, 255, 0.3);
color: #fff;
border-color: rgba(108, 99, 255, 0.7);
}
/* Paste button — primary emphasis */
.lja-cb-paste {
background: linear-gradient(135deg, rgba(108,99,255,0.3), rgba(79,70,229,0.3)) !important;
border-color: rgba(108, 99, 255, 0.6) !important;
}
.lja-cb-paste:hover {
background: linear-gradient(135deg, rgba(108,99,255,0.55), rgba(79,70,229,0.55)) !important;
}