owncast/web/styles/chat.scss

149 lines
2.4 KiB
SCSS
Raw Normal View History

2021-07-20 08:02:02 +03:00
// Users, Chat views
2020-12-23 10:15:37 +03:00
.chat-messages {
.ant-table-cell {
&.name-col {
text-overflow: ellipsis;
overflow: hidden;
}
2020-12-27 08:36:48 +03:00
&.toggle-col {
label {
font-size: 0.7rem;
2020-12-27 08:36:48 +03:00
}
}
2020-12-27 08:46:40 +03:00
.message-contents {
2020-12-27 12:15:17 +03:00
overflow: auto;
2021-07-20 08:02:02 +03:00
max-height: 200px;
2020-12-27 08:46:40 +03:00
img {
position: relative;
margin-top: -5px;
width: 3rem;
padding: 0.25rem;
}
2021-01-02 16:10:16 +03:00
p {
margin-bottom: 0;
}
2020-12-27 08:46:40 +03:00
}
2020-12-23 10:15:37 +03:00
}
2020-12-26 10:14:27 +03:00
.bulk-editor {
2021-07-20 08:02:02 +03:00
margin: 0.5rem 0;
padding: 0.5rem;
border: 1px solid var(--textfield-border);
2020-12-26 10:14:27 +03:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
2020-12-27 08:36:48 +03:00
border-radius: 4px;
&.active {
.label {
2021-08-10 22:13:11 +03:00
color: var(--black-3);
2021-01-10 05:38:22 +03:00
}
2020-12-27 08:36:48 +03:00
}
2020-12-26 10:14:27 +03:00
.label {
2021-07-20 08:02:02 +03:00
font-size: 0.75rem;
color: var(--white-50);
2021-07-20 08:02:02 +03:00
margin-right: 0.5rem;
2020-12-26 10:14:27 +03:00
}
2020-12-27 08:36:48 +03:00
button {
2021-07-20 08:02:02 +03:00
margin: 0 0.2rem;
font-size: 0.75rem;
2020-12-26 10:14:27 +03:00
}
}
2020-12-23 10:15:37 +03:00
}
.ant-table-filter-dropdown {
max-width: 250px;
}
.toggle-switch {
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
justify-content: flex-end;
2021-07-20 08:02:02 +03:00
transition: opacity 0.15s;
.outcome-icon {
2021-07-20 08:02:02 +03:00
margin-right: 0.5rem;
}
&.hidden {
2021-07-20 08:02:02 +03:00
opacity: 0.25;
&:hover {
opacity: 1;
}
}
.ant-btn {
.anticon {
2021-07-20 08:02:02 +03:00
opacity: 0.5;
}
&:hover {
.anticon {
opacity: 1;
}
}
}
.ant-btn-text:hover {
2021-07-20 08:02:02 +03:00
background-color: var(--black-35);
2021-01-10 05:38:22 +03:00
}
2020-12-27 08:36:48 +03:00
}
2021-07-20 08:02:02 +03:00
.blockuser-popover {
max-width: 400px;
}
.user-item-container {
// reset <button> properties
border: none;
background: none;
text-align: left;
padding: 0;
margin: 0;
cursor: pointer;
outline: none;
.display-name {
color: var(--white);
border-bottom: 1px dotted var(--white-50);
}
&:hover {
.display-name {
border-color: var(--white);
}
}
}
.user-details {
h5 {
color: var(--white);
}
.created-at {
font-size: 0.75em;
font-style: italic;
}
.connection-info {
font-size: 0.88em;
}
.previous-names-list {
font-size: 0.88em;
.user-name-item {
font-family: monospace;
}
.latest {
font-style: italic;
.user-name-item {
font-weight: bold;
font-style: normal;
color: var(--pink);
}
}
}
.ant-divider {
border-color: var(--white-25);
}
}
.block-user-button {
text-transform: capitalize;
}