Files
mattermost/webapp/sass/components/_popover.scss
Asaad Mahmood bfae88e60c Ui improvements (#5755)
* PLT-5816 - Flagged posts tooltip fix

* PLT-5766 - Link previews appearing outside the box

* PLT-5795 - Fixing alignment user list in channel

* PLT-5818 - Reset password error not aligned

* PLT-5837 - Adjusting image preview max height

* PLT-5778 - Updating word break for paragraphs

* PLT-5848 - Updating label for file error

* PLT-5846 - Markdown tables extra border on mobile

* PLT-5662 - Pinned post UI improvement

* Fixing eslint error

* Updating tooltip eslint issue

* PLT-5832 - Removing error styling on labels
2017-03-17 08:19:54 -04:00

245 lines
4.4 KiB
SCSS

@charset 'UTF-8';
@import 'compass/css3/transition';
.popover {
@include border-radius($border-rad);
color: lighten($black, 25%);
&.bottom,
&.right,
&.top,
&.left {
> .arrow {
&:after {
border-color: transparent;
}
}
}
.popover-title {
@include border-radius(0);
background: alpha-color($black, .05);
max-width: 100%;
overflow: hidden;
padding: 8px 10px;
text-overflow: ellipsis;
}
.popover-content {
word-break: break-word;
p {
&:last-child {
margin-bottom: 5px;
}
}
}
.popover__row {
border-top: 1px solid transparent;
margin: 9px -15px 0;
padding: 9px 15px 0;
> a {
> i {
margin-right: 5px;
}
> span {
text-transform: capitalize;
}
}
}
}
.channel-header__info {
.popover-content {
max-height: 250px;
overflow: auto;
}
}
.user-popover {
cursor: pointer;
display: inline-block;
}
.code-popover {
.popover-content {
padding: 5px;
}
}
.user-popover__image {
@include border-radius(128px);
margin: 0 0 10px;
}
.user-popover__email {
display: block;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
}
.search-help-popover {
@include single-transition(opacity, .3s, ease-in);
font-size: em(13px);
max-width: 350px;
top: 36px;
visibility: hidden;
width: 100%;
&.autocomplete {
display: block;
.popover-content {
padding: 10px;
position: relative;
-webkit-overflow-scrolling: touch;
}
}
.search-autocomplete__divider {
line-height: 21px;
margin: 10px 0 5px;
position: relative;
&:first-child {
margin-top: 5px;
}
> span {
background: $white;
display: inline-block;
padding-right: 10px;
position: relative;
z-index: 5;
}
&:before {
@include opacity(.2);
background: $dark-gray;
content: '';
height: 1px;
left: 0;
position: absolute;
top: 10px;
width: 100%;
}
}
.search-autocomplete__item {
@include border-radius(2px);
cursor: pointer;
margin: 3px 0 0 5px;
overflow: hidden;
padding: 6px 8px;
text-overflow: ellipsis;
white-space: nowrap;
&:hover {
background: alpha-color($black, .1);
}
&.selected {
background: alpha-color($black, .2);
}
.mention--align {
display: inline-block;
}
.fa {
@include opacity(.5);
margin-right: 5px;
}
.profile-img {
height: 16px;
margin-right: 6px;
margin-top: -1px;
width: 16px;
}
}
&.bottom > .arrow {
border-width: 9px;
left: 30px;
top: -18px;
}
.popover-content {
max-height: 500px;
overflow: auto;
padding: 3px 13px;
}
h4 {
font-size: 1em;
}
ul {
padding-left: 17px;
span {
@include opacity(.8);
}
strong,
b {
@include opacity(1);
}
}
.tooltip-inner {
max-width: 100%;
}
&.visible {
@include opacity(1);
visibility: visible;
}
}
.member-list__popover {
max-width: initial;
.more-modal__list {
.more-modal__row {
min-height: inherit;
}
.more-modal__details {
line-height: 32px;
}
.more-modal__actions {
line-height: 31px;
margin: 0;
}
}
.popover-content {
max-height: 350px;
padding: 0;
position: relative;
width: 260px;
.text-nowrap {
font-size: 13px;
line-height: 26px;
overflow: hidden;
padding: 6px 10px;
width: 100%;
}
.more__name {
margin-left: 6px;
max-width: 140px;
overflow: hidden;
text-overflow: ellipsis;
}
}
}