matrix-public-archive/public/css/room-directory.css

263 lines
4.7 KiB
CSS
Raw Normal View History

.RoomDirectoryView {
overflow: hidden;
}
.RoomDirectoryView_header {
padding-left: 10px;
padding-bottom: 80px;
padding-right: 10px;
background-color: #fafafa;
}
.RoomDirectoryView_headerForm {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 80px;
}
.RoomDirectoryView_matrixLogo {
width: 100%;
max-width: 148px;
color: #000000;
}
.RoomDirectoryView_subHeader {
margin-top: 18px;
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;
color: #737d8c;
margin-left: 9px;
margin-right: 9px;
}
.RoomDirectoryView_searchInput {
display: block;
width: 100%;
height: 32px;
padding-left: 32px;
padding-right: 8px;
background: rgba(141, 151, 165, 0.15);
border-radius: 8px;
border: none;
font-size: 14px;
}
.RoomDirectoryView_homeserverSelectSection {
display: flex;
margin-top: 16px;
}
.RoomDirectoryView_homeserverSelector {
margin-left: 1ch;
}
.RoomDirectoryView_mainContent {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 160px;
}
.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 {
border-left: 1px solid #fff;
}
.RoomDirectoryView_paginationButton {
display: inline-block;
padding: 8px 32px;
background-color: #17191c;
border-radius: 9999px;
color: #ffffff;
line-height: 24px;
text-decoration: none;
}
@media (min-width: 750px) {
.RoomDirectoryView_paginationButton {
padding: 4px 16px;
}
}
.RoomDirectoryView_paginationButton:not([href]) {
background-color: rgba(23, 25, 28, 0.7);
color: #bbbbbb;
}
.RoomDirectoryView_roomList {
display: grid;
gap: 20px;
width: 100%;
max-width: 1180px;
padding-left: 20px;
padding-right: 20px;
margin-top: 20px;
margin-bottom: 0;
}
@media (min-width: 750px) {
.RoomDirectoryView_roomList {
grid-template-columns: repeat(2, 1fr);
padding-left: 40px;
padding-right: 40px;
margin-top: 40px;
}
}
@media (min-width: 1100px) {
.RoomDirectoryView_roomList {
grid-template-columns: repeat(3, 1fr);
}
}
.RoomCardView {
overflow: hidden;
display: flex;
flex-direction: column;
margin: 0;
padding: 20px;
list-style: none;
background-color: #f4f4f4;
border-radius: 8px;
}
.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;
}
.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;
padding: 8px 32px;
background-color: #17191c;
/* Always make a pill shape */
border-radius: 9999px;
color: #ffffff;
line-height: 24px;
text-decoration: none;
}
@media (min-width: 750px) {
.RoomCardView_viewButton {
padding: 4px 16px;
}
}
.RoomCardView_viewButtonWrapperLink:hover > .RoomCardView_viewButton,
.RoomCardView_viewButtonWrapperLink:focus > .RoomCardView_viewButton {
background-color: #0098d4;
}