Jump to content

MediaWiki:Common.css

From Retina Chip Wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Retina Chip Wiki chat widget styles (wiki3.rohmega.com) */

#rmg-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #3366cc;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    line-height: 1;
}
#rmg-chat-toggle:hover {
    background: #2a55aa;
}

#rmg-chat-panel {
    position: fixed;
    bottom: 88px;
    right: 20px;
    width: 340px;
    max-width: 90vw;
    height: 460px;
    max-height: 70vh;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
}

#rmg-chat-head {
    background: #3366cc;
    color: #fff;
    padding: 10px 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
#rmg-chat-head button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

#rmg-chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rmg-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.rmg-bubble.user {
    align-self: flex-end;
    background: #3366cc;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.rmg-bubble.bot {
    align-self: flex-start;
    background: #f0f0f0;
    color: #222;
    border-bottom-left-radius: 4px;
}

#rmg-chat-foot {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 8px;
    gap: 6px;
}
#rmg-chat-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 14px;
}
#rmg-chat-send {
    border: none;
    background: #3366cc;
    color: #fff;
    border-radius: 18px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
}
#rmg-chat-send:disabled {
    opacity: 0.5;
    cursor: default;
}