SeekquarrySeekquarry - Yioop Repo - Seekquarry

/ src / css / messages.css
/**
 * SeekQuarry/Yioop --
 * Open Source Pure PHP Search Engine, Crawler, and Indexer
 *
 * Copyright (C) 2009 - 2026  Chris Pollett chris@pollett.org
 *
 * LICENSE:
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 * END LICENSE
 *
 * @author Chris Pollett
 * @license https://www.gnu.org/licenses/ GPL3
 * @link https://www.seekquarry.com/
 * @copyright 2009 - 2026
 * @filesource
 */
/*
    messages.css
    Stylesheet for User messages
 */

.messages-container,
.mail-container
{
    border: 1px solid #CDE;
    display: flex;
    height: 42rem;
    /* the top nav bar is a 65px fixed .top-container; keep the
       container's top border a few px clear of it */
    margin-top: 72px;
    width: 100%;
}

.contacts-arrow
{
    color: var(--gray-50);
    font-size: 1.6667rem;
    padding: 10px;
    text-decoration: none;
}
.user-contacts,
.user-accounts
{
    overflow-y: scroll;
    overflow-x: auto;
    width: 28%;
    /* floor wide enough for the full six-icon socialcontrols row
       (six ~38px buttons + gaps, the reserved scrollbar, and the
       wrap padding) plus headroom so it never wraps on desktop;
       28% still applies once the viewport is wider, and the
       split-adjuster can resize from here */
    min-width: 18.6rem;
}

.socialcontrols-wrap
{
    margin: 9px auto 5px auto;
    padding: 0 4px;
    box-sizing: border-box;
    max-width: 100%;
}
.contact-detail
{
    border: 1px solid #CDE;
    width: 100%;
}
.selected-contact
{
    background: #F5F5DC;
}
.contact-detail-inner
{
    padding: 10px;
    position: relative;
}
.contact-detail a,
.contact-detail span
{
    color: var(--gray-0);
    font-size: var(--font-size-6);
    position: absolute;
    text-decoration: none;
    top: 17px;
}
.contact-detail-request
{
    margin-left:5px;
    margin-right:5px;
    position:relative;
    top:-45px;
}
.html-ltr .contact-detail a,
.html-ltr .contact-detail span,
.html-rtl .contact-detail a,
.html-rtl .contact-detail span
{
    inset-inline-start: 60px;
}
.contact-detail a:hover
{
    text-decoration: underline;
}
.contact-detail:hover
{
    background: #E9F5DC;
}
.contact-actions button
{
    display: none;
}
.contact-actions input
{
    border-radius: 5px;
    font-size: 2rem;
    font-weight: bold;
    margin: 4px;
}
.contact-actions:focus-within button
{
    background-color: #F0F0F6;
    border:1px solid var(--gray-50);
    border-radius:5px;
    color:var(--gray-0);
    display:inline;
    font-size: var(--font-size-2);
    font-weight:bold;
    height: 1.3333rem;
    margin-bottom:4px;
}

.split-adjuster
{
    background-color: #CDE;
    cursor: ew-resize;
    height: 100%;
    width: 2px;
}
.contact-messages,
.account-messages
{
    flex: 1;
}
.selected-conversation-header
{
    background-color: #FED;
    height: 50px;
    width: 100%;
}
.selected-conversation-header .call-controls
{
    min-width: 70px;
    padding-left:10px;
    padding-right:10px;
    position: relative;
    top:3px;
}

.selected-conversation-header h2
{
    padding-left:20px;
    padding-right:20px;
    position: relative;
    top:5px;
    width: fit-content;
}

.selected-conversation-header h2 span
{
    position: relative;
    top:-10px;
}
.conversation
{
    display: flex;
    flex-direction: column-reverse;
    height: calc(100% - 110px);
    overflow-y: scroll;
}
#av-call
{
    background: var(--gray-0);
    color: var(--gray-100);
    display: none;
    height: calc(100% - 49px);
}
#av-call-div
{
    background: var(--gray-100);
    border-radius: 20%;
    font-size: 6rem;
    height: 8.4rem;
    left: 55%;
    padding-top: 15px;
    position: absolute;
    text-align: center;
    top: 40%;
    width: 9rem;
}

