2022-09-08 00:30:04 -06:00
|
|
|
.RoomDirectoryView {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_header {
|
2022-10-19 00:50:16 -06:00
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2022-09-08 00:30:04 -06:00
|
|
|
padding-left: 10px;
|
|
|
|
padding-bottom: 80px;
|
|
|
|
padding-right: 10px;
|
|
|
|
|
2022-10-18 00:30:26 -06:00
|
|
|
background: url('../img/matrix-lines-hero-sprite.svg'),
|
|
|
|
linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
|
|
|
|
background-size: cover, 400% 400%;
|
|
|
|
background-position: 100% 50%, 0% 50%;
|
|
|
|
animation: Gradient 10s ease infinite;
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
.RoomDirectoryView_header {
|
|
|
|
animation: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes Gradient {
|
|
|
|
0% {
|
|
|
|
background-position: 100% 50%, 0% 50%;
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
background-position: 100% 50%, 100% 50%;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
background-position: 100% 50%, 0% 50%;
|
|
|
|
}
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|
|
|
|
|
2022-09-15 19:41:55 -06:00
|
|
|
.RoomDirectoryView_headerForm {
|
2022-10-19 00:50:16 -06:00
|
|
|
display: inline-flex;
|
2022-09-15 19:41:55 -06:00
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
padding-top: 80px;
|
2022-10-18 00:30:26 -06:00
|
|
|
|
2022-10-19 00:50:16 -06:00
|
|
|
filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
|
|
|
|
|
|
|
|
/* We're not changing transform on this element but this hints the browser to create a
|
|
|
|
* new layer which will be much easier to composite on top of our animating background.
|
|
|
|
* Related: https://web.dev/animations-guide/#force
|
|
|
|
*/
|
|
|
|
will-change: transform;
|
2022-09-15 19:41:55 -06:00
|
|
|
}
|
|
|
|
|
2022-09-08 00:30:04 -06:00
|
|
|
.RoomDirectoryView_matrixLogo {
|
|
|
|
width: 100%;
|
2022-10-18 00:30:26 -06:00
|
|
|
max-width: 170px;
|
|
|
|
padding: 9px;
|
|
|
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
2022-09-08 00:30:04 -06:00
|
|
|
|
2022-10-18 00:30:26 -06:00
|
|
|
.RoomDirectoryView_matrixLogo:focus {
|
|
|
|
background-color: rgba(255, 255, 255, 0.03);
|
|
|
|
border: 2px solid rgba(213, 231, 246, 0.5);
|
|
|
|
outline: none;
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_subHeader {
|
2022-10-18 00:30:26 -06:00
|
|
|
margin-top: 9px;
|
2022-09-08 00:30:04 -06:00
|
|
|
margin-bottom: 26px;
|
|
|
|
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_search {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 370px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_searchIcon {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
width: 14px;
|
2022-10-18 00:30:26 -06:00
|
|
|
color: rgba(255, 255, 255, 0.75);
|
2022-09-08 00:30:04 -06:00
|
|
|
margin-left: 9px;
|
|
|
|
margin-right: 9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_searchInput {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
height: 32px;
|
|
|
|
padding-left: 32px;
|
2022-09-15 19:41:55 -06:00
|
|
|
padding-right: 8px;
|
2022-09-08 00:30:04 -06:00
|
|
|
|
2022-10-18 00:30:26 -06:00
|
|
|
background: rgba(255, 255, 255, 0.25);
|
2022-09-08 00:30:04 -06:00
|
|
|
border-radius: 8px;
|
2022-10-18 00:30:26 -06:00
|
|
|
border: 2px solid transparent;
|
|
|
|
|
|
|
|
transition: border-color 0.2s ease;
|
2022-09-08 00:30:04 -06:00
|
|
|
|
|
|
|
font-size: 14px;
|
2022-10-18 00:30:26 -06:00
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_searchInput:hover {
|
|
|
|
border: 2px solid rgba(213, 231, 246, 0.3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_searchInput:focus {
|
|
|
|
border: 2px solid rgba(213, 231, 246, 0.5);
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_searchInput::placeholder {
|
|
|
|
color: #eeeeee;
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_homeserverSelectSection {
|
|
|
|
display: flex;
|
2022-10-20 01:06:43 -06:00
|
|
|
align-items: center;
|
2022-09-08 00:30:04 -06:00
|
|
|
margin-top: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_homeserverSelector {
|
|
|
|
margin-left: 1ch;
|
2022-10-20 01:06:43 -06:00
|
|
|
padding: 2px 6px;
|
|
|
|
padding-right: 2px;
|
|
|
|
|
|
|
|
background: rgba(255, 255, 255, 0.2);
|
|
|
|
border-radius: 4px;
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
|
|
|
transition: border-color 0.2s ease;
|
|
|
|
|
|
|
|
color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_homeserverSelector:hover {
|
|
|
|
border: 2px solid rgba(213, 231, 246, 0.3);
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_homeserverSelector:focus {
|
|
|
|
border: 2px solid rgba(213, 231, 246, 0.5);
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_homeserverSelector > * {
|
|
|
|
color: initial;
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|
|
|
|
|
2022-10-27 23:32:24 -06:00
|
|
|
.RoomDirectoryView_notificationToast {
|
|
|
|
position: fixed;
|
|
|
|
top: 20px;
|
|
|
|
left: 20px;
|
|
|
|
max-width: 450px;
|
|
|
|
margin-right: 20px;
|
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
background: hsl(207deg 36% 18% / 90%);
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_notificationToastTitle {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_notificationToastDescription {
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2022-09-08 00:30:04 -06:00
|
|
|
.RoomDirectoryView_mainContent {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2022-09-15 19:41:55 -06:00
|
|
|
margin-bottom: 160px;
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_paginationButtonCombo {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_paginationButtonCombo > .RoomDirectoryView_paginationButton:not(:first-child) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
.RoomDirectoryView_paginationButtonCombo > .RoomDirectoryView_paginationButton:not(:last-child) {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_paginationButtonCombo
|
|
|
|
> .RoomDirectoryView_paginationButton
|
|
|
|
+ .RoomDirectoryView_paginationButton {
|
2022-10-18 00:30:26 -06:00
|
|
|
border-left: 0;
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_paginationButton {
|
|
|
|
display: inline-block;
|
2022-10-18 00:30:26 -06:00
|
|
|
padding: 16px 24px;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 1px solid #dee2e6;
|
|
|
|
border-radius: 4px;
|
|
|
|
color: #2774c2;
|
2022-09-08 00:30:04 -06:00
|
|
|
line-height: 24px;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2022-10-18 00:30:26 -06:00
|
|
|
.RoomDirectoryView_paginationButton:hover,
|
|
|
|
.RoomDirectoryView_paginationButton:focus {
|
|
|
|
background-color: #2774c2;
|
|
|
|
color: #ffffff;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2022-09-08 21:32:06 -06:00
|
|
|
@media (min-width: 750px) {
|
|
|
|
.RoomDirectoryView_paginationButton {
|
2022-10-18 00:30:26 -06:00
|
|
|
padding: 12px 18px;
|
2022-09-08 21:32:06 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-08 00:30:04 -06:00
|
|
|
.RoomDirectoryView_paginationButton:not([href]) {
|
2022-10-18 00:30:26 -06:00
|
|
|
background-color: transparent;
|
|
|
|
border: 1px solid #dee2e6;
|
|
|
|
color: #abb5be;
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|
|
|
|
|
2023-05-03 03:45:33 -06:00
|
|
|
.RoomDirectoryView_mainContentSection {
|
2022-09-08 00:30:04 -06:00
|
|
|
width: 100%;
|
|
|
|
max-width: 1180px;
|
2022-09-08 21:32:06 -06:00
|
|
|
padding-left: 20px;
|
|
|
|
padding-right: 20px;
|
2023-05-03 03:45:33 -06:00
|
|
|
margin-top: 15px;
|
2022-09-08 00:30:04 -06:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2023-05-03 03:45:33 -06:00
|
|
|
.RoomDirectoryView_roomList {
|
|
|
|
display: grid;
|
|
|
|
gap: 20px;
|
|
|
|
}
|
|
|
|
|
2022-10-20 21:48:00 -06:00
|
|
|
.RoomDirectoryView_roomListError {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
line-height: 1.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_codeBlock {
|
|
|
|
overflow: auto;
|
|
|
|
padding: 0.5em 0.8em;
|
|
|
|
|
|
|
|
background-color: #f6f6f6;
|
|
|
|
border: 1px solid rgb(233, 233, 233);
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
2022-09-08 00:30:04 -06:00
|
|
|
@media (min-width: 750px) {
|
2023-05-03 03:45:33 -06:00
|
|
|
.RoomDirectoryView_mainContentSection {
|
|
|
|
margin-top: 30px;
|
2022-09-08 21:32:06 -06:00
|
|
|
padding-left: 40px;
|
|
|
|
padding-right: 40px;
|
2022-10-20 21:48:00 -06:00
|
|
|
}
|
|
|
|
|
2023-05-03 03:45:33 -06:00
|
|
|
.RoomDirectoryView_roomList {
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 1100px) {
|
|
|
|
.RoomDirectoryView_roomList {
|
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-03 03:45:33 -06:00
|
|
|
.RoomDirectoryView_safeSearchToggleSection {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_safeSearchToggle {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_safeSearchToggleLabel {
|
|
|
|
padding-left: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_safeSearchToggleCheckbox {
|
|
|
|
appearance: none;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
width: 20px;
|
|
|
|
height: 10px;
|
|
|
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
border: 2px solid rgba(200, 200, 200, 1);
|
|
|
|
box-shadow: inset -10px 0px 0px 0px rgba(200, 200, 200, 1);
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomDirectoryView_safeSearchToggleCheckbox:checked {
|
|
|
|
border: 2px solid #2774c2;
|
|
|
|
box-shadow: inset 10px 0px 0px 0px #2774c2;
|
|
|
|
}
|
|
|
|
|
2022-09-08 00:30:04 -06:00
|
|
|
.RoomCardView {
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin: 0;
|
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
list-style: none;
|
2022-10-18 00:30:26 -06:00
|
|
|
border: 1px solid rgba(54, 139, 214, 30%);
|
2022-09-08 00:30:04 -06:00
|
|
|
border-radius: 8px;
|
|
|
|
}
|
|
|
|
|
2023-05-03 03:45:33 -06:00
|
|
|
.RoomCardView.blockedBySafeSearch {
|
|
|
|
background-color: #d0d9e1;
|
|
|
|
}
|
|
|
|
|
2022-09-08 00:30:04 -06:00
|
|
|
.RoomCardView_header {
|
|
|
|
display: flex;
|
|
|
|
align-items: top;
|
|
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomCardView_headerTitle {
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
max-height: 48px;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-left: 8px;
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 24px;
|
|
|
|
font-weight: normal;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomCardView_alias {
|
|
|
|
overflow: hidden;
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 2px;
|
|
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
color: #4396cf;
|
|
|
|
line-height: 1.8em;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomCardView_topic {
|
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
height: 2.4em;
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
|
|
line-height: 1.2em;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2023-05-03 03:45:33 -06:00
|
|
|
.RoomCardView_blockedBySafeSearchTopic {
|
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
|
|
line-height: 1.2em;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
2022-09-08 00:30:04 -06:00
|
|
|
.RoomCardView_footer {
|
|
|
|
display: flex;
|
|
|
|
/**
|
|
|
|
* In order to keep the footer items at the bottom, fill the remaining card
|
|
|
|
* space and align the footerInner to the bottom
|
|
|
|
*/
|
|
|
|
flex-grow: 1;
|
|
|
|
align-items: flex-end;
|
|
|
|
width: 100%;
|
|
|
|
margin-top: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomCardView_footerInner {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomCardView_viewButtonWrapperLink {
|
|
|
|
/**
|
|
|
|
* Add some extra hitbox padding to the link so you don't have to be so
|
|
|
|
* accurate
|
|
|
|
*/
|
|
|
|
padding: 16px;
|
|
|
|
margin: -16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomCardView_viewButtonWrapperLink:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.RoomCardView_viewButton {
|
|
|
|
display: inline-block;
|
2022-10-18 00:30:26 -06:00
|
|
|
padding: 4px 16px;
|
2022-09-08 00:30:04 -06:00
|
|
|
|
2022-10-18 00:30:26 -06:00
|
|
|
background-color: transparent;
|
2022-09-08 00:30:04 -06:00
|
|
|
/* Always make a pill shape */
|
|
|
|
border-radius: 9999px;
|
2022-10-18 00:30:26 -06:00
|
|
|
border: 1px solid #2774c2;
|
2022-09-08 00:30:04 -06:00
|
|
|
|
2022-10-18 00:30:26 -06:00
|
|
|
color: #2774c2;
|
2022-09-08 00:30:04 -06:00
|
|
|
line-height: 24px;
|
|
|
|
text-decoration: none;
|
2022-10-20 01:06:43 -06:00
|
|
|
|
|
|
|
cursor: pointer;
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|
|
|
|
|
2023-05-03 03:45:33 -06:00
|
|
|
.RoomCardView_viewButton[disabled] {
|
|
|
|
border-color: #2774c299;
|
|
|
|
|
|
|
|
color: #2774c299;
|
|
|
|
|
|
|
|
cursor: auto;
|
|
|
|
}
|
|
|
|
|
2022-10-18 00:30:26 -06:00
|
|
|
@media (max-width: 750px) {
|
2022-09-08 21:32:06 -06:00
|
|
|
.RoomCardView_viewButton {
|
2022-10-18 00:30:26 -06:00
|
|
|
padding: 8px 32px;
|
2022-09-08 21:32:06 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-03 03:45:33 -06:00
|
|
|
.RoomCardView_viewButtonWrapperLink:hover > .RoomCardView_viewButton:not([disabled]),
|
|
|
|
.RoomCardView_viewButtonWrapperLink:focus > .RoomCardView_viewButton:not([disabled]) {
|
2022-10-18 00:30:26 -06:00
|
|
|
background-color: #2774c2;
|
|
|
|
color: #ffffff;
|
2022-09-08 00:30:04 -06:00
|
|
|
}
|