mirror of
https://github.com/pvrzz/toolscord.git
synced 2026-11-29 05:22:25 +00:00
Add files via upload
This commit is contained in:
+421
@@ -0,0 +1,421 @@
|
||||
<!--
|
||||
===========================
|
||||
Toolscord
|
||||
by: github.com/pvrzz
|
||||
===========================
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Toolscord — Discord Tools</title>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" referrerpolicy="no-referrer" />
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="app">
|
||||
<aside class="sidebar">
|
||||
<div class="server-rail">
|
||||
<div class="server-pill active" title="Toolscord">
|
||||
<span class="server-glyph">TC</span>
|
||||
</div>
|
||||
<div class="server-sep"></div>
|
||||
<a class="server-pill ghost" href="https://github.com/pvrzz" target="_blank" rel="noopener" title="github.com/pvrzz">
|
||||
<span class="server-glyph">pz</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="channels">
|
||||
<div class="channels-header">
|
||||
<span>Toolscord</span>
|
||||
<i class="fa-solid fa-chevron-down"></i>
|
||||
</div>
|
||||
<div class="channels-scroll">
|
||||
<div class="channel-group">
|
||||
<div class="channel-group-label">Create</div>
|
||||
<button class="channel active" data-tab="editor">
|
||||
<span class="hash">#</span><span>editor</span>
|
||||
</button>
|
||||
<button class="channel" data-tab="embed">
|
||||
<span class="hash">#</span><span>embed</span>
|
||||
</button>
|
||||
<button class="channel" data-tab="timestamps">
|
||||
<span class="hash">#</span><span>timestamps</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="channel-group">
|
||||
<div class="channel-group-label">Developer</div>
|
||||
<button class="channel" data-tab="snowflake">
|
||||
<span class="hash">#</span><span>snowflake</span>
|
||||
</button>
|
||||
<button class="channel" data-tab="permissions">
|
||||
<span class="hash">#</span><span>permissions</span>
|
||||
</button>
|
||||
<button class="channel" data-tab="colors">
|
||||
<span class="hash">#</span><span>colors</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="channel-group">
|
||||
<div class="channel-group-label">Reference</div>
|
||||
<button class="channel" data-tab="cheatsheet">
|
||||
<span class="hash">#</span><span>cheatsheet</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="channel-group" id="formattingGroup">
|
||||
<div class="channel-group-label">Formatting</div>
|
||||
<div class="quick-list" id="quickList"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="user-bar">
|
||||
<div class="user-avatar">pz</div>
|
||||
<div class="user-meta">
|
||||
<span class="user-name">you</span>
|
||||
<span class="user-status">using toolscord</span>
|
||||
</div>
|
||||
<a class="user-gh" href="https://github.com/pvrzz" target="_blank" rel="noopener" title="github.com/pvrzz">
|
||||
<i class="fa-brands fa-github"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<main class="main">
|
||||
<header class="topbar">
|
||||
<div class="topbar-title">
|
||||
<span class="hash big">#</span>
|
||||
<span id="topbarName">editor</span>
|
||||
</div>
|
||||
<div class="topbar-divider"></div>
|
||||
<div class="topbar-desc" id="topbarDesc">Format your message visually — no symbols to memorize.</div>
|
||||
<div class="topbar-spacer"></div>
|
||||
<button class="ghost-btn" id="copyBtn">
|
||||
<i class="fa-solid fa-copy"></i>
|
||||
<span>Copy</span>
|
||||
</button>
|
||||
<button class="ghost-btn" id="clearBtn">
|
||||
<i class="fa-solid fa-trash-can"></i>
|
||||
<span>Clear</span>
|
||||
</button>
|
||||
</header>
|
||||
|
||||
<!-- EDITOR TAB -->
|
||||
<section class="tab-panel active" data-panel="editor">
|
||||
<div class="chat-scroll">
|
||||
<div class="channel-welcome">
|
||||
<div class="cw-icon">#</div>
|
||||
<h2>Welcome to #editor</h2>
|
||||
<p>This is the start of the <strong>#editor</strong> channel. Type in the box below and watch your message render live — exactly how Discord will show it.</p>
|
||||
</div>
|
||||
<div class="dp-message live">
|
||||
<div class="dp-avatar">pz</div>
|
||||
<div class="dp-body">
|
||||
<div class="dp-head">
|
||||
<span class="dp-name">you</span>
|
||||
<span class="dp-badge">APP</span>
|
||||
<span class="dp-time">Today at 5:13 PM</span>
|
||||
</div>
|
||||
<div class="dp-content" id="preview"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="composer-wrap">
|
||||
<div class="composer">
|
||||
<div class="composer-toolbar" id="toolbar"></div>
|
||||
<div class="composer-main">
|
||||
<button class="composer-add" title="Insert formatting">
|
||||
<i class="fa-solid fa-plus"></i>
|
||||
</button>
|
||||
<textarea id="editor" rows="1" spellcheck="false" placeholder="Message #editor"></textarea>
|
||||
<div class="composer-actions">
|
||||
<button class="composer-action" id="copyComposer" title="Copy message">
|
||||
<i class="fa-solid fa-copy"></i>
|
||||
</button>
|
||||
<button class="composer-action" id="emojiBtn" title="Emoji">
|
||||
<i class="fa-regular fa-face-smile"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="composer-hint">Renders live above • <strong>Ctrl</strong>+<strong>B</strong>/<strong>I</strong>/<strong>U</strong> to format • select text, then click a button</div>
|
||||
</div>
|
||||
|
||||
<div class="emoji-popup" id="emojiPopup" hidden>
|
||||
<div class="emoji-search">
|
||||
<i class="fa-solid fa-magnifying-glass"></i>
|
||||
<input id="emojiSearch" placeholder="Search emoji" spellcheck="false" />
|
||||
</div>
|
||||
<div class="emoji-grid" id="emojiGrid"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- EMBED TAB -->
|
||||
<section class="tab-panel" data-panel="embed">
|
||||
<div class="embed-layout">
|
||||
<div class="embed-form" id="embedForm">
|
||||
<h2>Embed Builder</h2>
|
||||
<p class="panel-sub">Design a rich embed visually, then copy the JSON for a webhook or bot. Markdown works in the description and field values.</p>
|
||||
|
||||
<div class="ef-section">
|
||||
<div class="ef-section-title">Author</div>
|
||||
<div class="ef-row">
|
||||
<div class="ef-field"><label>Name</label><input data-embed="author.name" placeholder="Author name" /></div>
|
||||
</div>
|
||||
<div class="ef-row">
|
||||
<div class="ef-field"><label>Author URL</label><input data-embed="author.url" placeholder="https://" /></div>
|
||||
<div class="ef-field"><label>Icon URL</label><input data-embed="author.icon_url" placeholder="https://" /></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ef-section">
|
||||
<div class="ef-section-title">Body</div>
|
||||
<div class="ef-row">
|
||||
<div class="ef-field grow"><label>Title</label><input data-embed="title" placeholder="Embed title" /></div>
|
||||
<div class="ef-field"><label>Title URL</label><input data-embed="url" placeholder="https://" /></div>
|
||||
</div>
|
||||
<div class="ef-field"><label>Description</label><textarea data-embed="description" rows="4" placeholder="Supports **markdown**, links, lists…"></textarea></div>
|
||||
<div class="ef-row">
|
||||
<div class="ef-field"><label>Color</label>
|
||||
<div class="ef-color">
|
||||
<input type="color" id="embedColor" value="#5865f2" />
|
||||
<input type="text" id="embedColorHex" value="#5865F2" maxlength="7" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="ef-field"><label>Decimal (for JSON)</label><input id="embedColorDec" readonly /></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ef-section">
|
||||
<div class="ef-section-title">Media</div>
|
||||
<div class="ef-row">
|
||||
<div class="ef-field"><label>Image URL</label><input data-embed="image.url" placeholder="https://big-image" /></div>
|
||||
<div class="ef-field"><label>Thumbnail URL</label><input data-embed="thumbnail.url" placeholder="https://small-thumb" /></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ef-section">
|
||||
<div class="ef-section-title">
|
||||
Fields
|
||||
<button class="mini-btn small" id="addField">+ Add field</button>
|
||||
</div>
|
||||
<div id="fieldsList" class="fields-list"></div>
|
||||
</div>
|
||||
|
||||
<div class="ef-section">
|
||||
<div class="ef-section-title">Footer</div>
|
||||
<div class="ef-row">
|
||||
<div class="ef-field grow"><label>Footer text</label><input data-embed="footer.text" placeholder="Footer text" /></div>
|
||||
<div class="ef-field"><label>Footer icon URL</label><input data-embed="footer.icon_url" placeholder="https://" /></div>
|
||||
</div>
|
||||
<label class="ef-check"><input type="checkbox" id="embedTimestamp" /> Include current timestamp</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="embed-side">
|
||||
<div class="embed-preview-wrap">
|
||||
<div class="pane-label"><span>Preview</span><span class="pane-hint">live Discord embed</span></div>
|
||||
<div class="discord-preview">
|
||||
<div class="dp-message">
|
||||
<div class="dp-avatar">pz</div>
|
||||
<div class="dp-body">
|
||||
<div class="dp-head">
|
||||
<span class="dp-name">you</span><span class="dp-badge">APP</span>
|
||||
<span class="dp-time">Today at 5:13 PM</span>
|
||||
</div>
|
||||
<div id="embedPreview"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="embed-json-wrap">
|
||||
<div class="pane-label">
|
||||
<span>JSON</span>
|
||||
<span class="pane-hint">webhook / bot ready</span>
|
||||
<span class="pane-spacer"></span>
|
||||
<button class="mini-btn small" id="importJson">Import</button>
|
||||
<button class="mini-btn small" id="copyJson">Copy</button>
|
||||
</div>
|
||||
<textarea id="embedJson" class="json-box" spellcheck="false"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="webhook-box">
|
||||
<div class="pane-label">
|
||||
<span><i class="fa-solid fa-plug"></i> Webhook</span>
|
||||
<span class="pane-hint">load an existing message or send a new one</span>
|
||||
</div>
|
||||
<div class="wh-hint" id="whHint" hidden>
|
||||
<i class="fa-solid fa-arrow-up"></i> Fill in both your <strong>Webhook URL</strong> and a <strong>Message link</strong> first.
|
||||
</div>
|
||||
<div class="ef-field">
|
||||
<label>Webhook URL</label>
|
||||
<input id="whUrl" type="password" placeholder="https://discord.com/api/webhooks/…" autocomplete="off" spellcheck="false" />
|
||||
</div>
|
||||
<div class="ef-field">
|
||||
<label>Message link <span class="opt">(to load an embed you sent)</span></label>
|
||||
<div class="wh-load-row">
|
||||
<input id="whMsgLink" placeholder="https://discord.com/channels/…" autocomplete="off" spellcheck="false" />
|
||||
<button class="mini-btn ghost-mini" id="whLoad"><i class="fa-solid fa-download"></i> Load</button>
|
||||
</div>
|
||||
<span class="webhook-status" id="whLoadStatus"></span>
|
||||
</div>
|
||||
<div class="wh-divider"></div>
|
||||
<div class="ef-row">
|
||||
<div class="ef-field"><label>Username override <span class="opt">(optional)</span></label><input id="whName" placeholder="Toolscord" autocomplete="off" /></div>
|
||||
<div class="ef-field"><label>Avatar URL <span class="opt">(optional)</span></label><input id="whAvatar" placeholder="https://" autocomplete="off" /></div>
|
||||
</div>
|
||||
<div class="ef-field">
|
||||
<label>Message content <span class="opt">(optional, sent above embed)</span></label>
|
||||
<textarea id="whContent" rows="2" placeholder="Hello @everyone…"></textarea>
|
||||
</div>
|
||||
<div class="webhook-foot">
|
||||
<button class="mini-btn" id="whSend"><i class="fa-solid fa-paper-plane"></i> Send to Discord</button>
|
||||
<span class="webhook-status" id="whStatus"></span>
|
||||
</div>
|
||||
<p class="webhook-note"><i class="fa-solid fa-lock"></i> Your webhook URL stays in this browser only — it is never saved, logged, or sent anywhere except Discord.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- TIMESTAMPS TAB -->
|
||||
<section class="tab-panel" data-panel="timestamps">
|
||||
<div class="ts-wrap">
|
||||
<div class="ts-controls">
|
||||
<h2>Timestamp Builder</h2>
|
||||
<p class="ts-sub">Discord renders timestamps in each viewer's own timezone. Pick a date & time, choose a style, and copy the code.</p>
|
||||
<div class="ts-field">
|
||||
<label>Date</label>
|
||||
<input type="date" id="tsDate" />
|
||||
</div>
|
||||
<div class="ts-field">
|
||||
<label>Time</label>
|
||||
<input type="time" id="tsTime" step="1" />
|
||||
</div>
|
||||
<div class="ts-field">
|
||||
<button class="mini-btn" id="tsNow">Set to now</button>
|
||||
</div>
|
||||
<div class="ts-field">
|
||||
<label>Style</label>
|
||||
<div class="ts-styles" id="tsStyles"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ts-output">
|
||||
<div class="ts-out-row">
|
||||
<div class="ts-out-label">Code</div>
|
||||
<div class="ts-out-code">
|
||||
<code id="tsCode"><t:0:F></code>
|
||||
<button class="mini-btn" id="tsCopy">Copy</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ts-out-row">
|
||||
<div class="ts-out-label">Preview</div>
|
||||
<div class="discord-preview compact">
|
||||
<div class="dp-message">
|
||||
<div class="dp-avatar">pz</div>
|
||||
<div class="dp-body">
|
||||
<div class="dp-head">
|
||||
<span class="dp-name">you</span>
|
||||
<span class="dp-time">Today at 5:13 PM</span>
|
||||
</div>
|
||||
<div class="dp-content"><span class="md-timestamp" id="tsPreview">—</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ts-out-row">
|
||||
<div class="ts-out-label">Unix</div>
|
||||
<div class="ts-out-code"><code id="tsUnix">0</code></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- SNOWFLAKE TAB -->
|
||||
<section class="tab-panel" data-panel="snowflake">
|
||||
<div class="tool-wrap narrow">
|
||||
<h2>Snowflake Decoder</h2>
|
||||
<p class="panel-sub">Every Discord ID (user, message, channel, server…) is a snowflake that encodes its creation time. Paste one to decode it.</p>
|
||||
<div class="ef-field">
|
||||
<label>Discord ID / Snowflake</label>
|
||||
<input id="sfInput" placeholder="e.g. 175928847299117063" />
|
||||
</div>
|
||||
<div class="sf-result" id="sfResult">
|
||||
<div class="sf-row"><span class="sf-key">Created</span><span class="sf-val" id="sfDate">—</span></div>
|
||||
<div class="sf-row"><span class="sf-key">Relative</span><span class="sf-val" id="sfRel">—</span></div>
|
||||
<div class="sf-row"><span class="sf-key">Unix (ms)</span><span class="sf-val" id="sfUnixMs">—</span></div>
|
||||
<div class="sf-row"><span class="sf-key">Timestamp tag</span><span class="sf-val mono" id="sfTag">—</span></div>
|
||||
<div class="sf-row"><span class="sf-key">Worker ID</span><span class="sf-val" id="sfWorker">—</span></div>
|
||||
<div class="sf-row"><span class="sf-key">Process ID</span><span class="sf-val" id="sfProcess">—</span></div>
|
||||
<div class="sf-row"><span class="sf-key">Increment</span><span class="sf-val" id="sfIncrement">—</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- PERMISSIONS TAB -->
|
||||
<section class="tab-panel" data-panel="permissions">
|
||||
<div class="perm-layout">
|
||||
<div class="perm-list-wrap">
|
||||
<h2>Permissions Calculator</h2>
|
||||
<p class="panel-sub">Pick permissions to get the bitfield integer and a ready-to-use bot invite link.</p>
|
||||
<div class="perm-grid" id="permGrid"></div>
|
||||
</div>
|
||||
<div class="perm-side">
|
||||
<div class="ef-field">
|
||||
<label>Permissions integer</label>
|
||||
<div class="ts-out-code"><code id="permValue">0</code><button class="mini-btn small" id="permCopy">Copy</button></div>
|
||||
</div>
|
||||
<div class="ef-field">
|
||||
<label>Application (client) ID</label>
|
||||
<input id="permClientId" placeholder="your bot's application id" />
|
||||
</div>
|
||||
<div class="ef-field">
|
||||
<label>Bot invite link</label>
|
||||
<textarea id="permInvite" class="json-box short" readonly></textarea>
|
||||
<button class="mini-btn small" id="permInviteCopy" style="margin-top:8px">Copy invite link</button>
|
||||
</div>
|
||||
<button class="mini-btn ghost-mini" id="permClear">Clear all</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- COLORS TAB -->
|
||||
<section class="tab-panel" data-panel="colors">
|
||||
<div class="tool-wrap">
|
||||
<h2>Color Converter</h2>
|
||||
<p class="panel-sub">Discord embeds and role colors use a decimal integer. Convert between hex, RGB and decimal, or grab a preset.</p>
|
||||
<div class="color-main">
|
||||
<div class="color-pick">
|
||||
<input type="color" id="colInput" value="#5865f2" />
|
||||
<div class="color-swatch" id="colSwatch"></div>
|
||||
</div>
|
||||
<div class="color-fields">
|
||||
<div class="ef-row">
|
||||
<div class="ef-field"><label>Hex</label><input id="colHex" value="#5865F2" maxlength="7" /></div>
|
||||
<div class="ef-field"><label>Decimal</label><input id="colDec" value="5793266" /></div>
|
||||
</div>
|
||||
<div class="ef-row">
|
||||
<div class="ef-field"><label>R</label><input id="colR" type="number" min="0" max="255" value="88" /></div>
|
||||
<div class="ef-field"><label>G</label><input id="colG" type="number" min="0" max="255" value="101" /></div>
|
||||
<div class="ef-field"><label>B</label><input id="colB" type="number" min="0" max="255" value="242" /></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ef-section-title" style="margin-top:8px">Presets</div>
|
||||
<div class="color-presets" id="colPresets"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- CHEATSHEET TAB -->
|
||||
<section class="tab-panel" data-panel="cheatsheet">
|
||||
<div class="cheat-wrap" id="cheatWrap"></div>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<div class="toast" id="toast">Copied to clipboard</div>
|
||||
<script src="app.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
+752
@@ -0,0 +1,752 @@
|
||||
/*
|
||||
===========================
|
||||
Discord Markdown Editor
|
||||
by: github.com/pvrzz
|
||||
===========================
|
||||
*/
|
||||
|
||||
:root {
|
||||
--bg-deepest: #1e1f22;
|
||||
--bg-rail: #1e1f22;
|
||||
--bg-sidebar: #2b2d31;
|
||||
--bg-main: #313338;
|
||||
--bg-input: #383a40;
|
||||
--bg-input-2: #1e1f22;
|
||||
--bg-hover: #35373c;
|
||||
--bg-active: #404249;
|
||||
--blurple: #5865f2;
|
||||
--blurple-hover: #4752c4;
|
||||
--green: #23a559;
|
||||
--text-normal: #dbdee1;
|
||||
--text-muted: #949ba4;
|
||||
--text-faint: #80848e;
|
||||
--text-link: #00a8fc;
|
||||
--header-primary: #f2f3f5;
|
||||
--interactive-normal: #b5bac1;
|
||||
--channel-default: #80848e;
|
||||
--mention-bg: rgba(88, 101, 242, 0.3);
|
||||
--mention-text: #c9cdfb;
|
||||
--code-bg: #2b2d31;
|
||||
--code-border: #1e1f22;
|
||||
--spoiler-bg: #29292d;
|
||||
--shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
|
||||
--radius: 8px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
html, body { height: 100%; }
|
||||
|
||||
body {
|
||||
font-family: 'Inter', 'gg sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
background: var(--bg-deepest);
|
||||
color: var(--text-normal);
|
||||
font-size: 16px;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.app { display: flex; height: 100vh; }
|
||||
|
||||
/* ============ SIDEBAR ============ */
|
||||
.sidebar { display: flex; flex-shrink: 0; }
|
||||
|
||||
.server-rail {
|
||||
width: 72px;
|
||||
background: var(--bg-rail);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 12px 0;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.server-pill {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 16px;
|
||||
background: var(--bg-sidebar);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: border-radius .15s ease, background .15s ease;
|
||||
text-decoration: none;
|
||||
color: var(--text-normal);
|
||||
position: relative;
|
||||
}
|
||||
.server-pill:hover { border-radius: 14px; background: var(--blurple); color: #fff; }
|
||||
.server-pill.active { border-radius: 14px; background: var(--blurple); color: #fff; }
|
||||
.server-pill.active::before {
|
||||
content: ""; position: absolute; left: -16px; width: 4px; height: 40px;
|
||||
background: #fff; border-radius: 0 4px 4px 0;
|
||||
}
|
||||
.server-glyph { font-weight: 700; font-size: 15px; }
|
||||
.server-sep { width: 32px; height: 2px; background: #35363c; border-radius: 1px; }
|
||||
.server-pill.ghost { background: var(--bg-sidebar); color: var(--green); }
|
||||
.server-pill.ghost:hover { background: var(--green); color: #fff; }
|
||||
|
||||
.channels {
|
||||
width: 240px;
|
||||
background: var(--bg-sidebar);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.channels-header {
|
||||
height: 48px;
|
||||
flex-shrink: 0;
|
||||
padding: 0 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
color: var(--header-primary);
|
||||
box-shadow: 0 1px 0 rgba(0,0,0,0.2);
|
||||
cursor: pointer;
|
||||
}
|
||||
.channels-header svg { color: var(--interactive-normal); }
|
||||
|
||||
.channels-scroll { flex: 1; overflow-y: auto; min-height: 0; }
|
||||
.channel-group { padding: 16px 8px 0; }
|
||||
.channel-group-label {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: .02em;
|
||||
text-transform: uppercase;
|
||||
color: var(--channel-default);
|
||||
padding: 0 8px 4px;
|
||||
}
|
||||
|
||||
.channel {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--channel-default);
|
||||
font-family: inherit;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
padding: 6px 8px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
margin-bottom: 2px;
|
||||
text-align: left;
|
||||
}
|
||||
.channel:hover { background: var(--bg-hover); color: var(--text-normal); }
|
||||
.channel.active { background: var(--bg-active); color: var(--header-primary); }
|
||||
.channel .hash { font-size: 20px; color: var(--text-faint); font-weight: 400; }
|
||||
|
||||
.quick-list { display: flex; flex-direction: column; gap: 2px; }
|
||||
.quick-item {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 6px 8px; border-radius: 4px; cursor: pointer;
|
||||
color: var(--channel-default); font-size: 14px; font-weight: 500;
|
||||
background: none; border: none; font-family: inherit; text-align: left; width: 100%;
|
||||
}
|
||||
.quick-item:hover { background: var(--bg-hover); color: var(--text-normal); }
|
||||
.quick-item .qi-key {
|
||||
margin-left: auto; font-size: 11px; color: var(--text-faint);
|
||||
background: var(--bg-input-2); padding: 1px 6px; border-radius: 4px;
|
||||
}
|
||||
|
||||
.user-bar {
|
||||
height: 52px;
|
||||
flex-shrink: 0;
|
||||
background: #232428;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 8px;
|
||||
gap: 8px;
|
||||
}
|
||||
.user-avatar {
|
||||
width: 32px; height: 32px; border-radius: 50%;
|
||||
background: var(--blurple); color: #fff;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 12px; font-weight: 700; flex-shrink: 0;
|
||||
}
|
||||
.user-meta { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
|
||||
.user-name { font-size: 14px; font-weight: 600; color: var(--header-primary); }
|
||||
.user-status { font-size: 12px; color: var(--text-muted); }
|
||||
.user-gh {
|
||||
color: var(--interactive-normal); padding: 6px; border-radius: 4px;
|
||||
display: flex; align-items: center;
|
||||
}
|
||||
.user-gh:hover { background: var(--bg-hover); color: var(--text-normal); }
|
||||
|
||||
/* ============ MAIN ============ */
|
||||
.main {
|
||||
flex: 1;
|
||||
background: var(--bg-main);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
height: 48px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
gap: 8px;
|
||||
box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 1.5px 0 rgba(0,0,0,0.05);
|
||||
z-index: 2;
|
||||
}
|
||||
.topbar-title { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--header-primary); font-size: 16px; }
|
||||
.hash.big { font-size: 24px; color: var(--text-faint); font-weight: 400; }
|
||||
.topbar-divider { width: 1px; height: 24px; background: #3f4147; flex-shrink: 0; }
|
||||
.topbar-title { flex-shrink: 0; }
|
||||
.topbar-desc {
|
||||
font-size: 14px; color: var(--text-muted);
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
|
||||
}
|
||||
.topbar-spacer { flex: 1; min-width: 8px; }
|
||||
|
||||
.ghost-btn {
|
||||
display: flex; align-items: center; gap: 6px;
|
||||
background: none; border: none; color: var(--interactive-normal);
|
||||
font-family: inherit; font-size: 14px; font-weight: 500;
|
||||
padding: 6px 10px; border-radius: 4px; cursor: pointer;
|
||||
}
|
||||
.ghost-btn:hover { background: var(--bg-hover); color: var(--text-normal); }
|
||||
|
||||
.tab-panel { display: none; flex: 1; flex-direction: column; min-height: 0; }
|
||||
.tab-panel.active { display: flex; }
|
||||
|
||||
/* ============ CHAT AREA ============ */
|
||||
.chat-scroll {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
padding: 16px 16px 8px;
|
||||
}
|
||||
.channel-welcome { padding: 16px 0 20px; }
|
||||
.cw-icon {
|
||||
width: 68px; height: 68px; border-radius: 50%;
|
||||
background: var(--bg-active); color: var(--header-primary);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-size: 40px; font-weight: 500; margin-bottom: 8px;
|
||||
}
|
||||
.channel-welcome h2 { font-size: 28px; color: var(--header-primary); margin-bottom: 6px; }
|
||||
.channel-welcome p { font-size: 15px; color: var(--text-muted); max-width: 640px; line-height: 1.4; }
|
||||
.channel-welcome strong { color: var(--text-normal); font-weight: 600; }
|
||||
|
||||
.dp-message.live {
|
||||
padding: 10px 8px;
|
||||
border-radius: 8px;
|
||||
margin: 0 -8px;
|
||||
transition: background .12s ease;
|
||||
}
|
||||
.dp-message.live:hover { background: rgba(2,2,2,0.06); }
|
||||
|
||||
/* ============ COMPOSER ============ */
|
||||
.composer-wrap { flex-shrink: 0; padding: 0 16px 8px; }
|
||||
.composer {
|
||||
background: var(--bg-input);
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,0.15);
|
||||
}
|
||||
.composer-toolbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 2px;
|
||||
align-items: center;
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid rgba(0,0,0,0.18);
|
||||
}
|
||||
.tool-btn {
|
||||
min-width: 32px; height: 30px;
|
||||
padding: 0 8px;
|
||||
display: flex; align-items: center; justify-content: center; gap: 5px;
|
||||
background: transparent; border: none;
|
||||
color: var(--interactive-normal);
|
||||
border-radius: 5px; cursor: pointer;
|
||||
font-family: inherit; font-size: 14px; font-weight: 600;
|
||||
transition: background .12s ease, color .12s ease, transform .05s ease;
|
||||
}
|
||||
.tool-btn:hover { background: rgba(255,255,255,0.06); color: var(--header-primary); }
|
||||
.tool-btn:active { transform: translateY(1px); background: rgba(255,255,255,0.1); }
|
||||
.tool-btn .ico { font-size: 15px; }
|
||||
.tool-btn .lbl { font-size: 13px; font-weight: 500; }
|
||||
.tool-sep { width: 1px; height: 20px; background: #4a4d54; margin: 0 5px; }
|
||||
|
||||
.composer-main { display: flex; align-items: flex-end; gap: 12px; padding: 0 16px; }
|
||||
.composer-add {
|
||||
flex-shrink: 0;
|
||||
width: 24px; height: 24px;
|
||||
margin-bottom: 11px;
|
||||
border-radius: 50%;
|
||||
background: var(--interactive-normal);
|
||||
color: var(--bg-input);
|
||||
border: none; cursor: pointer;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
transition: background .12s ease;
|
||||
}
|
||||
.composer-add:hover { background: var(--header-primary); }
|
||||
|
||||
#editor {
|
||||
flex: 1;
|
||||
resize: none;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-normal);
|
||||
font-family: inherit;
|
||||
font-size: 15px;
|
||||
line-height: 1.4;
|
||||
padding: 11px 0;
|
||||
outline: none;
|
||||
max-height: 50vh;
|
||||
}
|
||||
#editor::placeholder { color: var(--text-faint); }
|
||||
|
||||
.composer-actions { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
|
||||
.composer-action {
|
||||
background: none; border: none; cursor: pointer;
|
||||
color: var(--interactive-normal); padding: 4px; border-radius: 4px;
|
||||
display: flex; align-items: center;
|
||||
}
|
||||
.composer-action:hover { color: var(--header-primary); }
|
||||
.composer-emoji { font-size: 20px; cursor: default; filter: grayscale(.2); }
|
||||
|
||||
.composer-hint {
|
||||
font-size: 12px; color: var(--text-faint);
|
||||
padding: 6px 4px 0; text-align: right;
|
||||
}
|
||||
.composer-hint strong { color: var(--text-muted); font-weight: 600; }
|
||||
|
||||
/* ============ DISCORD PREVIEW (shared) ============ */
|
||||
.discord-preview {
|
||||
background: var(--bg-input-2);
|
||||
border: 1px solid rgba(0,0,0,0.3);
|
||||
border-radius: var(--radius);
|
||||
padding: 16px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.discord-preview.compact { flex: none; padding: 12px 16px; }
|
||||
|
||||
.dp-message { display: flex; gap: 16px; }
|
||||
.dp-avatar {
|
||||
width: 40px; height: 40px; border-radius: 50%;
|
||||
background: linear-gradient(135deg, #5865f2, #8b5cf6);
|
||||
color: #fff; display: flex; align-items: center; justify-content: center;
|
||||
font-weight: 700; font-size: 14px; flex-shrink: 0;
|
||||
}
|
||||
.dp-body { min-width: 0; flex: 1; }
|
||||
.dp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
|
||||
.dp-name { color: #f2c14e; font-weight: 600; font-size: 16px; }
|
||||
.dp-badge {
|
||||
background: var(--blurple); color: #fff; font-size: 10px; font-weight: 600;
|
||||
padding: 1px 4px; border-radius: 3px; text-transform: uppercase; letter-spacing: .02em;
|
||||
}
|
||||
.dp-time { color: var(--text-faint); font-size: 12px; }
|
||||
.dp-content {
|
||||
color: var(--text-normal);
|
||||
font-size: 16px;
|
||||
line-height: 1.375;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.dp-content:empty::before {
|
||||
content: "Your formatted message will appear here…";
|
||||
color: var(--text-faint);
|
||||
}
|
||||
|
||||
/* ============ RENDERED MARKDOWN ============ */
|
||||
.dp-content strong { font-weight: 700; }
|
||||
.dp-content em { font-style: italic; }
|
||||
.dp-content u { text-decoration: underline; }
|
||||
.dp-content s { text-decoration: line-through; }
|
||||
|
||||
.dp-content h1.md-h { font-size: 1.5em; font-weight: 700; line-height: 1.3; margin: 8px 0 4px; color: var(--header-primary); }
|
||||
.dp-content h2.md-h { font-size: 1.25em; font-weight: 700; line-height: 1.3; margin: 8px 0 4px; color: var(--header-primary); }
|
||||
.dp-content h3.md-h { font-size: 1.0em; font-weight: 700; line-height: 1.3; margin: 8px 0 4px; color: var(--header-primary); }
|
||||
.dp-content .md-subtext { font-size: 0.8125em; color: var(--text-muted); line-height: 1.3; }
|
||||
|
||||
.dp-content .md-inline-code {
|
||||
font-family: 'Consolas', monospace; font-size: 0.85em;
|
||||
background: var(--code-bg); border: 1px solid var(--code-border);
|
||||
border-radius: 4px; padding: 0 3px;
|
||||
}
|
||||
.dp-content .md-codeblock {
|
||||
font-family: 'Consolas', monospace; font-size: 0.85em;
|
||||
background: var(--code-bg); border: 1px solid var(--code-border);
|
||||
border-radius: 4px; padding: 8px 10px; margin: 4px 0;
|
||||
white-space: pre-wrap; line-height: 1.3;
|
||||
}
|
||||
|
||||
.dp-content .md-quote {
|
||||
border-left: 4px solid #4e5058; padding: 0 8px 0 12px; margin: 2px 0;
|
||||
display: block;
|
||||
}
|
||||
.dp-content blockquote.md-blockquote {
|
||||
border-left: 4px solid #4e5058; padding: 0 8px 0 12px; margin: 2px 0;
|
||||
}
|
||||
|
||||
.dp-content ul.md-list, .dp-content ol.md-list { margin: 2px 0; padding-left: 24px; }
|
||||
.dp-content ul.md-list { list-style: disc; }
|
||||
.dp-content ol.md-list { list-style: decimal; }
|
||||
.dp-content li.md-li { margin: 2px 0; }
|
||||
|
||||
.dp-content a.md-link { color: var(--text-link); text-decoration: none; cursor: pointer; }
|
||||
.dp-content a.md-link:hover { text-decoration: underline; }
|
||||
|
||||
.dp-content .md-spoiler {
|
||||
background: var(--spoiler-bg); color: transparent;
|
||||
border-radius: 4px; cursor: pointer; padding: 0 2px;
|
||||
transition: color .1s ease, background .1s ease;
|
||||
}
|
||||
.dp-content .md-spoiler.revealed { background: rgba(70,72,79,0.6); color: var(--text-normal); }
|
||||
|
||||
.dp-content .md-mention {
|
||||
background: var(--mention-bg); color: var(--mention-text);
|
||||
font-weight: 500; border-radius: 3px; padding: 0 2px; cursor: pointer;
|
||||
}
|
||||
|
||||
.md-timestamp {
|
||||
background: var(--mention-bg); color: var(--text-normal);
|
||||
border-radius: 3px; padding: 0 2px;
|
||||
}
|
||||
|
||||
/* ============ TIMESTAMP TAB ============ */
|
||||
.ts-wrap {
|
||||
flex: 1; overflow-y: auto; padding: 24px;
|
||||
display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
|
||||
gap: 24px; align-content: start;
|
||||
}
|
||||
.ts-controls h2 { color: var(--header-primary); font-size: 20px; margin-bottom: 6px; }
|
||||
.ts-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.4; }
|
||||
.ts-field { margin-bottom: 16px; }
|
||||
.ts-field > label {
|
||||
display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
|
||||
letter-spacing: .02em; color: var(--text-muted); margin-bottom: 8px;
|
||||
}
|
||||
.ts-field input[type="date"], .ts-field input[type="time"] {
|
||||
background: var(--bg-input-2); border: 1px solid rgba(0,0,0,0.3);
|
||||
color: var(--text-normal); font-family: inherit; font-size: 15px;
|
||||
padding: 10px 12px; border-radius: 6px; width: 100%; outline: none;
|
||||
color-scheme: dark;
|
||||
}
|
||||
.ts-field input:focus { border-color: var(--blurple); }
|
||||
|
||||
.mini-btn {
|
||||
background: var(--blurple); color: #fff; border: none;
|
||||
font-family: inherit; font-size: 14px; font-weight: 600;
|
||||
padding: 9px 16px; border-radius: 6px; cursor: pointer;
|
||||
}
|
||||
.mini-btn:hover { background: var(--blurple-hover); }
|
||||
|
||||
.ts-styles { display: flex; flex-direction: column; gap: 6px; }
|
||||
.ts-style {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
background: var(--bg-input-2); border: 1px solid transparent;
|
||||
border-radius: 6px; padding: 10px 12px; cursor: pointer; text-align: left;
|
||||
font-family: inherit; color: var(--text-normal);
|
||||
}
|
||||
.ts-style:hover { background: var(--bg-input); }
|
||||
.ts-style.active { border-color: var(--blurple); background: var(--bg-input); }
|
||||
.ts-style .ts-style-name { font-size: 14px; font-weight: 600; }
|
||||
.ts-style .ts-style-ex { margin-left: auto; font-size: 13px; color: var(--text-muted); }
|
||||
.ts-style .ts-style-code { font-family: 'Consolas', monospace; font-size: 12px; color: var(--text-faint); }
|
||||
|
||||
.ts-output { display: flex; flex-direction: column; gap: 20px; }
|
||||
.ts-out-row {}
|
||||
.ts-out-label {
|
||||
font-size: 12px; font-weight: 700; text-transform: uppercase;
|
||||
letter-spacing: .02em; color: var(--text-muted); margin-bottom: 8px;
|
||||
}
|
||||
.ts-out-code {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
background: var(--bg-input-2); border: 1px solid rgba(0,0,0,0.3);
|
||||
border-radius: 6px; padding: 12px 14px;
|
||||
}
|
||||
.ts-out-code code { font-family: 'Consolas', monospace; font-size: 15px; color: #f2c14e; flex: 1; }
|
||||
.ts-out-code .mini-btn { padding: 6px 12px; }
|
||||
|
||||
/* ============ CHEATSHEET TAB ============ */
|
||||
.cheat-wrap {
|
||||
flex: 1; overflow-y: auto; padding: 24px;
|
||||
display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
||||
gap: 16px; align-content: start;
|
||||
}
|
||||
.cheat-card {
|
||||
background: var(--bg-input-2); border: 1px solid rgba(0,0,0,0.2);
|
||||
border-radius: var(--radius); padding: 16px;
|
||||
}
|
||||
.cheat-card h3 { color: var(--header-primary); font-size: 15px; margin-bottom: 12px; }
|
||||
.cheat-row {
|
||||
display: flex; align-items: center; justify-content: space-between; gap: 12px;
|
||||
padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.04);
|
||||
}
|
||||
.cheat-row:first-of-type { border-top: none; }
|
||||
.cheat-syntax {
|
||||
font-family: 'Consolas', monospace; font-size: 13px; color: var(--text-muted);
|
||||
background: var(--code-bg); padding: 3px 7px; border-radius: 4px;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%;
|
||||
}
|
||||
.cheat-result { font-size: 14px; text-align: right; }
|
||||
|
||||
/* ============ TOAST ============ */
|
||||
.toast {
|
||||
position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
|
||||
background: var(--green); color: #fff; font-weight: 600; font-size: 14px;
|
||||
padding: 12px 20px; border-radius: 8px; box-shadow: var(--shadow);
|
||||
opacity: 0; transition: transform .25s ease, opacity .25s ease; pointer-events: none; z-index: 100;
|
||||
}
|
||||
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
|
||||
|
||||
/* scrollbars */
|
||||
::-webkit-scrollbar { width: 8px; height: 8px; }
|
||||
::-webkit-scrollbar-thumb { background: var(--bg-input-2); border-radius: 4px; }
|
||||
.channels::-webkit-scrollbar-thumb { background: #202225; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
|
||||
/* ============ SHARED TOOL UI ============ */
|
||||
.panel-sub { color: var(--text-muted); font-size: 14px; line-height: 1.45; margin-bottom: 20px; max-width: 720px; }
|
||||
.tab-panel h2 { color: var(--header-primary); font-size: 20px; margin-bottom: 6px; }
|
||||
.pane-label {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
font-size: 12px; font-weight: 700; text-transform: uppercase;
|
||||
letter-spacing: .02em; color: var(--text-muted); margin-bottom: 8px;
|
||||
}
|
||||
.pane-hint { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-faint); }
|
||||
.pane-spacer { flex: 1; }
|
||||
.mini-btn.small { padding: 5px 11px; font-size: 13px; }
|
||||
.mini-btn.ghost-mini { background: transparent; color: var(--text-muted); border: 1px solid #4a4d54; }
|
||||
.mini-btn.ghost-mini:hover { background: var(--bg-hover); color: var(--text-normal); }
|
||||
.tool-wrap { flex: 1; overflow-y: auto; padding: 24px; }
|
||||
.tool-wrap.narrow { max-width: 720px; }
|
||||
|
||||
.ef-field { display: flex; flex-direction: column; flex: 1; min-width: 0; }
|
||||
.ef-field.grow { flex: 2; }
|
||||
.ef-field > label {
|
||||
font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
|
||||
color: var(--text-muted); margin-bottom: 6px;
|
||||
}
|
||||
.ef-field input, .ef-field textarea, .json-box {
|
||||
background: var(--bg-input-2); border: 1px solid rgba(0,0,0,0.3);
|
||||
color: var(--text-normal); font-family: inherit; font-size: 14px;
|
||||
padding: 9px 11px; border-radius: 6px; outline: none; width: 100%;
|
||||
}
|
||||
.ef-field textarea { resize: vertical; line-height: 1.4; }
|
||||
.ef-field input:focus, .ef-field textarea:focus, .json-box:focus { border-color: var(--blurple); }
|
||||
.ef-row { display: flex; gap: 12px; margin-bottom: 12px; }
|
||||
.ef-check { display: flex; align-items: center; gap: 8px; color: var(--text-normal); font-size: 14px; margin-top: 12px; cursor: pointer; }
|
||||
.ef-check input { width: 16px; height: 16px; accent-color: var(--blurple); }
|
||||
|
||||
/* ============ EMBED TAB ============ */
|
||||
.embed-layout {
|
||||
flex: 1; display: grid; grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
|
||||
gap: 20px; padding: 20px; overflow: hidden; min-height: 0;
|
||||
}
|
||||
.embed-form { overflow-y: auto; padding-right: 6px; }
|
||||
.ef-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.05); }
|
||||
.ef-section:last-child { border-bottom: none; }
|
||||
.ef-section-title {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
|
||||
color: var(--header-primary); margin-bottom: 12px;
|
||||
}
|
||||
.ef-section-title .mini-btn { margin-left: auto; }
|
||||
.ef-color { display: flex; gap: 8px; }
|
||||
.ef-color input[type="color"] {
|
||||
width: 44px; height: 38px; padding: 2px; border: 1px solid rgba(0,0,0,0.3);
|
||||
background: var(--bg-input-2); border-radius: 6px; cursor: pointer;
|
||||
}
|
||||
.ef-color input[type="text"] { flex: 1; }
|
||||
|
||||
.fields-list { display: flex; flex-direction: column; gap: 10px; }
|
||||
.field-item { background: var(--bg-input-2); border: 1px solid rgba(0,0,0,0.25); border-radius: 8px; padding: 12px; }
|
||||
.field-item .ef-row { margin-bottom: 8px; }
|
||||
.field-item .ef-row:last-child { margin-bottom: 0; }
|
||||
.field-foot { display: flex; align-items: center; justify-content: space-between; }
|
||||
.field-remove {
|
||||
background: none; border: none; color: #f23f43; cursor: pointer; font-size: 13px; font-weight: 600;
|
||||
padding: 4px 6px; border-radius: 4px;
|
||||
}
|
||||
.field-remove:hover { background: rgba(242,63,67,0.1); }
|
||||
|
||||
.embed-side { display: flex; flex-direction: column; gap: 16px; overflow: hidden; min-height: 0; }
|
||||
.embed-preview-wrap { display: flex; flex-direction: column; min-height: 0; flex: 1; }
|
||||
.embed-preview-wrap .discord-preview { flex: 1; }
|
||||
.embed-json-wrap { display: flex; flex-direction: column; min-height: 0; flex: 1; }
|
||||
.json-box {
|
||||
flex: 1; resize: none; font-family: 'Consolas', monospace; font-size: 13px;
|
||||
line-height: 1.5; color: var(--text-normal); min-height: 120px;
|
||||
}
|
||||
.json-box.short { min-height: 64px; height: 64px; }
|
||||
|
||||
/* embed render */
|
||||
.embed {
|
||||
max-width: 432px; background: var(--bg-sidebar);
|
||||
border-radius: 4px; border-left: 4px solid var(--blurple);
|
||||
padding: 8px 16px 16px 12px; margin-top: 4px;
|
||||
display: grid; grid-template-columns: 1fr auto; gap: 0 12px;
|
||||
}
|
||||
.embed-content { min-width: 0; }
|
||||
.embed-author { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
|
||||
.embed-author img { width: 24px; height: 24px; border-radius: 50%; }
|
||||
.embed-author span { font-size: 14px; font-weight: 600; color: var(--header-primary); }
|
||||
.embed-title { font-size: 16px; font-weight: 600; color: var(--header-primary); margin-top: 8px; }
|
||||
.embed-title a { color: var(--text-link); text-decoration: none; }
|
||||
.embed-title a:hover { text-decoration: underline; }
|
||||
.embed-desc { font-size: 14px; line-height: 1.4; color: #dbdee1; margin-top: 8px; white-space: pre-wrap; word-wrap: break-word; }
|
||||
.embed-fields { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 8px; }
|
||||
.embed-field { grid-column: span 12; min-width: 0; }
|
||||
.embed-field.inline { grid-column: span 6; }
|
||||
.efield-name { font-size: 14px; font-weight: 600; color: var(--header-primary); margin-bottom: 2px; }
|
||||
.efield-value { font-size: 14px; line-height: 1.4; color: #dbdee1; white-space: pre-wrap; word-wrap: break-word; }
|
||||
.embed-image { margin-top: 16px; grid-column: 1 / -1; }
|
||||
.embed-image img { max-width: 100%; border-radius: 4px; display: block; }
|
||||
.embed-thumb { grid-column: 2; grid-row: 1; margin-top: 8px; }
|
||||
.embed-thumb img { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; }
|
||||
.embed-footer { display: flex; align-items: center; gap: 8px; margin-top: 8px; grid-column: 1 / -1; }
|
||||
.embed-footer img { width: 20px; height: 20px; border-radius: 50%; }
|
||||
.embed-footer span { font-size: 12px; color: var(--text-muted); font-weight: 500; }
|
||||
.embed-footer .dot { color: var(--text-faint); }
|
||||
.embed-empty { color: var(--text-faint); font-size: 14px; font-style: italic; }
|
||||
|
||||
/* shared markdown styling inside embeds */
|
||||
.embed-desc strong, .efield-value strong { font-weight: 700; }
|
||||
.embed-desc em, .efield-value em { font-style: italic; }
|
||||
.embed-desc a, .efield-value a { color: var(--text-link); text-decoration: none; }
|
||||
.embed-desc .md-inline-code, .efield-value .md-inline-code {
|
||||
font-family: 'Consolas', monospace; font-size: 0.85em;
|
||||
background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 4px; padding: 0 3px;
|
||||
}
|
||||
|
||||
/* ============ SNOWFLAKE TAB ============ */
|
||||
.sf-result {
|
||||
margin-top: 20px; background: var(--bg-input-2);
|
||||
border: 1px solid rgba(0,0,0,0.25); border-radius: 8px; overflow: hidden;
|
||||
}
|
||||
.sf-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.04); gap: 12px; }
|
||||
.sf-row:first-child { border-top: none; }
|
||||
.sf-key { font-size: 13px; color: var(--text-muted); font-weight: 600; }
|
||||
.sf-val { font-size: 15px; color: var(--header-primary); text-align: right; word-break: break-all; }
|
||||
.sf-val.mono { font-family: 'Consolas', monospace; color: #f2c14e; font-size: 14px; }
|
||||
|
||||
/* ============ PERMISSIONS TAB ============ */
|
||||
.perm-layout {
|
||||
flex: 1; display: grid; grid-template-columns: 1fr minmax(300px, 360px);
|
||||
gap: 20px; padding: 24px; overflow: hidden; min-height: 0;
|
||||
}
|
||||
.perm-list-wrap { overflow-y: auto; padding-right: 6px; }
|
||||
.perm-grid {
|
||||
display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 16px;
|
||||
}
|
||||
.perm-item {
|
||||
display: flex; align-items: center; gap: 10px; padding: 10px 12px;
|
||||
background: var(--bg-input-2); border: 1px solid transparent; border-radius: 6px;
|
||||
cursor: pointer; font-size: 14px; color: var(--text-normal);
|
||||
}
|
||||
.perm-item:hover { background: var(--bg-input); }
|
||||
.perm-item.on { border-color: var(--blurple); }
|
||||
.perm-item input { width: 16px; height: 16px; accent-color: var(--blurple); flex-shrink: 0; }
|
||||
.perm-side { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
|
||||
.perm-side .ef-field { flex: none; }
|
||||
|
||||
/* ============ COLORS TAB ============ */
|
||||
.color-main { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
|
||||
.color-pick { display: flex; flex-direction: column; gap: 10px; }
|
||||
.color-pick input[type="color"] {
|
||||
width: 120px; height: 120px; padding: 4px; border: 1px solid rgba(0,0,0,0.3);
|
||||
background: var(--bg-input-2); border-radius: 10px; cursor: pointer;
|
||||
}
|
||||
.color-swatch { height: 28px; border-radius: 6px; background: #5865f2; }
|
||||
.color-fields { flex: 1; min-width: 280px; }
|
||||
.color-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
|
||||
.color-preset {
|
||||
display: flex; align-items: center; gap: 8px; padding: 8px 10px;
|
||||
background: var(--bg-input-2); border: 1px solid rgba(0,0,0,0.2); border-radius: 6px;
|
||||
cursor: pointer; font-size: 13px; color: var(--text-normal);
|
||||
}
|
||||
.color-preset:hover { background: var(--bg-input); }
|
||||
.color-preset .pswatch { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
|
||||
|
||||
/* ============ FONT AWESOME ICONS ============ */
|
||||
.tool-btn i { font-size: 14px; }
|
||||
.tool-btn .ico { font-size: 15px; }
|
||||
.ghost-btn i { font-size: 14px; }
|
||||
.channels-header i { color: var(--interactive-normal); font-size: 12px; }
|
||||
.user-gh i { font-size: 18px; }
|
||||
.composer-add i { font-size: 13px; }
|
||||
.composer-action i { font-size: 19px; }
|
||||
.mini-btn:disabled { opacity: .55; cursor: default; }
|
||||
|
||||
/* ============ EMOJI PICKER ============ */
|
||||
.tab-panel[data-panel="editor"] { position: relative; }
|
||||
.emoji-popup {
|
||||
position: absolute; bottom: 86px; right: 24px; width: 332px; max-height: 326px;
|
||||
background: var(--bg-deepest); border: 1px solid rgba(0,0,0,0.45);
|
||||
border-radius: 10px; box-shadow: var(--shadow); z-index: 50;
|
||||
display: flex; flex-direction: column; overflow: hidden;
|
||||
}
|
||||
.emoji-popup[hidden] { display: none; }
|
||||
.emoji-search { display: flex; align-items: center; gap: 8px; padding: 10px; border-bottom: 1px solid rgba(0,0,0,0.35); }
|
||||
.emoji-search i { color: var(--text-muted); font-size: 13px; padding-left: 4px; }
|
||||
.emoji-search input {
|
||||
flex: 1; background: var(--bg-input); border: none; outline: none;
|
||||
color: var(--text-normal); font-family: inherit; font-size: 14px; padding: 8px 10px; border-radius: 6px;
|
||||
}
|
||||
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; overflow-y: auto; }
|
||||
.emoji-cell {
|
||||
background: none; border: none; cursor: pointer; font-size: 21px;
|
||||
padding: 4px 0; border-radius: 6px; line-height: 1;
|
||||
}
|
||||
.emoji-cell:hover { background: var(--bg-hover); }
|
||||
.emoji-none { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 24px; font-size: 14px; }
|
||||
|
||||
/* ============ WEBHOOK SENDER ============ */
|
||||
.embed-side { overflow-y: auto; padding-right: 4px; }
|
||||
.embed-preview-wrap, .embed-json-wrap { flex: none; }
|
||||
.embed-preview-wrap .discord-preview { flex: none; }
|
||||
.json-box { flex: none; height: 190px; }
|
||||
.webhook-box { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 16px; }
|
||||
.webhook-box .pane-label i { color: var(--green); margin-right: 4px; }
|
||||
.opt { color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
|
||||
.webhook-box .ef-field { margin-bottom: 12px; }
|
||||
.webhook-foot { display: flex; align-items: center; gap: 14px; }
|
||||
.webhook-status { font-size: 13px; font-weight: 600; }
|
||||
.webhook-status.ok { color: var(--green); }
|
||||
.webhook-status.err { color: #f23f43; }
|
||||
.webhook-note {
|
||||
display: flex; align-items: center; gap: 7px; line-height: 1.4;
|
||||
font-size: 12px; color: var(--text-faint); margin-top: 14px;
|
||||
}
|
||||
.webhook-note i { color: var(--text-muted); }
|
||||
|
||||
.wh-hint {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
background: rgba(250, 166, 26, 0.12); border: 1px solid #faa61a; color: #faa61a;
|
||||
font-size: 13px; font-weight: 500; padding: 9px 12px; border-radius: 6px; margin-bottom: 14px;
|
||||
animation: whPulse 1.4s ease infinite;
|
||||
}
|
||||
.wh-hint[hidden] { display: none; }
|
||||
.wh-hint strong { font-weight: 700; }
|
||||
@keyframes whPulse {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(250, 166, 26, 0.0); }
|
||||
50% { box-shadow: 0 0 0 4px rgba(250, 166, 26, 0.14); }
|
||||
}
|
||||
.ef-field input.needs-fill, .ef-field input.needs-fill:focus {
|
||||
border-color: #faa61a; box-shadow: 0 0 0 1px #faa61a;
|
||||
}
|
||||
.wh-load-row { display: flex; gap: 8px; }
|
||||
.wh-load-row input { flex: 1; }
|
||||
.wh-load-row .mini-btn { flex-shrink: 0; }
|
||||
.wh-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 16px 0; }
|
||||
#whLoadStatus { display: inline-block; margin-top: 8px; }
|
||||
|
||||
@media (max-width: 1000px) {
|
||||
.embed-layout, .perm-layout { grid-template-columns: 1fr; overflow-y: auto; }
|
||||
.ts-wrap { grid-template-columns: 1fr; }
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.channels { display: none; }
|
||||
}
|
||||
Reference in New Issue
Block a user