#local-av
{
    display: block;
    height: 20%;
    position: relative;
    left: 80%;
    top: -8px;
    width: 20%;
    z-index: 20;
}

#remote-av
{
    display:block;
    margin:0;
    padding: 0;
    position: relative;
    top: calc(-13% - 8px);
    width: 100%;
    z-index: 1;
}
.video-call
{
    background-color: #8FA;
}
.selected-conversation-header .call-controls .icon-button-container
{
    height: var(--control-height);
    padding: 0;
    width: var(--control-height);
}
#video-end
{
    display: none;
}
.video-call-end
{
    background-color: #F55;
}
.message-detail-outer
{
    display: inline-block;
    max-width: 50%;
    overflow-wrap: anywhere;
    text-align: justify;
}
.message-detail-outer img
{
    max-width: 100%;
}

.message-icon
{
    border: 2px solid lightblue;
    border-radius: 17px;
    width:35px;
}
.message-other-time,
.message-user-time
{
    color: var(--gray-73);
    font-size: var(--font-size-1);
}
.html-ltr .message-user-time,
.html-rtl .message-user-time
{
    margin-inline-end:3rem;
}
.html-ltr .message-other-time,
.html-rtl .message-other-time
{
    margin-inline-start:0.48rem;
}
.message-detail
{
    padding: 7px;
    margin: 5px 3rem 5px 3rem;
    width: fit-content;
}
.message-detail.message-mine
{
    background-color: var(--color-topbar);
    border: 1px solid var(--gray-80);
    color: var(--gray-0);
}
.message-detail.message-theirs
{
    background-color: var(--gray-93);
    border: 1px solid var(--gray-80);
    color: var(--gray-0);
}
/* The square corner is on the bottom on the side the message is anchored
   to, which flips with direction, so the corners are named logically:
   the block-end inline-end corner is the squared one. */
.html-ltr .message-detail,
.html-rtl .message-detail
{
    border-start-start-radius: 7px;
    border-start-end-radius: 7px;
    border-end-end-radius: 0;
    border-end-start-radius: 7px;
}
/* The squared corner is the block-start inline-start one, which flips
   with direction; named logically it is one rule for both. */
.html-ltr .top-corner,
.html-rtl .top-corner
{
    border-start-start-radius: 0;
    border-start-end-radius: 7px;
    border-end-end-radius: 7px;
    border-end-start-radius: 7px;
}
.user-messages-warning,
.user-mail-warning
{
    background-color: #FED;
    border-color: #FEB;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #860;
    margin: auto;
    padding: 10px;
    position: relative;
    top: 40%;
    text-align: center;
    width: fit-content;
}
#new-message-container
{
    left: 0;
    margin:auto;
    position: relative;
    text-align: center;
}
#new-message
{
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    color: var(--gray-0);
    flex: 1;
    font-family: inherit;
    font-size: var(--font-size-7);
    line-height: 1.3;
    max-height: 6rem;
    min-width: 0;
    outline: none;
    overflow-y: auto;
    padding: 6px 0;
    resize: none;
}

#attach-new-file
{
    align-items: center;
    background-color: var(--color-topbar);
    border-radius: 50%;
    border: solid 1px var(--gray-50);
    color: var(--gray-0);
    cursor: pointer;
    display: inline-flex;
    flex: none;
    font-size: 28px;
    font-weight: bold;
    height: 44px;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    width: 44px;
}
#send-message
{
    background-color: transparent;
    border: none;
    color: var(--gray-0);
    cursor: pointer;
    font-size: 22px;
    height: 40px;
    padding: 0 4px;
}
#contact-filter
{
    width: 11.4rem;
}

#user-input-container
{
    align-items: flex-end;
    background-color: var(--gray-93);
    border-radius: 20px;
    border: solid 1px var(--gray-80);
    color: var(--gray-0);
    display: inline-flex;
    flex: 1;
    gap: 2px;
    min-height: 44px;
    min-width: 0;
    padding-block: 2px;
    padding-inline: 6px;
    text-align: start;
}
#emoji-picker-button
{
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 22px;
    height: 40px;
    padding: 0 4px;
}
.emoji-picker-container
{
    display: none;
    border: solid 1px var(--gray-50);
    border-radius: 5px;
    width: 400px;
    position: absolute;
    bottom: 105%;
    height: 350px;
    background-color: var(--gray-100);
    z-index: 1;
}

