autonomous.contact/public/tabs/talk/talk.css

375 lines
6.9 KiB
CSS
Raw Normal View History

#talk .tab-content {
display: grid;
grid-template-columns: auto 1fr;
}
.room-list {
margin: 1rem 0;
list-style-type: none;
}
.room-list > li.room a:before {
position: absolute;
left: -1.75rem;
top: 0;
font-weight: bold;
font-size: x-large;
content: "#";
color: var(--text);
}
.room-list > li.room a {
position: relative;
display: block;
width: 100%;
min-height: 1.5rem;
line-height: 1.5rem;
font-weight: bold;
font-size: large;
margin-left: 1.75rem;
text-decoration: none;
}
.room-list > li.room.active a {
color: var(--accent);
}
#talk .sidebar {
position: relative;
width: min-content;
min-width: 10rem;
max-width: 32rem;
overflow-x: scroll;
padding: 0.5rem;
}
#talk .sidebar #sidebar-toggle,
#talk .sidebar #sidebar-toggle-icon {
opacity: 0;
display: none;
}
#talk .sidebar .title {
text-transform: uppercase;
font-size: small;
font-weight: bold;
line-height: 2rem;
}
#talk #room-chat-container {
position: relative;
}
#talk #room-chat-content {
overflow-y: scroll;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 5rem;
padding: 0.5rem;
}
#talk #room-chat-entry-container {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 5rem;
padding: 1rem;
}
#talk #room-chat-entry-container form {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: row;
padding: 0.75rem;
}
#talk #room-chat-entry-container form input[type="file"] {
opacity: 0;
display: none;
}
#talk #room-chat-entry-container form button,
#talk #room-chat-entry-container form label {
position: relative;
top: inherit;
font-size: inherit;
transition: inherit;
width: 50px;
padding: inherit;
margin: 0 1rem;
cursor: pointer;
align-content: center;
border-radius: var(--border-radius);
border: 1px solid var(--text);
}
#talk #room-chat-entry-container form textarea {
width: 100%;
flex-grow: 1;
background: inherit;
color: inherit;
border-radius: var(--border-radius);
}
#talk .message-container {
position: relative;
transition: all 0.33s;
background: rgba(255, 255, 255, 0.03);
margin-top: 0.75rem;
padding: 2px;
border-radius: var(--border-radius);
}
#talk .message-container.user-tick.time-tick + .message-container.user-tick.time-tick,
#talk .message-container.user-tick.time-tock + .message-container.user-tick.time-tock,
#talk .message-container.user-tock.time-tick + .message-container.user-tock.time-tick,
#talk .message-container.user-tock.time-tock + .message-container.user-tock.time-tock {
margin-top: 0;
padding: 0 2px;
}
#talk
.message-container.user-tick.time-tick
+ .message-container.user-tick.time-tick
.info-container,
#talk
.message-container.user-tick.time-tock
+ .message-container.user-tick.time-tock
.info-container,
#talk
.message-container.user-tock.time-tick
+ .message-container.user-tock.time-tick
.info-container,
#talk
.message-container.user-tock.time-tock
+ .message-container.user-tock.time-tock
.info-container {
opacity: 0;
visibility: hidden;
height: 0;
margin: 0;
}
#talk .message-container.sending {
opacity: 0.75;
}
#talk .message-container .message-actions-container {
position: absolute;
top: 0.5rem;
right: 0.5rem;
display: flex;
flex-direction: row;
}
#talk .message-container .message-actions-container .message-action {
opacity: 0;
transition: 0.2s ease-in-out;
width: 0;
height: 4rem;
overflow: hidden;
order: -1;
cursor: pointer;
margin-right: 1.25rem;
padding-top: 0.25rem;
text-align: center;
}
#talk .message-container .message-actions-container label {
cursor: pointer;
}
#talk .message-container .message-actions-container input[type="checkbox"] {
opacity: 0;
display: none;
}
#talk
.message-container
.message-actions-container
input[type="checkbox"]:checked
~ .message-action {
opacity: 1;
width: 4rem;
}
#talk .message-container .message-actions-container .message-action .action-name {
font-size: x-small;
}
#talk .message-container .info-container {
display: flex;
margin-bottom: -1.5rem;
height: 3.75rem;
}
#talk .message-container .info-container .avatar-container {
display: inline-block;
margin: 0 4px;
width: 3rem;
height: 3rem;
border-radius: 16%;
overflow: hidden;
}
#talk .message-container .info-container .avatar-container img {
width: 100%;
}
#talk .message-container .info-container .username-container {
margin: 0 4px;
font-weight: bold;
}
#talk .message-container .info-container .datetime-container {
margin: 0 4px;
}
#talk .message-container .info-container .datetime-container .long {
font-size: x-small;
text-transform: uppercase;
}
#talk .message-container .info-container .datetime-container .short {
font-size: xx-small;
visibility: hidden;
display: none;
}
#talk .message-container .message-content-container {
padding-left: 8rem;
}
#talk .embed-container {
position: relative;
width: 100%;
max-width: 640px;
2025-07-25 20:07:29 -07:00
}
#talk .embed-container .embed-actions-container {
position: absolute;
z-index: 100;
top: 0.25rem;
right: 0.25rem;
height: 2rem;
display: none;
visibility: hidden;
opacity: 0;
}
#talk .embed-container audio {
width: 100%;
}
#talk .embed-container.rounded {
border-radius: 6px;
}
#talk .embed-container.short {
2025-07-25 20:07:29 -07:00
height: 0;
min-height: 40px;
2025-07-25 20:07:29 -07:00
overflow: hidden;
overflow-y: auto;
padding-bottom: 7.5%;
}
2025-07-25 20:56:30 -07:00
#talk .embed-container.vertical {
max-width: 320px;
overflow: hidden;
aspect-ratio: 9 / 16 !important;
}
#talk .embed-container.letterbox {
2025-07-25 20:56:30 -07:00
/* height: 0; */
2025-07-25 20:07:29 -07:00
overflow: hidden;
overflow-y: auto;
2025-07-25 20:56:30 -07:00
/* padding-bottom: 33%; */
aspect-ratio: 16 / 9 !important;
}
#talk .embed-container.square {
2025-07-25 20:07:29 -07:00
overflow: hidden;
overflow-y: auto;
aspect-ratio: 1 / 1 !important;
}
2025-07-26 17:07:44 -07:00
#talk .embed-container iframe,
#talk .embed-container video {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
2025-07-26 17:07:44 -07:00
overflow: hidden;
border-style: none;
}
@media screen and (max-width: 768px) {
#talk .sidebar {
z-index: 100;
background: var(--bg);
position: absolute;
top: 0;
bottom: 0;
width: 100%;
left: -100%;
overflow-y: scroll;
overflow: visible;
transition: all ease-in-out 0.33s;
}
#talk .sidebar #sidebar-toggle-icon {
opacity: 1;
display: block;
position: absolute;
top: 1rem;
right: -2.5rem;
cursor: pointer;
transition: all ease-in-out 0.33s;
background: rgba(128, 128, 128, 0.5);
border-radius: 0 1rem 1rem 0;
padding: 0.5rem;
}
#talk .sidebar .icon {
transition: all ease-in-out 0.33s;
}
#talk .sidebar:has(#sidebar-toggle:checked) {
left: 0;
}
#talk .sidebar:has(#sidebar-toggle:checked) #sidebar-toggle-icon {
right: 0;
rotate: 180deg;
}
#talk #room-chat-container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
#talk #room-chat-container #room-chat-entry-container,
#talk #room-chat-container #room-chat-entry-container form {
padding: 0.25rem;
}
#talk #room-chat-container #room-chat-entry-container form button,
#talk #room-chat-container #room-chat-entry-container form label {
margin: 0 0.5rem;
}
}