This repository has been archived on 2022-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
hydrogen-web/src/ui/web/css/themes/element/theme.css

402 lines
7.6 KiB
CSS
Raw Normal View History

/*
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');
:root {
font-size: 10px;
}
.hydrogen {
font-family: 'Inter', sans-serif, 'emoji';
background-color: white;
2020-08-12 21:53:24 +05:30
color: #2e2f32;
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;
}
.avatar {
border-radius: 100%;
2020-08-12 21:53:24 +05:30
background: #3D88FA;
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;
}
.button-row button {
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-08-14 18:04:39 +05:30
button.styled.secondary {
color: #03B381;
}
button.styled.primary {
background-color: #03B381;
border-radius: 8px;
color: white;
}
button.styled.primary.destructive {
background-color: #FF4B55;
}
button.styled.secondary.destructive {
color: #FF4B55;
}
button.styled {
border: none;
padding: 10px;
background: none;
font-weight: 500;
}
.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;
}
.LeftPanel {
2020-08-12 21:53:24 +05:30
background: rgba(245, 245, 245, 0.90);
font-size: 1.5rem;
}
.LeftPanel ul {
padding: 0;
margin: 0;
}
.LeftPanel li {
margin: 3px 10px;
2020-08-13 21:28:56 +05:30
padding: 5px;
/* vertical align */
align-items: center;
}
2020-08-12 21:11:46 +05:30
.LeftPanel li.active {
2020-08-12 21:53:24 +05:30
background: rgba(141, 151, 165, 0.1);
border-radius: 5px;
}
.LeftPanel li > * {
margin-right: 10px;
}
2020-08-21 19:20:47 +05:30
.LeftPanel .description {
align-items: baseline;
}
.LeftPanel .name.unread {
font-weight: 600;
}
.LeftPanel .badge {
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;
}
.LeftPanel .badge.highlighted {
background-color: #ff4b55;
}
a {
2020-08-14 18:04:39 +05:30
color: inherit;
}
.SessionStatusView {
padding: 5px;
2020-08-12 21:53:24 +05:30
position: absolute;
top: 20px;
right: 20px;
background-color: #3D88FA;
color: white;
border-radius: 10px;
}
.room-shown .SessionStatusView {
top: 72px;
}
.RoomPlaceholderView {
align-items: center;
justify-content: center;
}
.SessionPickerView li {
font-size: 1.2em;
}
2020-08-14 18:04:39 +05:30
.SessionPickerView .session-info {
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;
}
.RoomHeader {
2020-08-12 21:53:24 +05:30
background: rgba(245, 245, 245, 0.90);
padding: 10px;
}
.RoomHeader h2 {
font-size: 1.8rem;
font-weight: 600;
}
.RoomHeader button {
width: 40px;
height: 40px;
font-size: 1.5em;
padding: 0;
background: white;
border: none;
font-weight: bolder;
line-height: 40px;
}
.back::before {
content: "☰";
}
.more::before {
content: "⋮";
}
.RoomHeader .topic {
font-size: 14rem;
}
.RoomView_error {
color: red;
}
2020-08-13 21:30:19 +05:30
.MessageComposer {
border-top: 1px solid rgba(245, 245, 245, 0.90);
}
.MessageComposer > input {
padding: 0.8em;
border: none;
}
2020-08-13 21:30:19 +05:30
.MessageComposer > button.send {
margin: 8px;
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;
}
ul.Timeline > li:not(.continuation) {
margin-top: 7px;
}
2020-08-20 19:33:52 +05:30
ul.Timeline > li.continuation .profile {
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;
}
.message-container {
padding: 1px 10px 0px 10px;
2020-08-13 21:28:56 +05:30
margin: 5px 10px 0 10px;
}
2020-08-20 19:33:52 +05:30
.message-container .profile {
display: flex;
align-items: center;
}
.message-container .avatar {
--avatar-size: 25px;
}
2020-08-13 21:28:56 +05:30
.TextMessageView.continuation .message-container {
margin-top: 0;
margin-bottom: 0;
}
.message-container .sender {
margin: 6px 0;
2020-08-20 19:33:52 +05:30
margin-left: 6px;
font-weight: bold;
line-height: 1.7rem;
}
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); }
.message-container time {
2020-08-13 21:28:56 +05:30
padding: 2px 0 0px 10px;
font-size: 0.8em;
line-height: normal;
2020-08-13 21:28:56 +05:30
color: #aaa;
}
.TextMessageView.pending .message-container {
2020-08-12 21:53:24 +05:30
color: #ccc;
}
.TextMessageView.unverified .message-container {
color: #ff4b55;
}
.message-container p {
margin: 3px 0;
line-height: 2.2rem;
}
.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);
text-align: center;
2020-08-12 21:53:24 +05:30
border-radius: 10px;
}