Skip to content
Snippets Groups Projects
mentions.css 1.46 KiB
Newer Older
chris's avatar
chris committed
.rc-mentions {
    display: inline-block;
    position: relative;
    white-space: pre-wrap;
}

.rc-mentions>textarea,
.rc-mentions-measure {
    font-size: inherit;
    font-size-adjust: inherit;
    font-style: inherit;
    font-variant: inherit;
    font-stretch: inherit;
    font-weight: inherit;
    font-family: inherit;
    padding: 0;
    margin: 0;
    line-height: inherit;
    vertical-align: top;
    overflow: inherit;
    word-break: inherit;
    white-space: inherit;
    word-wrap: break-word;
    overflow-x: initial;
    overflow-y: auto;
    text-align: inherit;
    letter-spacing: inherit;
    tab-size: inherit;
    direction: inherit;
}

.rc-mentions>textarea {
    border: none;
    width: 100%;
}

.rc-mentions-measure {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    color: transparent;
    z-index: -1;
}

.rc-mentions-dropdown {
    position: absolute;
}

.rc-mentions-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rc-mentions-dropdown-menu-item {
    cursor: pointer;
}

.rc-mentions {
    font-size: 20px;
    border: 1px solid #999;
    border-radius: 3px;
    overflow: hidden;
}

.rc-mentions-dropdown {
    border: 1px solid #999;
    border-radius: 3px;
    background: #FFF;
}

.rc-mentions-dropdown-menu-item {
    padding: 4px 8px;
}

.rc-mentions-dropdown-menu-item-active {
    background: #e6f7ff;
}

.rc-mentions-dropdown-menu-item-disabled {
    opacity: 0.5;
}