div.chat-wrapper { /* increase specificity */ position: fixed; /* z-index: 10; */ padding-left: calc(env(safe-area-inset-left) / 2); padding-right: calc(env(safe-area-inset-right, 4px) / 2); } .chat-messages-wrapper { bottom: 40px; padding: 4px; padding-left: 0; max-height: var(--chatHeight); width: var(--chatWidth); transform-origin: bottom left; transform: scale(var(--chatScale)); pointer-events: none; } .chat-input-wrapper { bottom: 1px; width: calc(100% - 3px); position: fixed; left: 1px; box-sizing: border-box; background-color: rgba(0, 0, 0, 0); display: flex; align-items: center; gap: 1px; } .chat-submit-button { visibility: hidden; position: absolute; pointer-events: none !important; } .chat-input-wrapper form { display: flex; } .chat-input { box-sizing: border-box; width: 100%; } .chat-completions { position: absolute; /* position this bottom on top of parent */ top: 0; left: 0; transform: translateY(-100%); /* width: 150px; */ display: flex; padding: 0 2px; /* input padding */ width: 100%; } .input-mobile .chat-completions { transform: none; top: 100%; padding-left: calc(env(safe-area-inset-left) / 2); margin-top: 14px; margin-left: 20px; /* input height */ } .chat-completions-pad-text { pointer-events: none; white-space: pre; opacity: 0; overflow: hidden; } .chat-completions-items { background-color: rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; /* justify-content: flex-end; */ /* probably would be better to replace with margin, not sure */ padding: 2px; max-height: 100px; overflow: auto; /* hide ugly scrollbars in firefox */ scrollbar-width: none; } /* unsupported by firefox */ ::-webkit-scrollbar { width: 5px; height: 5px; background-color: #272727; } ::-webkit-scrollbar-thumb { background-color: #747474; } .chat-completions-items>div { cursor: pointer; } .chat-completions-items>div:hover { text-shadow: 0px 0px 6px white; } .input-mobile .chat-completions-items { justify-content: flex-start; } .input-mobile { top: 15px; position: absolute; /* since input form is blow chat messages we remove clickable container area to allow interact with the messages */ height: 0; } .input-mobile #chatinput { height: 24px; font-size: 13px; } .display-mobile { top: 40px; } .chat, .chat-input { color: white; font-size: 10px; margin: 0px; line-height: 100%; text-shadow: 1px 1px 0px #3f3f3f; font-family: mojangles, minecraft, monospace; max-height: var(--chatHeight); } .chat { pointer-events: none; overflow: hidden; width: 100%; height: 100%; scrollbar-width: var(--thin-if-firefox); } .chat.opened { pointer-events: auto; overflow-y: auto; } input[type=text], #chatinput { background-color: rgba(0, 0, 0, 0.5); border: 1px solid rgba(0, 0, 0, 0); outline: none; pointer-events: auto; /* styles reset */ padding-top: 1px; padding-bottom: 1px; padding-left: 2px; padding-right: 2px; } .chat-mobile-input-hidden { position: absolute; width: 8px; height: 1px !important; display: block !important; opacity: 0; height: 1px !important; /* ios: using z-index, pointer-events: none or top below -10px breaks arrows */ } .chat-mobile-input-hidden-up { top: -10px; } .chat-mobile-input-hidden-down { top: -5px; } #chatinput:focus { border-color: white; } .chat-message { padding-left: 4px; background-color: rgba(0, 0, 0, 0.5); list-style: none; overflow-wrap: break-word; opacity: 1; } .chat-message-fading { opacity: 0; transition: opacity 3s ease-in-out; } .chat-message-faded { display: none; } /* Ensure messages are always visible when chat is open */ .chat.opened .chat-message { opacity: 1 !important; display: block !important; transition: none !important; } .chat-message-part {}