diff --git a/content/root.css b/content/root.css index 894c77d..ec90449 100644 --- a/content/root.css +++ b/content/root.css @@ -1,47 +1,144 @@ [data-theme="dark"] { - --radchat-color: #40a02b; - --main-bg-color: #11111b; - --pum-button-inactive-fg: #cdd6f4; - --pum-button-inactive-bg: #11111b; - --pum-button-active-fg: #89b4fa; - --pum-button-active-bg: #1e1e2e; - --pum-title-color: #cdd6f4; - --pum-bg-color: #1e1e2e; - --user-color: #89b4fa; - --timestamp-color: #313244; - --separator-color: #181825; - --message-color: #cdd6f4; - --message-bg-color: #1e1e2e; - --input-bg-color: #181825; - --input-text-color: #cdd6f4; - --input-button-inactive-bg: #b4befe; - --input-button-inactive-fg: #11111b; - --input-button-active-bg: #89b4fa; - --input-button-active-fg: #11111b; + --radchat-color: #40a02b; + --main-bg-color: #11111b; + --pum-button-inactive-fg: #cdd6f4; + --pum-button-inactive-bg: #11111b; + --pum-button-active-fg: #89b4fa; + --pum-button-active-bg: #1e1e2e; + --pum-title-color: #cdd6f4; + --pum-bg-color: #1e1e2e; + --user-color: #89b4fa; + --timestamp-color: #313244; + --separator-color: #181825; + --message-color: #cdd6f4; + --message-bg-color: #1e1e2e; + --input-bg-color: #181825; + --input-text-color: #cdd6f4; + --input-button-inactive-bg: #b4befe; + --input-button-inactive-fg: #11111b; + --input-button-active-bg: #89b4fa; + --input-button-active-fg: #11111b; } [data-theme="light"] { - --radchat-color: #40a02b; - --main-bg-color: #dce0e8; - --pum-button-inactive-fg: #4c4f69; - --pum-button-inactive-bg: #dce0e8; - --pum-button-active-fg: #1e66f5; - --pum-button-active-bg: #eff1f5; - --pum-title-color: #4c4f69; - --pum-bg-color: #eff1f5; - --user-color: #1e66f5; - --timestamp-color: #8c8fa1; - --separator-color: #e6e9ef; - --message-color: #4c4f69; - --message-bg-color: #eff1f5; - --input-bg-color: #e6e9ef; - --input-text-color: #4c4f69; - --input-button-inactive-bg: #7287fd; - --input-button-inactive-fg: #dce0e8; - --input-button-active-bg: #1e66f5; - --input-button-active-fg: #dce0e8; + --radchat-color: #40a02b; + --main-bg-color: #dce0e8; + --pum-button-inactive-fg: #4c4f69; + --pum-button-inactive-bg: #dce0e8; + --pum-button-active-fg: #1e66f5; + --pum-button-active-bg: #eff1f5; + --pum-title-color: #4c4f69; + --pum-bg-color: #eff1f5; + --user-color: #1e66f5; + --timestamp-color: #8c8fa1; + --separator-color: #e6e9ef; + --message-color: #4c4f69; + --message-bg-color: #eff1f5; + --input-bg-color: #e6e9ef; + --input-text-color: #4c4f69; + --input-button-inactive-bg: #7287fd; + --input-button-inactive-fg: #dce0e8; + --input-button-active-bg: #1e66f5; + --input-button-active-fg: #dce0e8; } +.search-trigger { + position: fixed; + bottom: 20px; + right: 20px; + z-index: 1000; +} + +.search-container { + position: flex; + display: flex; + align-items: center; + background: var(--pum-button-active-bg); + border-radius: 24px; + transition: width 0.2s ease; + overflow: hidden; + width: 48px; + height: 48px; +} + +.search-container.expanded { + width: 300px; +} + +.search-button { + background: none; + border: none; + padding: 12px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + border-radius: 50%; + background: var(--pum-button-active-bg); + color: var(--pum-button-inactive-fg); +} + +.search-button:hover { + background: var(--pum-button-active-bg); + color: var(--pum-button-active-fg); +} + +.search-input { + display: none; + flex: 2; + border: none; + padding: 8px; + margin-left: 4px; + outline: none; + font-size: 14px; +} + +.search-container.expanded .search-input { + display: block; +} + +.search-highlight { + background-color: yellow; + color: gray; +} + +.search-highlight.current { + background-color: darkorange; + color: black; +} + +/* Search icon using CSS */ +.search-icon { + width: 15px; + height: 15px; + border: 2px solid var(--pum-button-inactive-fg); + border-radius: 50%; + position: relative; +} + +.search-icon::after { + content: ''; + position: absolute; + width: 2px; + height: 10px; + background: var(--pum-button-inactive-fg); + bottom: -8px; + right: -3px; + transform: rotate(-45deg); +} + +.search-count { + display: none; + margin-left: 8px; + font-size: 12px; + color: var(--pum-title-color); +} + +.search-container.expanded .search-count { + display: block; +} + + body { font-family: Arial, sans-serif; margin: 0; @@ -282,16 +379,16 @@ input { flex-grow: 1; } textarea { - padding: 10px; - border: none; - border-radius: 4px; - background-color: var(--input-bg-color); - color: var(--input-text-color); - flex-grow: 1; - resize: none; /* Prevents manual resizing */ - min-height: 38px; /* Match your previous input height */ - line-height: 1.4; - font-family: Arial, sans-serif; /* Match your body font */ + padding: 10px; + border: none; + border-radius: 4px; + background-color: var(--input-bg-color); + color: var(--input-text-color); + flex-grow: 1; + resize: none; /* Prevents manual resizing */ + min-height: 38px; /* Match your previous input height */ + line-height: 1.4; + font-family: Arial, sans-serif; /* Match your body font */ } button { padding: 10px 20px; @@ -356,20 +453,23 @@ button.scroll:hover { max-width: 100%; } - .radchat { + .search-container { display: none; } + .radchat { + display: none; + } .current-user { display: none; - } + } .header-controls { top: 10px; gap: 15px; width: 100%; justify-content: center; - } + } .settings-button, .users-button, .theme-button { width: 36px; @@ -451,6 +551,9 @@ button.scroll:hover { /* Small mobile devices */ @media screen and (max-width: 380px) { + .search-container { + display: none; + } .radchat { display: none; } diff --git a/content/root.html b/content/root.html index bb720a1..9c274c0 100644 --- a/content/root.html +++ b/content/root.html @@ -44,7 +44,7 @@ - +