2020-08-12 20:11:03 +05:30
|
|
|
/*
|
|
|
|
Copyright 2020 Bruno Windels <bruno@windels.cloud>
|
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
@import url('inter.css');
|
|
|
|
|
2020-08-19 12:02:25 +05:30
|
|
|
:root {
|
|
|
|
font-size: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-08-12 20:11:03 +05:30
|
|
|
.hydrogen {
|
|
|
|
font-family: 'Inter', sans-serif, 'emoji';
|
|
|
|
background-color: white;
|
2020-08-12 21:53:24 +05:30
|
|
|
color: #2e2f32;
|
2020-08-19 12:02:25 +05:30
|
|
|
font-size: 1.4rem;
|
2020-08-13 16:11:00 +05:30
|
|
|
--usercolor1: #368BD6;
|
|
|
|
--usercolor2: #AC3BA8;
|
|
|
|
--usercolor3: #03B381;
|
|
|
|
--usercolor4: #E64F7A;
|
|
|
|
--usercolor5: #FF812D;
|
|
|
|
--usercolor6: #2DC2C5;
|
|
|
|
--usercolor7: #5C56F5;
|
|
|
|
--usercolor8: #74D12C;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
border-radius: 100%;
|
2020-08-12 21:53:24 +05:30
|
|
|
background: #3D88FA;
|
2020-08-12 20:11:03 +05:30
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
2020-08-13 16:11:00 +05:30
|
|
|
.hydrogen .avatar.usercolor1 { background-color: var(--usercolor1); }
|
|
|
|
.hydrogen .avatar.usercolor2 { background-color: var(--usercolor2); }
|
|
|
|
.hydrogen .avatar.usercolor3 { background-color: var(--usercolor3); }
|
|
|
|
.hydrogen .avatar.usercolor4 { background-color: var(--usercolor4); }
|
|
|
|
.hydrogen .avatar.usercolor5 { background-color: var(--usercolor5); }
|
|
|
|
.hydrogen .avatar.usercolor6 { background-color: var(--usercolor6); }
|
|
|
|
.hydrogen .avatar.usercolor7 { background-color: var(--usercolor7); }
|
|
|
|
.hydrogen .avatar.usercolor8 { background-color: var(--usercolor8); }
|
|
|
|
|
2020-08-14 18:04:39 +05:30
|
|
|
.logo {
|
|
|
|
height: 48px;
|
|
|
|
min-width: 48px;
|
|
|
|
background-image: url('element-logo.svg');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** buttons */
|
|
|
|
.button-row {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.button-row > * {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
.button-row > *:last-child {
|
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
|
2020-10-14 14:03:48 +05:30
|
|
|
.button-row .button-action {
|
2020-08-14 18:04:39 +05:30
|
|
|
margin: 10px 0;
|
|
|
|
flex: 1 0 auto;
|
|
|
|
}
|
|
|
|
|
2020-08-14 18:19:22 +05:30
|
|
|
.form-row {
|
|
|
|
margin: 12px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-row input {
|
|
|
|
padding: 12px;
|
|
|
|
border: 1px solid rgba(141, 151, 165, 0.15);
|
|
|
|
border-radius: 8px;
|
|
|
|
margin-top: 5px;
|
|
|
|
font-size: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-row label, .form-row input {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2020-10-14 14:03:48 +05:30
|
|
|
a.button-action {
|
|
|
|
text-decoration: none;
|
|
|
|
text-align: center;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-action.secondary {
|
2020-08-14 18:04:39 +05:30
|
|
|
color: #03B381;
|
|
|
|
}
|
|
|
|
|
2020-10-14 14:03:48 +05:30
|
|
|
.button-action.primary {
|
2020-08-14 18:04:39 +05:30
|
|
|
background-color: #03B381;
|
|
|
|
border-radius: 8px;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
2020-10-14 14:03:48 +05:30
|
|
|
.button-action.primary.destructive {
|
2020-08-14 18:04:39 +05:30
|
|
|
background-color: #FF4B55;
|
|
|
|
}
|
|
|
|
|
2020-10-14 14:03:48 +05:30
|
|
|
.button-action.secondary.destructive {
|
2020-08-14 18:04:39 +05:30
|
|
|
color: #FF4B55;
|
|
|
|
}
|
|
|
|
|
2020-10-14 14:03:48 +05:30
|
|
|
.button-action {
|
2020-08-14 18:04:39 +05:30
|
|
|
border: none;
|
|
|
|
padding: 10px;
|
|
|
|
background: none;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
2020-10-14 14:03:48 +05:30
|
|
|
.button-utility {
|
|
|
|
cursor: pointer;
|
2020-10-07 21:29:28 +05:30
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
background-position: center;
|
|
|
|
background-color: #e1e3e6;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
border: none;
|
|
|
|
border-radius: 100%;
|
2020-10-16 21:36:20 +05:30
|
|
|
display: block;
|
2020-10-07 21:29:28 +05:30
|
|
|
}
|
|
|
|
|
2020-10-14 14:04:11 +05:30
|
|
|
.button-utility.grid {
|
2020-10-07 21:29:28 +05:30
|
|
|
background-image: url('icons/enable-grid.svg');
|
|
|
|
}
|
|
|
|
|
2020-10-16 21:36:20 +05:30
|
|
|
.button-utility.settings {
|
|
|
|
background-image: url('icons/settings.svg');
|
|
|
|
}
|
|
|
|
|
2020-10-14 14:04:11 +05:30
|
|
|
.button-utility.grid.on {
|
2020-10-07 21:29:28 +05:30
|
|
|
background-image: url('icons/disable-grid.svg');
|
|
|
|
}
|
|
|
|
|
2020-10-07 21:29:14 +05:30
|
|
|
.FilterField {
|
2020-10-08 13:43:05 +05:30
|
|
|
background-image: url('icons/search.svg');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 8px center;
|
2020-10-07 21:29:14 +05:30
|
|
|
background-color: #e1e3e6;
|
2020-10-08 13:43:05 +05:30
|
|
|
/* to prevent jumps when adding a border on focus */
|
|
|
|
border: 1px solid transparent;
|
2020-10-07 21:29:14 +05:30
|
|
|
border-radius: 16px;
|
|
|
|
height: 32px;
|
|
|
|
align-items: center;
|
2020-10-08 13:43:05 +05:30
|
|
|
padding-left: 30px; /* 8 + 14 (icon) + 8*/
|
2020-10-07 21:29:14 +05:30
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.FilterField:focus-within {
|
|
|
|
border: 1px #e1e3e6 solid;
|
|
|
|
background-color: white;
|
|
|
|
}
|
2020-10-08 13:43:05 +05:30
|
|
|
.FilterField:focus-within button {
|
|
|
|
border-color: white;
|
|
|
|
}
|
2020-10-07 21:29:14 +05:30
|
|
|
|
|
|
|
/*.FilterField:not(:focus-within) button {
|
|
|
|
display: none;
|
|
|
|
}*/
|
|
|
|
|
|
|
|
.FilterField input {
|
|
|
|
font-family: "Inter";
|
|
|
|
font-size: 1.3rem;
|
|
|
|
font-weight: 500;
|
|
|
|
line-height: 1.573rem;
|
|
|
|
outline: none;
|
|
|
|
border: none;
|
|
|
|
background-color: transparent;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.FilterField button {
|
2020-10-08 13:43:05 +05:30
|
|
|
width: 30px; /* 32 - 1 (top) - 1 (bottom) */
|
|
|
|
height: 30px; /* 32 - 1 (top) - 1 (bottom) */
|
2020-10-07 21:29:14 +05:30
|
|
|
background-position: center;
|
|
|
|
background-color: #e1e3e6;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-image: url('icons/clear.svg');
|
2020-10-08 13:43:05 +05:30
|
|
|
border: 7px solid transparent; /* 8 - 1 */
|
2020-10-07 21:29:14 +05:30
|
|
|
border-radius: 100%;
|
2020-10-08 13:43:05 +05:30
|
|
|
box-sizing: border-box;
|
2020-10-07 21:29:14 +05:30
|
|
|
}
|
|
|
|
|
2020-08-14 18:04:39 +05:30
|
|
|
.PreSessionScreen {
|
|
|
|
padding: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreSessionScreen h1 {
|
|
|
|
font-size: 16px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 600px) {
|
|
|
|
.PreSessionScreen {
|
|
|
|
box-shadow: 0px 6px 32px rgba(0, 0, 0, 0.1);
|
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.PreSessionScreen .logo {
|
|
|
|
height: 48px;
|
|
|
|
min-width: 48px;
|
|
|
|
}
|
|
|
|
|
2020-08-12 20:11:03 +05:30
|
|
|
.LeftPanel {
|
2020-08-12 21:53:24 +05:30
|
|
|
background: rgba(245, 245, 245, 0.90);
|
2020-08-19 12:02:25 +05:30
|
|
|
font-size: 1.5rem;
|
2020-10-08 13:59:30 +05:30
|
|
|
padding: 12px 8px 0 8px;
|
2020-10-07 21:29:28 +05:30
|
|
|
}
|
|
|
|
|
2020-10-08 13:59:30 +05:30
|
|
|
.LeftPanel > :not(:first-child) {
|
|
|
|
margin-top: 12px;
|
2020-10-07 21:29:28 +05:30
|
|
|
}
|
|
|
|
|
2020-10-08 13:43:05 +05:30
|
|
|
.LeftPanel .utilities > :not(:first-child) {
|
2020-10-07 21:29:28 +05:30
|
|
|
margin-left: 8px;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-10-06 17:01:34 +05:30
|
|
|
.LeftPanel .filter {
|
|
|
|
border-bottom: 1px solid rgba(245, 245, 245, 0.90);
|
|
|
|
}
|
|
|
|
|
|
|
|
.LeftPanel .filter input {
|
|
|
|
padding: 0.8em;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2020-10-08 13:59:30 +05:30
|
|
|
.LeftPanel .RoomList {
|
2020-08-12 20:11:03 +05:30
|
|
|
padding: 0;
|
2020-10-08 20:07:24 +05:30
|
|
|
/* make scrollbar hit right edge of parent */
|
|
|
|
padding-right: 8px;
|
|
|
|
margin-right: -8px;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-10-14 13:50:20 +05:30
|
|
|
.RoomList > li {
|
2020-10-08 13:59:30 +05:30
|
|
|
margin: 0;
|
2020-10-14 13:50:20 +05:30
|
|
|
padding: 4px 8px 4px 0;
|
|
|
|
/* vertical align */
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomList > li > a {
|
|
|
|
text-decoration: none;
|
2020-08-12 20:11:03 +05:30
|
|
|
/* vertical align */
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2020-10-08 13:59:30 +05:30
|
|
|
.RoomList li:not(:first-child) {
|
2020-10-14 13:50:20 +05:30
|
|
|
/* space between items is 12px but we take 4px padding
|
|
|
|
on each side for the background of the active state*/
|
|
|
|
margin-top: 4px;
|
2020-10-08 13:59:30 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.RoomList li.active {
|
2020-08-12 21:53:24 +05:30
|
|
|
background: rgba(141, 151, 165, 0.1);
|
|
|
|
border-radius: 5px;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-10-14 13:50:20 +05:30
|
|
|
.RoomList li > a > * {
|
2020-10-08 13:59:30 +05:30
|
|
|
margin-right: 8px;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-10-08 13:59:30 +05:30
|
|
|
.RoomList .description {
|
2020-08-21 19:20:47 +05:30
|
|
|
align-items: baseline;
|
|
|
|
}
|
|
|
|
|
2020-10-08 13:59:30 +05:30
|
|
|
.RoomList .name.unread {
|
2020-08-21 19:20:47 +05:30
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2020-10-08 13:59:30 +05:30
|
|
|
.RoomList .badge {
|
2020-08-21 19:20:47 +05:30
|
|
|
min-width: 1.6rem;
|
|
|
|
height: 1.6rem;
|
|
|
|
border-radius: 1.6rem;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0.1rem 0.3rem;
|
|
|
|
background-color: #61708b;
|
|
|
|
color: white;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: 1.4rem;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2020-10-08 13:59:30 +05:30
|
|
|
.RoomList .badge.highlighted {
|
2020-08-21 19:20:47 +05:30
|
|
|
background-color: #ff4b55;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2020-08-14 18:04:39 +05:30
|
|
|
color: inherit;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.SessionStatusView {
|
2020-10-20 18:12:17 +05:30
|
|
|
padding: 4px;
|
|
|
|
min-height: 22px;
|
2020-10-19 21:59:13 +05:30
|
|
|
background-color: #03B381;
|
2020-08-12 21:53:24 +05:30
|
|
|
color: white;
|
2020-10-20 18:12:17 +05:30
|
|
|
align-items: center;
|
2020-08-12 21:53:24 +05:30
|
|
|
}
|
|
|
|
|
2020-10-20 18:12:17 +05:30
|
|
|
|
|
|
|
.SessionStatusView button.link {
|
|
|
|
color: currentcolor;
|
|
|
|
}
|
|
|
|
|
|
|
|
.SessionStatusView > .end {
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
align-self: stretch;
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
|
|
|
|
.SessionStatusView .dismiss {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
background-image: url('icons/dismiss.svg');
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
width: 32px;
|
|
|
|
cursor: pointer;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-10-08 19:44:59 +05:30
|
|
|
.room-placeholder {
|
2020-08-12 20:11:03 +05:30
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-10-07 21:29:28 +05:30
|
|
|
text-align: center;
|
|
|
|
padding: 20px;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.SessionPickerView li {
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
2020-08-14 18:04:39 +05:30
|
|
|
.SessionPickerView .session-info {
|
2020-10-14 14:04:25 +05:30
|
|
|
text-decoration: none;
|
2020-08-14 18:04:39 +05:30
|
|
|
padding: 12px;
|
|
|
|
border: 1px solid rgba(141, 151, 165, 0.15);
|
|
|
|
border-radius: 8px;
|
|
|
|
background-image: url('icons/chevron-right.svg');
|
|
|
|
background-position: center right 30px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
.SessionPickerView .session-actions {
|
|
|
|
margin: 10px 0 20px 0;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.SessionPickerView .session-actions > * {
|
|
|
|
margin-right: 10px;
|
|
|
|
}
|
|
|
|
.SessionPickerView .session-actions > *:last-child {
|
|
|
|
margin-right: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.SessionPickerView .session-actions button {
|
|
|
|
border: none;
|
|
|
|
background: none;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.SessionPickerView button.destructive {
|
|
|
|
color: #FF4B55;
|
|
|
|
}
|
|
|
|
|
2020-10-07 17:52:00 +05:30
|
|
|
.RoomGridView > div.container {
|
|
|
|
border-right: 1px solid rgba(245, 245, 245, 0.90);
|
|
|
|
border-bottom: 1px solid rgba(245, 245, 245, 0.90);
|
|
|
|
}
|
|
|
|
|
2020-10-08 19:44:59 +05:30
|
|
|
.RoomGridView > .focused > .room-placeholder .unfocused {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomGridView > :not(.focused) > .room-placeholder .focused {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.room-placeholder .unfocused {
|
|
|
|
color: #8D99A5;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-10-07 17:52:00 +05:30
|
|
|
.RoomGridView > div.focus-ring {
|
|
|
|
border: 2px solid rgba(134, 193, 165, 1);
|
2020-10-07 21:29:28 +05:30
|
|
|
border-radius: 12px;
|
2020-10-07 17:52:00 +05:30
|
|
|
}
|
|
|
|
|
2020-10-19 18:22:18 +05:30
|
|
|
.middle-header {
|
2020-10-08 18:30:20 +05:30
|
|
|
box-sizing: border-box;
|
|
|
|
height: 58px; /* 12 + 36 + 12 to align with filter field + margin */
|
|
|
|
background: white;
|
|
|
|
padding: 0 16px;
|
|
|
|
border-bottom: 1px solid rgba(245, 245, 245, 0.90);
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-10-19 18:22:18 +05:30
|
|
|
.middle-header h2 {
|
2020-08-19 12:02:25 +05:30
|
|
|
font-size: 1.8rem;
|
2020-08-19 14:32:27 +05:30
|
|
|
font-weight: 600;
|
2020-08-19 12:02:25 +05:30
|
|
|
}
|
|
|
|
|
2020-10-19 18:22:18 +05:30
|
|
|
.middle-header > :not(:last-child) {
|
2020-10-08 18:51:16 +05:30
|
|
|
/* use margin-right because the first item,
|
2020-10-19 18:22:18 +05:30
|
|
|
.close-middle might be hidden and then we don't
|
2020-10-08 18:51:16 +05:30
|
|
|
want a margin-left on the second item*/
|
|
|
|
margin-right: 8px;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-10-19 18:22:18 +05:30
|
|
|
.close-middle, .close-session {
|
2020-10-08 18:30:20 +05:30
|
|
|
background-image: url('icons/chevron-left.svg');
|
|
|
|
background-position-x: 10px;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.RoomHeader .topic {
|
2020-08-19 14:32:27 +05:30
|
|
|
font-size: 14rem;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.RoomView_error {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
|
2020-08-13 21:30:19 +05:30
|
|
|
.MessageComposer {
|
|
|
|
border-top: 1px solid rgba(245, 245, 245, 0.90);
|
2020-10-08 18:40:32 +05:30
|
|
|
padding: 8px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.MessageComposer > :not(:first-child) {
|
|
|
|
margin-left: 12px;
|
2020-08-13 21:30:19 +05:30
|
|
|
}
|
|
|
|
|
2020-08-12 20:11:03 +05:30
|
|
|
.MessageComposer > input {
|
2020-10-08 18:40:32 +05:30
|
|
|
padding: 0 16px;
|
2020-08-12 20:11:03 +05:30
|
|
|
border: none;
|
2020-10-08 18:40:32 +05:30
|
|
|
border-radius: 24px;
|
|
|
|
background: #F6F6F6;
|
|
|
|
height: 48px;
|
|
|
|
font-size: 14px;
|
|
|
|
font-family: "Inter", sans-serif;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-08-13 21:30:19 +05:30
|
|
|
.MessageComposer > button.send {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
display: block;
|
|
|
|
border-radius: 100%;
|
|
|
|
border: none;
|
|
|
|
text-indent: 200%;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
background-color: #03B381;
|
|
|
|
background-image: url('icons/send.svg');
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.MessageComposer > button.send:disabled {
|
|
|
|
background-color: #E3E8F0;
|
|
|
|
}
|
|
|
|
|
2020-08-19 14:32:27 +05:30
|
|
|
ul.Timeline > li:not(.continuation) {
|
|
|
|
margin-top: 7px;
|
|
|
|
}
|
|
|
|
|
2020-08-20 19:33:52 +05:30
|
|
|
ul.Timeline > li.continuation .profile {
|
2020-08-19 14:32:27 +05:30
|
|
|
display: none;
|
|
|
|
}
|
2020-08-13 21:30:19 +05:30
|
|
|
|
2020-08-21 18:07:57 +05:30
|
|
|
ul.Timeline > li.continuation time {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-08-20 19:33:52 +05:30
|
|
|
|
2020-09-14 19:13:33 +05:30
|
|
|
ul.Timeline > li.messageStatus .message-container > p {
|
|
|
|
font-style: italic;
|
|
|
|
color: #777;
|
|
|
|
}
|
|
|
|
|
2020-08-12 20:11:03 +05:30
|
|
|
.message-container {
|
2020-08-19 14:32:27 +05:30
|
|
|
padding: 1px 10px 0px 10px;
|
2020-08-13 21:28:56 +05:30
|
|
|
margin: 5px 10px 0 10px;
|
2020-10-31 04:55:05 +05:30
|
|
|
/* so the .picture can grow horizontally and its spacer can grow vertically */
|
|
|
|
width: 100%;
|
2020-08-13 21:28:56 +05:30
|
|
|
}
|
|
|
|
|
2020-08-20 19:33:52 +05:30
|
|
|
.message-container .profile {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-container .avatar {
|
|
|
|
--avatar-size: 25px;
|
|
|
|
}
|
|
|
|
|
2020-10-31 04:55:05 +05:30
|
|
|
.TextMessageView {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2020-08-13 21:28:56 +05:30
|
|
|
.TextMessageView.continuation .message-container {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.message-container .sender {
|
2020-08-19 14:32:27 +05:30
|
|
|
margin: 6px 0;
|
2020-08-20 19:33:52 +05:30
|
|
|
margin-left: 6px;
|
2020-08-12 20:11:03 +05:30
|
|
|
font-weight: bold;
|
2020-08-19 14:32:27 +05:30
|
|
|
line-height: 1.7rem;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-08-13 16:11:00 +05:30
|
|
|
.hydrogen .sender.usercolor1 { color: var(--usercolor1); }
|
|
|
|
.hydrogen .sender.usercolor2 { color: var(--usercolor2); }
|
|
|
|
.hydrogen .sender.usercolor3 { color: var(--usercolor3); }
|
|
|
|
.hydrogen .sender.usercolor4 { color: var(--usercolor4); }
|
|
|
|
.hydrogen .sender.usercolor5 { color: var(--usercolor5); }
|
|
|
|
.hydrogen .sender.usercolor6 { color: var(--usercolor6); }
|
|
|
|
.hydrogen .sender.usercolor7 { color: var(--usercolor7); }
|
|
|
|
.hydrogen .sender.usercolor8 { color: var(--usercolor8); }
|
|
|
|
|
2020-08-12 20:11:03 +05:30
|
|
|
.message-container time {
|
2020-08-13 21:28:56 +05:30
|
|
|
padding: 2px 0 0px 10px;
|
|
|
|
font-size: 0.8em;
|
2020-08-19 14:32:27 +05:30
|
|
|
line-height: normal;
|
2020-08-13 21:28:56 +05:30
|
|
|
color: #aaa;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-10-31 03:20:59 +05:30
|
|
|
|
2020-10-31 04:55:05 +05:30
|
|
|
.message-container .picture {
|
2020-10-31 03:20:59 +05:30
|
|
|
display: grid;
|
|
|
|
text-decoration: none;
|
|
|
|
margin-top: 4px;
|
2020-10-31 04:55:05 +05:30
|
|
|
width: 100%;
|
2020-10-31 03:20:59 +05:30
|
|
|
}
|
|
|
|
|
2020-10-31 04:55:05 +05:30
|
|
|
/* .spacer grows with an inline padding-top to the size of the image,
|
|
|
|
so the timeline doesn't jump when the image loads */
|
|
|
|
.message-container .picture > * {
|
|
|
|
grid-row: 1;
|
|
|
|
grid-column: 1;
|
2020-10-31 03:20:59 +05:30
|
|
|
}
|
|
|
|
|
2020-10-31 04:55:05 +05:30
|
|
|
.message-container .picture > img {
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
2020-11-02 15:46:35 +05:30
|
|
|
/* for IE11 to still scale even though the spacer is too tall */
|
|
|
|
align-self: start;
|
|
|
|
border-radius: 4px;
|
2020-10-31 04:55:05 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.message-container .picture > time {
|
2020-10-31 03:20:59 +05:30
|
|
|
align-self: end;
|
|
|
|
justify-self: end;
|
|
|
|
color: #2e2f32;
|
|
|
|
display: block;
|
|
|
|
padding: 2px;
|
|
|
|
margin: 4px;
|
|
|
|
background-color: rgba(255, 255, 255, 0.75);
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
2020-10-31 04:55:05 +05:30
|
|
|
.message-container .picture > .spacer {
|
2020-11-02 15:46:35 +05:30
|
|
|
/* TODO: can we implement this with a pseudo element? or perhaps they are not grid items? */
|
2020-10-31 04:55:05 +05:30
|
|
|
width: 100%;
|
2020-11-02 15:46:35 +05:30
|
|
|
align-self: start;
|
2020-10-31 04:55:05 +05:30
|
|
|
}
|
2020-10-31 03:20:59 +05:30
|
|
|
|
2020-08-12 20:11:03 +05:30
|
|
|
.TextMessageView.pending .message-container {
|
2020-08-12 21:53:24 +05:30
|
|
|
color: #ccc;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
2020-09-08 14:20:39 +05:30
|
|
|
.TextMessageView.unverified .message-container {
|
|
|
|
color: #ff4b55;
|
|
|
|
}
|
|
|
|
|
2020-08-12 20:11:03 +05:30
|
|
|
.message-container p {
|
2020-08-19 14:32:27 +05:30
|
|
|
margin: 3px 0;
|
|
|
|
line-height: 2.2rem;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.AnnouncementView {
|
|
|
|
margin: 5px 0;
|
|
|
|
padding: 5px 10%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.AnnouncementView > div {
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 10px 20px;
|
2020-08-12 21:53:24 +05:30
|
|
|
background-color: rgba(245, 245, 245, 0.90);
|
2020-08-12 20:11:03 +05:30
|
|
|
text-align: center;
|
2020-08-12 21:53:24 +05:30
|
|
|
border-radius: 10px;
|
2020-08-12 20:11:03 +05:30
|
|
|
}
|
2020-10-08 19:23:13 +05:30
|
|
|
|
|
|
|
.GapView > :not(:first-child) {
|
|
|
|
margin-left: 12px;
|
|
|
|
}
|
2020-10-16 21:36:20 +05:30
|
|
|
|
2020-10-19 18:23:05 +05:30
|
|
|
.SettingsBody {
|
2020-10-19 21:59:13 +05:30
|
|
|
padding: 0px 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Settings h3 {
|
|
|
|
margin: 16px 0 8px 0;
|
2020-10-16 21:36:20 +05:30
|
|
|
}
|
|
|
|
|
2020-10-20 15:40:56 +05:30
|
|
|
.Settings p {
|
|
|
|
max-width: 700px;
|
|
|
|
}
|
|
|
|
|
2020-10-16 21:36:20 +05:30
|
|
|
.Settings .row .label {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:23:05 +05:30
|
|
|
.Settings .row .label, .Settings .row .content {
|
|
|
|
margin-top: 4px;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Settings .row .content {
|
|
|
|
margin-left: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Settings .row.code .content {
|
2020-10-16 21:36:20 +05:30
|
|
|
font-family: monospace;
|
|
|
|
}
|
|
|
|
|
2020-10-19 18:23:05 +05:30
|
|
|
.Settings .row .content button {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 8px;
|
|
|
|
}
|
|
|
|
|
2020-10-16 21:36:20 +05:30
|
|
|
.Settings .row {
|
2020-10-19 18:23:05 +05:30
|
|
|
margin: 4px 0px;
|
2020-10-16 21:36:20 +05:30
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2020-10-19 18:23:05 +05:30
|
|
|
align-items: center;
|
2020-10-16 21:36:20 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.Settings .row .label {
|
|
|
|
flex: 0 0 200px;
|
|
|
|
}
|
2020-10-19 21:59:13 +05:30
|
|
|
|
2020-10-29 14:59:08 +05:30
|
|
|
.error {
|
2020-10-19 21:59:13 +05:30
|
|
|
color: red;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
button.link {
|
|
|
|
font-size: 1em;
|
|
|
|
border: none;
|
|
|
|
text-decoration: underline;
|
|
|
|
background: none;
|
|
|
|
cursor: pointer;
|
|
|
|
margin: -12px;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
2020-10-20 18:12:17 +05:30
|
|
|
|
|
|
|
.Settings a, .Settings .link {
|
|
|
|
color: #03B381;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
2020-10-30 19:50:11 +05:30
|
|
|
|
|
|
|
.lightbox {
|
|
|
|
background-color: rgba(0,0,0,0.75);
|
|
|
|
display: grid;
|
|
|
|
grid-template:
|
|
|
|
"content close" auto
|
|
|
|
"content details" 1fr /
|
|
|
|
1fr auto;
|
|
|
|
color: white;
|
2020-10-31 04:55:51 +05:30
|
|
|
padding: 4px;
|
2020-10-30 19:50:11 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-aspect-ratio: 1/1) {
|
|
|
|
.lightbox {
|
|
|
|
grid-template:
|
|
|
|
"close" auto
|
|
|
|
"content" 1fr
|
|
|
|
"details" auto /
|
|
|
|
1fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.lightbox .details {
|
|
|
|
width: 100% !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.lightbox .picture {
|
|
|
|
grid-area: content;
|
|
|
|
background-size: contain;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2020-10-31 03:22:08 +05:30
|
|
|
align-self: center;
|
|
|
|
justify-self: center;
|
2020-10-30 19:50:11 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
.lightbox .loading {
|
|
|
|
grid-area: content;
|
2020-10-31 03:22:08 +05:30
|
|
|
align-self: center;
|
|
|
|
justify-self: center;
|
|
|
|
display: flex;
|
2020-10-30 19:50:11 +05:30
|
|
|
}
|
|
|
|
|
2020-11-02 15:59:09 +05:30
|
|
|
.lightbox .loading > :not(:first-child) {
|
|
|
|
margin-left: 8px;
|
|
|
|
}
|
|
|
|
|
2020-10-30 19:50:11 +05:30
|
|
|
.lightbox .close {
|
2020-10-31 03:22:08 +05:30
|
|
|
display: block;
|
2020-10-30 19:50:11 +05:30
|
|
|
grid-area: close;
|
2020-10-31 03:22:08 +05:30
|
|
|
justify-self: end;
|
2020-10-30 19:50:11 +05:30
|
|
|
background-image: url('icons/dismiss.svg');
|
|
|
|
background-position: center;
|
|
|
|
background-size: 16px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.lightbox .details {
|
|
|
|
grid-area: details;
|
|
|
|
padding: 12px;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
width: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
|