@prefix: graphjs;

@{prefix}-comments.@{prefix}-root {
    display: block;
    &.@{prefix}-inline {
        .@{prefix}-header {
            border-color: transparent;
        }
    }
    .@{prefix}-content {
        .@{prefix}-comment {
            display: inline-block;
            width: 100%;
            textarea {
                width: 100%;
                height: 7.5em;
                &.@{prefix}-closed {
                    height: 0;
                    border: none;
                }
            }
            button {
                float: right;
                width: auto;
                margin-top: .5em;
                margin-left: .5em;
                font-size: .9em;
            }
            & + .@{prefix}-synopsis {
                margin-top: 2.5em;
            }
        }
        .@{prefix}-synopsis {
            display: inline-block;
            width: 100%;
            margin-bottom: 1.25em;
            // ThemeOption: color: @text-color-normal;
            button {
                float: right;
                width: auto;
                font-size: .75em;
            }
        }
        .@{prefix}-item {
            margin-bottom: 1.25em;
            &:last-child {
                margin-bottom: 0;
            }
            .@{prefix}-credit {
                .credit-metrics(3em);
                margin-bottom: .25em;
                img {
                    cursor: pointer;
                }
                span {
                    // ThemeOption: color: @text-color-normal;
                    b {
                        cursor: pointer;
                    }
                }
            }
            p {
                margin-left: 3.6em;
                .regular-font;
                font-size: .95em;
                line-height: 150%;
                white-space: pre-wrap;
                &.@{prefix}-editable {
                    padding: .75em 1em;
                    border-width: 1px;
                    border-style: dashed;
                    // ThemeOption: border-color: fade(@default-color, 15%);
                    border-color: transparent; // ThemeFix
                    // ThemeOption: background-color: @background-color-contrast;
                    outline: none;
                }
            }
        }
    }
}

// Responsive

/* Window Width < 480 */
@media only screen and (max-width: 479px) {
    @{prefix}-comments.@{prefix}-root {
        .@{prefix}-content {
            .@{prefix}-item {
                .@{prefix}-credit {
                    margin-bottom: .75em;
                }
                p {
                    margin-left: 0 !important;
                }
            }
        }
    }
}

/* 480 â‰¤ Window Width < 768 */
@media only screen and (min-width: 480px) and (max-width: 767px) {
    @{prefix}-comments.@{prefix}-root {
        .@{prefix}-content {
            .@{prefix}-item {
                .@{prefix}-credit {
                    margin-bottom: .5em;
                }
                p {
                    margin-left: 0 !important;
                }
            }
        }
    }
}