137 lines
3.9 KiB
Plaintext
Raw Normal View History

2019-09-27 12:10:50 +02:00
@import (reference) "./colortheme-all.less";
@import (reference) "./avatar.less";
@import (reference) "./tools.less";
.usergrid_main() {
--LessLoader_require: LessLoader_currentFile();
};
& {
2019-12-09 11:37:20 +00:00
2019-09-27 12:10:50 +02:00
.cp-usergrid-container {
2019-12-09 11:34:00 +00:00
margin-bottom: 12px !important; // even when last child of .msg
2019-09-27 12:10:50 +02:00
.cp-usergrid-grid {
display: flex;
flex-wrap: wrap;
2019-12-02 11:34:34 +00:00
margin: -3px;
2019-09-27 12:10:50 +02:00
margin-bottom: 6px;
2019-12-02 11:34:34 +00:00
max-height: 130px;
2019-12-03 09:38:39 +00:00
overflow-y: auto;
2019-12-02 11:34:34 +00:00
@media screen and (max-height: 515px) {
max-height: unset; // remove double scrollbar
2019-11-25 17:54:22 +01:00
}
}
2019-09-27 12:10:50 +02:00
&.cp-usergrid-empty {
.cp-usergrid-grid, .cp-usergrid-filter {
display: none;
}
}
.cp-usergrid-filter {
display: flex;
input {
flex: 1;
min-width: 0;
2019-12-06 16:52:53 +00:00
margin: 0;
2019-09-27 12:10:50 +02:00
margin-bottom: 0 !important;
2019-11-25 15:42:26 +00:00
height: 38px;
2019-09-27 12:10:50 +02:00
&::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: @cryptpad_color_grey;
2019-09-27 12:10:50 +02:00
opacity: 1; /* Firefox */
}
}
2019-12-02 11:34:34 +00:00
margin-bottom: 10px;
2019-09-27 12:10:50 +02:00
&:empty {
margin: 0;
display: none;
}
2019-11-25 15:42:26 +00:00
button:last-child {
margin-right: 0px !important;
}
2019-09-27 12:10:50 +02:00
}
.cp-usergrid-user {
width: 70px;
height: 70px;
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
padding: 5px;
2019-12-06 16:52:53 +00:00
margin: 3px;
2019-09-27 12:10:50 +02:00
cursor: default;
transition: order 0.5s, background-color 0.5s;
margin-top: 1px;
.tools_unselectable();
&.cp-selected {
background-color: @colortheme_alertify-primary;
color: @colortheme_alertify-primary-text;
order: -1 !important;
2019-12-02 11:34:34 +00:00
.cp-usergrid-avatar {
media-tag, .cp-avatar-default {
opacity: 0.7;
}
}
2019-09-27 12:10:50 +02:00
}
.cp-usergrid-user-avatar {
min-height: 40px;
}
2019-12-02 11:34:34 +00:00
2019-09-27 12:10:50 +02:00
.cp-usergrid-user-name {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 100%;
text-align: center;
2019-12-03 10:25:56 +00:00
line-height: 20px;
2019-12-02 11:34:34 +00:00
flex: 1;
2019-09-27 12:10:50 +02:00
}
&:not(.large) {
2019-12-06 16:52:53 +00:00
.avatar_main(40px);
2019-09-27 12:10:50 +02:00
}
&.large {
.avatar_main(25px);
2019-12-02 11:34:34 +00:00
width: 145px;
2019-09-27 12:10:50 +02:00
height: 35px;
flex-flow: row;
2019-12-02 11:34:34 +00:00
margin: 3px;
flex-basis: calc(33.3333333% - 6px);
flex-shrink: 1;
min-width: 0;
.cp-usergrid-user-name {
margin-left: 5px;
text-align: left;
2019-12-09 11:34:00 +00:00
line-height: 150%;
2019-12-02 11:34:34 +00:00
color: @cryptpad_text_col;
}
}
&.cp-selected {
.cp-usergrid-user-name {
color: @colortheme_alertify-primary-text;
2019-09-27 12:10:50 +02:00
}
}
2020-02-18 11:12:50 +01:00
.fa-times {
padding-left: 5px;
cursor: pointer;
height: 100%;
line-height: 25px;
color: @cryptpad_text_col;
&:hover {
color: lighten(@cryptpad_text_col, 10%);
}
}
}
&.list {
.cp-usergrid-user {
width: auto;
max-width: calc(100% - 6px);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: inline-flex;
2020-02-18 16:10:39 +01:00
flex: unset;
2020-02-18 11:12:50 +01:00
}
2019-09-27 12:10:50 +02:00
}
}
}