@keyframes target-fade {
    from { background-color: #fff7d6; }
    to { background-color: transparent; }
}

.Comment {
    position: relative;
}

.Comment--removed::before {
    content:'';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.Comment--removed::after {
    content: attr(data-removed-text);
    position: relative;
    z-index: +1;
    display: block;
    margin-left: 4.6em;
    padding-left: 1.2em;
    font-size: .9em;
    background: url('removedIcon.svg') no-repeat 0 40%;
    background-size: .9em;
}

.Comment__avatar {
    float: left;
    width: 3.2rem !important;
    height: 3.2rem !important;
    border-radius: 50%;
    background-color: rgba(70, 70, 70, 0.1);
}

.Comment__contentContainer {
    margin-left: 4.2em;
}

.Comment:target .Comment__contentContainer {
    animation: target-fade 5s;
}

.Comment__contentHeader {
    margin-right: 1.2em;
}

.Comment__content a,
.Comment__content p {
    word-break: break-word;
}

.Comment__content p:last-child,
.Comment__postedOn {
    margin: 0;
}

.Comment__author {
    display: inline-block;
    margin-right: .2em;
}

.Comment__detailUrl,
.Comment__detailUrl:hover {
    display: block;
    margin-bottom: 1em;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.Comment__detailUrl:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.Comment__postedOn {
    margin-left: .4em;
    margin-right: 1.2em;
    white-space: nowrap;
}

.Comment__contextMenuContainer {
    position: absolute;
    top: -8px;
    right: -16px;
    z-index: 2;
}

.Comment__LikeButton,
.Comment__quoteButton {
    display: inline-block;
    margin-right: 1.2em;
    font-size: 0.9em;
    vertical-align: baseline;
}

.Comment__media {
    padding-left: 4.2em;
}

/**
 * It's doubtful if this code belongs here. But because there are so many sub-components, it's a tricky issue.
 */
.Comment .ContextMenu {
    opacity: 0;
}

@media (hover: none) {
    .Comment .ContextMenu {
        opacity: 0.4;
    }
}

.Comment:hover .ContextMenu,
.Comment .ContextMenu--isOpen {
    opacity: 1;
}
