Upload files to "kronic-chat/css"
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/* Stage 2 visual shell. Do not re-style existing media cards or player. */
|
||||
:root{--borg-rail:170px;--borg-call:58px;--borg-top:60px}
|
||||
body{background:#0c111a}
|
||||
.borg-shell{position:fixed;inset:var(--borg-top) 0 0 0;display:flex;z-index:10;pointer-events:none}
|
||||
.borg-rail{pointer-events:auto;display:flex;flex-direction:column;gap:5px;padding:12px 8px;background:#111a26;border-right:1px solid #2b394b;width:var(--borg-rail);box-sizing:border-box;overflow:auto}
|
||||
.borg-brand{padding:11px;color:#e5efff;font-weight:800;letter-spacing:1.3px}
|
||||
.borg-nav{display:flex;gap:10px;align-items:center;text-align:left;background:transparent;color:#c0cfe1;border:0;border-radius:11px;padding:12px 11px;font-size:14px;cursor:pointer;min-height:43px}
|
||||
.borg-nav:hover,.borg-nav:focus-visible{background:#27374a;color:#fff}
|
||||
.borg-selected{background:#2c466a;color:#fff}
|
||||
.borg-rail-spacer{flex:1}
|
||||
.borg-workspace{min-width:0;flex:1;display:flex;flex-direction:column;padding:12px;pointer-events:auto}
|
||||
.borg-room-background{border:1px solid #26364b;background:radial-gradient(circle at 65% 30%,#1b2e41,#121d2a 67%);border-radius:17px;flex:1;display:flex;flex-direction:column;min-height:0}
|
||||
.borg-room-heading{padding:13px 16px;display:flex;gap:15px;align-items:center;justify-content:space-between;color:#e2efff}
|
||||
#borgChatStatus{font-size:12px;color:#9eafc3}
|
||||
.borg-avatar-placeholder{margin:auto;text-align:center;color:#c9d7e9;padding:20px;max-width:480px}
|
||||
.borg-avatar-placeholder h2{font-size:22px;margin:10px 0}
|
||||
.borg-avatar-placeholder p{font-size:13px;color:#9db0c5}
|
||||
.borg-avatar-circle{display:grid;place-items:center;width:74px;height:74px;border-radius:50%;background:#314a70;color:#e4edff;margin:auto;font-size:35px}
|
||||
.borg-call-strip{height:var(--borg-call);min-height:var(--borg-call);display:flex;justify-content:space-between;gap:10px;align-items:center;background:#172434;border:1px solid #2b4059;border-radius:12px;padding:0 15px;margin-top:10px;color:#d1dced}
|
||||
.borg-notice{font-size:12px;color:#9fb1c5}
|
||||
.borg-window-wrap{position:fixed;top:calc(var(--borg-top) + 16px);left:calc(var(--borg-rail) + 19px);width:calc(100vw - var(--borg-rail) - 40px);height:calc(100dvh - var(--borg-top) - var(--borg-call) - 52px);z-index:30;background:#111923;border:1px solid #39516e;border-radius:16px;box-shadow:0 20px 65px #0009;display:flex;flex-direction:column;overflow:hidden;resize:both;min-width:320px;min-height:260px}
|
||||
.borg-window-wrap[hidden]{display:none!important}
|
||||
.borg-window-header{height:47px;min-height:47px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#1c2a3b;color:#e8f2ff;padding:0 12px;cursor:grab;touch-action:none;user-select:none}
|
||||
.borg-window-header:active{cursor:grabbing}
|
||||
.borg-window-actions{display:flex;gap:6px}.borg-window-actions button{min-width:34px;min-height:34px;border:0;background:#304258;color:white;border-radius:8px;cursor:pointer;font-size:20px}
|
||||
.borg-window-wrap .page-container{position:relative!important;inset:auto!important;width:auto!important;max-width:none!important;flex:1;overflow:auto!important;min-height:0;margin:0!important;padding:12px!important;box-sizing:border-box}
|
||||
.borg-window-wrap.borg-max{top:calc(var(--borg-top) + 5px)!important;left:calc(var(--borg-rail) + 5px)!important;width:calc(100vw - var(--borg-rail) - 10px)!important;height:calc(100dvh - var(--borg-top) - var(--borg-call) - 13px)!important;resize:none}
|
||||
/* The original topbar and player overlay remain untouched. */
|
||||
@media(max-width:700px){:root{--borg-rail:57px;--borg-top:55px;--borg-call:52px}.borg-rail{padding:6px 3px}.borg-brand{font-size:13px;padding:11px 4px}.borg-brand span,.borg-nav span{display:none}.borg-nav{justify-content:center;font-size:20px;padding:9px 3px;min-height:45px}.borg-workspace{padding:6px}.borg-room-heading{font-size:12px}.borg-call-strip{padding:0 8px}.borg-notice{font-size:10px;max-width:140px}.borg-window-wrap{left:62px;top:calc(var(--borg-top) + 5px);width:calc(100vw - 67px);height:calc(100dvh - var(--borg-top) - var(--borg-call) - 12px);min-width:0;min-height:150px;resize:none;border-radius:11px}.borg-window-wrap .page-container{padding:6px!important}.borg-window-wrap.borg-max{left:60px!important;width:calc(100vw - 62px)!important}}
|
||||
@@ -0,0 +1,549 @@
|
||||
/* Kronic Chat theme aligned with Music Browser / GIPHY */
|
||||
|
||||
:root {
|
||||
--chat-bg: #111;
|
||||
--chat-panel: #181818;
|
||||
--chat-panel-2: #222;
|
||||
--chat-workspace: #313338;
|
||||
--chat-border: #333;
|
||||
--chat-border-strong: #444;
|
||||
--chat-border-hover: #555;
|
||||
--chat-text: #e0e0e0;
|
||||
--chat-text-strong: #fff;
|
||||
--chat-text-soft: #ccc;
|
||||
--chat-text-muted: #aaa;
|
||||
--chat-blue: #4a90e2;
|
||||
--chat-blue-hover: #5aa0f0;
|
||||
--chat-green: #23a559;
|
||||
--chat-red: #da373c;
|
||||
--chat-yellow: #f0b232;
|
||||
--chat-radius-small: 4px;
|
||||
--chat-radius: 8px;
|
||||
--chat-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
background: var(--chat-bg);
|
||||
color: var(--chat-text);
|
||||
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.chat-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
background: var(--chat-bg);
|
||||
color: var(--chat-text);
|
||||
}
|
||||
|
||||
.chat-header {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 48px;
|
||||
padding: 8px 10px;
|
||||
background: var(--chat-bg);
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
.chat-header-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
gap: 9px;
|
||||
}
|
||||
|
||||
.chat-status-dot {
|
||||
flex: 0 0 auto;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--chat-green);
|
||||
box-shadow: 0 0 7px rgba(35, 165, 89, 0.65);
|
||||
}
|
||||
|
||||
.chat-title {
|
||||
margin: 0;
|
||||
color: var(--chat-text-strong);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.chat-subtitle {
|
||||
margin: 2px 0 0;
|
||||
color: var(--chat-text-muted);
|
||||
font-size: 10px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.chat-messages {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
padding: 10px;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
background: var(--chat-workspace);
|
||||
scroll-behavior: smooth;
|
||||
scrollbar-color: #1a1b1e transparent;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.chat-messages::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
.chat-messages::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.chat-messages::-webkit-scrollbar-thumb {
|
||||
border: 2px solid transparent;
|
||||
border-radius: 10px;
|
||||
background: #1a1b1e;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.chat-messages::-webkit-scrollbar-thumb:hover {
|
||||
background: #111214;
|
||||
background-clip: padding-box;
|
||||
}
|
||||
|
||||
.chat-empty {
|
||||
margin: auto;
|
||||
padding: 24px 18px;
|
||||
color: var(--chat-text-muted);
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.chat-message {
|
||||
display: grid;
|
||||
grid-template-columns: 38px minmax(0, 1fr);
|
||||
width: 100%;
|
||||
padding: 8px;
|
||||
gap: 9px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--chat-radius);
|
||||
background: rgba(24, 24, 24, 0.72);
|
||||
transition: background 120ms ease, border-color 120ms ease;
|
||||
}
|
||||
|
||||
.chat-message + .chat-message {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.chat-message:hover {
|
||||
border-color: rgba(255, 255, 255, 0.08);
|
||||
background: #222;
|
||||
}
|
||||
|
||||
.chat-avatar {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--chat-border-strong);
|
||||
border-radius: 6px;
|
||||
background: #222;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.chat-avatar img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.chat-message-body {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.chat-message-header {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 3px;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.chat-username {
|
||||
color: var(--chat-text-strong);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.chat-timestamp {
|
||||
color: var(--chat-text-muted);
|
||||
font-size: 9px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chat-message-text {
|
||||
color: #ddd;
|
||||
font-size: 12.5px;
|
||||
line-height: 1.45;
|
||||
overflow-wrap: anywhere;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.chat-message-text a {
|
||||
color: #7ab7ff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.chat-message-text a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.chat-message.own-message {
|
||||
border-color: rgba(74, 144, 226, 0.24);
|
||||
background: rgba(74, 144, 226, 0.08);
|
||||
}
|
||||
|
||||
.chat-message.own-message:hover {
|
||||
border-color: rgba(74, 144, 226, 0.42);
|
||||
background: rgba(74, 144, 226, 0.12);
|
||||
}
|
||||
|
||||
.chat-message.system-message {
|
||||
display: block;
|
||||
margin: 6px 0;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--chat-border);
|
||||
border-radius: var(--chat-radius-small);
|
||||
background: #181818;
|
||||
color: var(--chat-text-muted);
|
||||
font-size: 11px;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.chat-message-image,
|
||||
.chat-gif {
|
||||
display: block;
|
||||
width: auto;
|
||||
max-width: min(420px, 100%);
|
||||
max-height: 320px;
|
||||
margin-top: 8px;
|
||||
object-fit: contain;
|
||||
border: 1px solid var(--chat-border);
|
||||
border-radius: var(--chat-radius);
|
||||
background: #181818;
|
||||
box-shadow: var(--chat-shadow);
|
||||
}
|
||||
|
||||
.chat-media-card,
|
||||
.chat-file-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: min(420px, 100%);
|
||||
margin-top: 8px;
|
||||
padding: 9px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--chat-border);
|
||||
border-radius: var(--chat-radius);
|
||||
background: #181818;
|
||||
color: #ddd;
|
||||
gap: 10px;
|
||||
transition: border-color 120ms ease, background 120ms ease;
|
||||
}
|
||||
|
||||
.chat-media-card:hover,
|
||||
.chat-file-card:hover {
|
||||
border-color: var(--chat-border-hover);
|
||||
background: #222;
|
||||
}
|
||||
|
||||
.chat-file-icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: 0 0 38px;
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
border: 1px solid var(--chat-border);
|
||||
border-radius: 5px;
|
||||
background: #222;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.chat-file-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.chat-file-link {
|
||||
overflow: hidden;
|
||||
color: #7ab7ff;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chat-file-link:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.chat-file-size {
|
||||
color: var(--chat-text-muted);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.chat-card-title {
|
||||
overflow: hidden;
|
||||
color: var(--chat-text-strong);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chat-card-meta {
|
||||
margin-top: 3px;
|
||||
color: var(--chat-text-muted);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.chat-card-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 7px;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.chat-card-button {
|
||||
padding: 5px 8px;
|
||||
border: 1px solid #3b82f6;
|
||||
border-radius: var(--chat-radius-small);
|
||||
background: #2b6cb0;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
transition: background 120ms ease, border-color 120ms ease;
|
||||
}
|
||||
|
||||
.chat-card-button:hover {
|
||||
border-color: var(--chat-blue-hover);
|
||||
background: #3479c5;
|
||||
}
|
||||
|
||||
.chat-input-area {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
padding: 9px 10px;
|
||||
gap: 6px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
||||
background: var(--chat-bg);
|
||||
}
|
||||
|
||||
.message-input-wrapper {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
border: 1px solid #555;
|
||||
border-radius: var(--chat-radius-small);
|
||||
background: #222;
|
||||
transition: border-color 120ms ease, box-shadow 120ms ease;
|
||||
}
|
||||
|
||||
.message-input-wrapper:hover {
|
||||
border-color: #666;
|
||||
}
|
||||
|
||||
.message-input-wrapper:focus-within {
|
||||
border-color: var(--chat-blue);
|
||||
box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.35);
|
||||
}
|
||||
|
||||
.message-input {
|
||||
width: 100%;
|
||||
height: 36px;
|
||||
padding: 0 10px;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
background: transparent;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.message-input::placeholder {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.chat-action-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex: 0 0 auto;
|
||||
height: 36px;
|
||||
min-width: 38px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid #444;
|
||||
border-radius: var(--chat-radius-small);
|
||||
background: #333;
|
||||
color: #ccc;
|
||||
cursor: pointer;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
|
||||
}
|
||||
|
||||
.chat-action-button:hover:not(:disabled) {
|
||||
border-color: #555;
|
||||
background: #3c3c3c;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.chat-action-button:active:not(:disabled) {
|
||||
transform: translateY(1px);
|
||||
}
|
||||
|
||||
.gif-button {
|
||||
color: #fff;
|
||||
border-color: #6f42c1;
|
||||
background: #59359b;
|
||||
}
|
||||
|
||||
.gif-button:hover:not(:disabled) {
|
||||
border-color: #8758d3;
|
||||
background: #6842ad;
|
||||
}
|
||||
|
||||
.file-button {
|
||||
background: #333;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.send-button {
|
||||
border-color: var(--chat-blue);
|
||||
background: var(--chat-blue);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.send-button:hover:not(:disabled) {
|
||||
border-color: var(--chat-blue-hover);
|
||||
background: var(--chat-blue-hover);
|
||||
}
|
||||
|
||||
.chat-action-button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.chat-mention {
|
||||
padding: 1px 4px;
|
||||
border-radius: var(--chat-radius-small);
|
||||
background: rgba(74, 144, 226, 0.2);
|
||||
color: #9fcaff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.chat-message.mentioned {
|
||||
border-color: rgba(240, 178, 50, 0.5);
|
||||
background: rgba(240, 178, 50, 0.08);
|
||||
}
|
||||
|
||||
.chat-unread-badge {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
margin-left: 5px;
|
||||
padding: 0 5px;
|
||||
border-radius: 20px;
|
||||
background: var(--chat-red);
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@media (max-width: 520px) {
|
||||
.chat-header {
|
||||
min-height: 44px;
|
||||
padding: 7px 8px;
|
||||
}
|
||||
|
||||
.chat-title {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.chat-subtitle {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.chat-messages {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.chat-message {
|
||||
grid-template-columns: 32px minmax(0, 1fr);
|
||||
padding: 7px;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.chat-avatar {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.chat-message-text {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.chat-input-area {
|
||||
padding: 7px;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.message-input {
|
||||
height: 34px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.chat-action-button {
|
||||
height: 34px;
|
||||
min-width: 34px;
|
||||
padding: 0 8px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.send-button {
|
||||
min-width: 46px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,741 @@
|
||||
/* =====================================================
|
||||
Global reset
|
||||
===================================================== */
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
background: #111;
|
||||
color: #e0e0e0;
|
||||
|
||||
font-family:
|
||||
Arial,
|
||||
Helvetica,
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
button,
|
||||
input {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
|
||||
/* =====================================================
|
||||
Main GIPHY browser
|
||||
===================================================== */
|
||||
|
||||
.giphy-browser {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
background: #313338;
|
||||
color: #dbdee1;
|
||||
}
|
||||
|
||||
|
||||
/* =====================================================
|
||||
Header
|
||||
===================================================== */
|
||||
|
||||
.giphy-header {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
min-height: 58px;
|
||||
padding: 9px 12px;
|
||||
|
||||
border-bottom:
|
||||
1px solid rgba(0, 0, 0, 0.35);
|
||||
|
||||
background: #1e1f22;
|
||||
}
|
||||
|
||||
.giphy-header-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
min-width: 0;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.giphy-header-icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
|
||||
width: 38px;
|
||||
height: 30px;
|
||||
|
||||
border-radius: 6px;
|
||||
|
||||
background: #5865f2;
|
||||
color: #fff;
|
||||
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.giphy-title {
|
||||
margin: 0;
|
||||
|
||||
color: #f2f3f5;
|
||||
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.giphy-subtitle {
|
||||
margin: 3px 0 0;
|
||||
|
||||
color: #949ba4;
|
||||
|
||||
font-size: 11px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.giphy-close-button {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
|
||||
width: 30px;
|
||||
height: 28px;
|
||||
|
||||
padding: 0;
|
||||
|
||||
border: 1px solid #4e5058;
|
||||
border-radius: 5px;
|
||||
|
||||
background: #2b2d31;
|
||||
color: #dbdee1;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
font-size: 18px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.giphy-close-button:hover {
|
||||
background: #3f4147;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
/* =====================================================
|
||||
Search section
|
||||
===================================================== */
|
||||
|
||||
.giphy-search-section {
|
||||
flex: 0 0 auto;
|
||||
|
||||
padding: 10px 12px 8px;
|
||||
|
||||
border-bottom:
|
||||
1px solid rgba(0, 0, 0, 0.3);
|
||||
|
||||
background: #2b2d31;
|
||||
}
|
||||
|
||||
.search-row {
|
||||
display: grid;
|
||||
|
||||
grid-template-columns:
|
||||
minmax(0, 1fr)
|
||||
auto;
|
||||
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.giphy-search-input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 38px;
|
||||
|
||||
padding: 0 11px;
|
||||
|
||||
border: 1px solid #4e5058;
|
||||
border-radius: 6px;
|
||||
|
||||
outline: 0;
|
||||
|
||||
background: #1e1f22;
|
||||
color: #f2f3f5;
|
||||
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.giphy-search-input::placeholder {
|
||||
color: #949ba4;
|
||||
}
|
||||
|
||||
.giphy-search-input:focus {
|
||||
border-color: #5865f2;
|
||||
}
|
||||
|
||||
.giphy-search-button {
|
||||
height: 38px;
|
||||
|
||||
padding: 0 15px;
|
||||
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
|
||||
background: #5865f2;
|
||||
color: #fff;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.giphy-search-button:hover:not(:disabled) {
|
||||
background: #4752c4;
|
||||
}
|
||||
|
||||
.giphy-search-button:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.giphy-status {
|
||||
min-height: 18px;
|
||||
|
||||
margin-top: 7px;
|
||||
|
||||
color: #949ba4;
|
||||
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
|
||||
/* =====================================================
|
||||
Main two-column layout
|
||||
===================================================== */
|
||||
|
||||
.giphy-layout {
|
||||
display: grid;
|
||||
|
||||
grid-template-columns:
|
||||
minmax(190px, 230px)
|
||||
minmax(0, 1fr);
|
||||
|
||||
flex: 1 1 0;
|
||||
|
||||
width: 100%;
|
||||
height: 0;
|
||||
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
background: #313338;
|
||||
}
|
||||
|
||||
|
||||
/* =====================================================
|
||||
History panel
|
||||
===================================================== */
|
||||
|
||||
.giphy-history-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
width: 100%;
|
||||
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
border-right:
|
||||
1px solid rgba(0, 0, 0, 0.35);
|
||||
|
||||
background: #2b2d31;
|
||||
}
|
||||
|
||||
.giphy-history-header {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
min-height: 45px;
|
||||
padding: 0 10px 0 12px;
|
||||
|
||||
border-bottom:
|
||||
1px solid rgba(0, 0, 0, 0.3);
|
||||
|
||||
background: #232428;
|
||||
}
|
||||
|
||||
.giphy-history-title {
|
||||
color: #f2f3f5;
|
||||
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.giphy-history-count {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
|
||||
min-width: 21px;
|
||||
height: 21px;
|
||||
|
||||
margin-left: 5px;
|
||||
padding: 0 6px;
|
||||
|
||||
border-radius: 20px;
|
||||
|
||||
background: #1e1f22;
|
||||
color: #b5bac1;
|
||||
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.giphy-history-clear {
|
||||
padding: 5px 8px;
|
||||
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
|
||||
background: transparent;
|
||||
color: #b5bac1;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.giphy-history-clear:hover {
|
||||
background: #3f4147;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.giphy-history-list {
|
||||
flex: 1 1 auto;
|
||||
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
|
||||
padding: 8px;
|
||||
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.giphy-history-empty {
|
||||
padding: 24px 10px;
|
||||
|
||||
color: #949ba4;
|
||||
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.giphy-history-item {
|
||||
display: grid;
|
||||
|
||||
grid-template-columns:
|
||||
52px
|
||||
minmax(0, 1fr);
|
||||
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
margin-bottom: 7px;
|
||||
padding: 7px;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
border: 1px solid transparent;
|
||||
border-radius: 7px;
|
||||
|
||||
background: #232428;
|
||||
}
|
||||
|
||||
.giphy-history-item:hover {
|
||||
border-color:
|
||||
rgba(255, 255, 255, 0.07);
|
||||
|
||||
background: #35373c;
|
||||
}
|
||||
|
||||
.giphy-history-image {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
|
||||
object-fit: cover;
|
||||
|
||||
border-radius: 5px;
|
||||
|
||||
background: #1e1f22;
|
||||
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.giphy-history-info {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.giphy-history-item-title {
|
||||
overflow: hidden;
|
||||
|
||||
color: #f2f3f5;
|
||||
|
||||
font-size: 11px;
|
||||
font-weight: 650;
|
||||
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.giphy-history-meta {
|
||||
margin-top: 3px;
|
||||
|
||||
color: #949ba4;
|
||||
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.giphy-history-actions {
|
||||
display: flex;
|
||||
|
||||
grid-column: 1 / -1;
|
||||
|
||||
justify-content: flex-end;
|
||||
|
||||
gap: 4px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.giphy-history-action {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
|
||||
min-width: 27px;
|
||||
height: 25px;
|
||||
|
||||
padding: 0 7px;
|
||||
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
|
||||
background: #1e1f22;
|
||||
color: #b5bac1;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.giphy-history-action:hover {
|
||||
background: #5865f2;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
/* =====================================================
|
||||
Search results
|
||||
===================================================== */
|
||||
|
||||
.giphy-results {
|
||||
display: grid;
|
||||
|
||||
grid-template-columns:
|
||||
repeat(
|
||||
auto-fill,
|
||||
minmax(145px, 1fr)
|
||||
);
|
||||
|
||||
grid-auto-rows: max-content;
|
||||
|
||||
align-content: start;
|
||||
align-items: start;
|
||||
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
|
||||
padding: 12px;
|
||||
|
||||
gap: 12px;
|
||||
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
|
||||
background: #313338;
|
||||
}
|
||||
|
||||
.gif-item-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
min-width: 0;
|
||||
|
||||
padding: 7px;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
border: 1px solid #3f4147;
|
||||
border-radius: 8px;
|
||||
|
||||
background: #18191c;
|
||||
}
|
||||
|
||||
.gif-item-wrap:hover {
|
||||
border-color: #686b74;
|
||||
background: #1e1f22;
|
||||
}
|
||||
|
||||
.giphy-image-button {
|
||||
display: block;
|
||||
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
|
||||
background: #111;
|
||||
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.giphy-result {
|
||||
display: block;
|
||||
|
||||
width: 100%;
|
||||
aspect-ratio: 1 / 1;
|
||||
|
||||
object-fit: cover;
|
||||
|
||||
background: #111;
|
||||
}
|
||||
|
||||
.giphy-result-title {
|
||||
min-height: 30px;
|
||||
|
||||
margin-top: 7px;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
color: #f2f3f5;
|
||||
|
||||
font-size: 11px;
|
||||
line-height: 1.3;
|
||||
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
|
||||
.giphy-result-actions {
|
||||
display: grid;
|
||||
|
||||
grid-template-columns:
|
||||
repeat(2, minmax(0, 1fr));
|
||||
|
||||
gap: 5px;
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.giphy-action-button {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
|
||||
padding: 6px 4px;
|
||||
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.send-gif-btn {
|
||||
background: #5865f2;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.send-gif-btn:hover {
|
||||
background: #4752c4;
|
||||
}
|
||||
|
||||
.set-avatar-btn {
|
||||
background: #4e5058;
|
||||
color: #dbdee1;
|
||||
}
|
||||
|
||||
.set-avatar-btn:hover {
|
||||
background: #686b74;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
/* =====================================================
|
||||
Empty and error states
|
||||
===================================================== */
|
||||
|
||||
.giphy-empty {
|
||||
grid-column: 1 / -1;
|
||||
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
padding: 40px 16px;
|
||||
|
||||
color: #949ba4;
|
||||
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.giphy-empty-icon {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
|
||||
width: 54px;
|
||||
height: 40px;
|
||||
|
||||
margin-bottom: 10px;
|
||||
|
||||
border-radius: 7px;
|
||||
|
||||
background: #1e1f22;
|
||||
color: #b5bac1;
|
||||
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.giphy-empty-title {
|
||||
color: #f2f3f5;
|
||||
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.giphy-empty-text {
|
||||
margin-top: 5px;
|
||||
|
||||
color: #949ba4;
|
||||
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.gif-load-error {
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
|
||||
/* =====================================================
|
||||
Scrollbars
|
||||
===================================================== */
|
||||
|
||||
.giphy-history-list,
|
||||
.giphy-results {
|
||||
scrollbar-color: #1e1f22 #2b2d31;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.giphy-history-list::-webkit-scrollbar,
|
||||
.giphy-results::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.giphy-history-list::-webkit-scrollbar-track,
|
||||
.giphy-results::-webkit-scrollbar-track {
|
||||
background: #2b2d31;
|
||||
}
|
||||
|
||||
.giphy-history-list::-webkit-scrollbar-thumb,
|
||||
.giphy-results::-webkit-scrollbar-thumb {
|
||||
border: 2px solid #2b2d31;
|
||||
border-radius: 10px;
|
||||
|
||||
background: #1e1f22;
|
||||
}
|
||||
|
||||
|
||||
/* =====================================================
|
||||
Responsive layout
|
||||
===================================================== */
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.giphy-layout {
|
||||
grid-template-columns:
|
||||
165px
|
||||
minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.giphy-results {
|
||||
grid-template-columns:
|
||||
repeat(
|
||||
auto-fill,
|
||||
minmax(125px, 1fr)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 540px) {
|
||||
.giphy-layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
height: auto;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.giphy-history-panel {
|
||||
flex: 0 0 180px;
|
||||
|
||||
border-right: 0;
|
||||
border-bottom:
|
||||
1px solid rgba(0, 0, 0, 0.35);
|
||||
}
|
||||
|
||||
.giphy-results {
|
||||
flex: 1 1 auto;
|
||||
|
||||
grid-template-columns:
|
||||
repeat(
|
||||
auto-fill,
|
||||
minmax(120px, 1fr)
|
||||
);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user