.emoji
{
    border: none;
    display: inline-block;
    font-size: 22px;
    cursor: pointer;
    font-size: 35px;
    padding: 2px;
    margin: 2px;
}
.emoji-group-navigator
{
    position: absolute;
    bottom: 0;
    height: 15%;
    border-top: 1px solid var(--gray-50);
    text-align: center;
    z-index: 2;
    width: 100%;
}
.emoji-group-container
{
    display: none;
    text-align: left;
    height: 85%;
    position: absolute;
    width: 100%;
}
.emoji-container
{
    width: 100%;
    height: 90%;
    overflow-y: scroll;
    position: relative;
    padding: 10px;
}
#emoji-group-name
{
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gray-50);
    margin: 5px;
}
.active-emoji-group
{
    display: flex;
    flex-direction: column;
}
.emoji-group-tab
{
    margin: 5px;
    font-size: 22px;
    cursor: pointer;
    display: inline-block;
    padding: 5px;
}

.active-emoji-group-tab
{
    background-color: gainsboro;
    border: 1px solid var(--gray-50);
    border-radius: 10%;
}
#new-message-container form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}
.audio-control {
    background-color: transparent;
    border: none;
    color: var(--gray-0);
    cursor: pointer;
    font-size: 22px;
    height: 40px;
    padding: 0 4px;
}
#audio-controls {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
#audio-controls.none {
    display: none;
}
#mic-icon,
#play-audio-btn,
#delete-audio-btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}
.recording {
    color: red;
}
.ai-summary-hidden {
    display: none;
    margin-left: 65px;
}
/* Audio transcription styles */
.audio-message-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 8px 0;
    width: 300px;
    max-width: 100%;
}
.audio-player-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: -4px;
}
.audio-message-container audio {
    width: 100%;
    border-radius: 4px;
}
.transcribe-btn {
    position: absolute;
    top: -12px;
    left: -12px;
    background-color: transparent;
    border: none;
    color: var(--gray-0);
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    z-index: 1;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}
.transcribe-btn:hover {
    transform: scale(1.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 1);
}
.transcribe-btn:active {
    transform: scale(0.95);
}
.transcript-container {
    display: none;
    padding: 8px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-88);
    border-radius: 4px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    font-size: 14px;
    color: var(--gray-20);
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
    word-spacing: -0.1em;
}
.transcript-container.show {
    display: block;
}
.transcript-container.loading {
    color: var(--gray-40);
    font-style: italic;
}
.transcript-container.error {
    color: #d32f2f;
    font-style: italic;
}

@media (max-width: 600px)
{
    .inner-bar h1 span
    {
        top: -15px;
    }
    .sub-top-container
    {
        margin-top: 3rem;
    }
    .messages-container, .mail-container
    {
        height: 30rem;
        margin-top: 66px;
    }
    .user-contacts, .user-accounts
    {
        width: 100%;
        min-width: 0;
    }
    .contact-actions:focus-within button
    {
        font-size: var(--font-size-5);
        height:unset;
        z-index: 1000;
    }
    .selected-conversation-header h2
    {
        min-width: 200px;
        overflow: hidden;
        text-wrap: nowrap;
    }
    #av-call-div
    {
        left: 33%;
        top: 37%;
    }
    #local-av
    {
        float: right;
        left: initial;
        right:5px;
        top: 0;
    }
    .message-detail-outer
    {
        display: inline-block;
        max-width: 90%;
        overflow-wrap: anywhere;
        text-align: justify;
    }
    #contact-filter
    {
        width: 340px;
    }
    .emoji-picker-container
    {
        display: none;
        border: solid 1px var(--gray-50);
        border-radius: 5px;
        width: 250px;
        position: absolute;
        bottom: 105%;
        height: 300px;
        background-color: var(--gray-100);
        z-index: 1;
    }
    .emoji-group-tab
    {
        margin: 2% 0 0 0;
        font-size: 100%;
        display: inline-block;
        padding: 2%;
    }
    .messages-container.no-selection .contact-messages
    {
        display: none;
    }
    .messages-container.has-selection .user-contacts
    {
        display: none;
    }
    .user-contacts,
    .contact-messages
    {
        width: 100%;
    }
}