_comments.scss 6.09 KB
.#{$namespace}-wrapper {
    .ld-focus-comments {
        margin: 2em 0;
        p.comment-form-comment {
            margin:0;
            width: 100% !important;
            max-width: 100% !important;
            textarea {
                width: 100%;
            }
        }
        #ld-comments {
            margin-bottom: 50px;
        }
        #commentform {
            .logged-in-as {
                margin:0;
                font-size: 0.875em;
                font-weight:normal;
                float:right;

            }
            textarea#comment {
                font-family: inherit;
                padding: 0.875em;
                background: #e2e7ed;
                border: 5px solid #e2e7ed;
                border-radius:$border-radius;
                font-size:1em;
                &:focus {
                    background: transparent;
                    outline: 0;
                    box-shadow: none;
                }
            }
        }
        .comment-navigation{
            .nav-links {
	            display: flex;
                flex-direction: row;
                .nav-previous {
                    margin: 0;
                    text-align: left;
                    min-width: 50%;
                    width: 100%;
                    font-weight: bold;
                }
                .nav-next {
                    margin: 0;
                    text-align: right;
                    min-width: 50%;
                    width: 100%;
                    font-weight: bold;
                }
            }
        }
        .form-submit {
            width: 100% !important;
            max-width: 100% !important;
            #submit {
                @include button;
                // font-size:1em;
                display: inline-block;
                padding: 0.75em 3em;
                margin-top:0;
                height: auto;
                margin-top:1em;
                min-width: unset;
                max-width: unset;
                width: unset;
                text-decoration: none !important;
            }
        }
        &__heading {
            display:flex;
            justify-content:space-between;
            align-items:center;
            border-bottom:4px solid $border-grey;
            margin-bottom:0.5em;

            .ld-expand-button {
                .ld-text {
                    padding-right:0.5em;
                    font-size:1em;

                }
                .ld-icon {
                    font-size:0.75em;
                }
            }
        }
        &__header {
            flex:1;
            font-size:2em;
            font-weight:normal;
            margin-bottom:10px;
        }
        &__comments {
            overflow:hidden;
            transition:max-height 0.3s ease;
            font-size:1em;
            font-weight:normal;
        }
        .comment-respond {
            position:relative;
            padding-top:0;
            #reply-title {
                font-size:1.5em;
                font-weight:normal;
                margin-bottom:0.75em;
            }
            small {
                margin-left:1em;
                font-size:0.75em;
            }
        }
        #ld-comments-post-button {
            &.ld-open {
                display:none;
            }
        }
        #ld-comments-form {
            &.ld-collapsed {
                display:none;

            }
        }
    }
    .ld-focus-comment {
        margin: 2em 0;
        &:last-child {
            margin-bottom:5em;
        }
        &.depth-1 {
            margin-left:0;
        }
        &.depth-2,
        &.depth-3,
        &.depth-4,
        &.depth-5 {
            margin-left:74px;
            @include for-tablet {
                margin-left:20px;
            }
        }
        .ld-comment-avatar {
            position: relative;
            margin-bottom:1em;
            display: flex;
            align-items: center;
            img {
                box-sizing:border-box;
                max-width: 58px;
                height: auto;
                border-radius: 100%;
                margin-right: 16px;
                border:4px solid transparent;
            }
            .ld-comment-avatar-author {

                .ld-comment-author-name {
                    color:black;
                    font-size:1.125em;
                    margin-bottom:5px;
                    display:block;
                    font-weight:bold;
                }
                a.ld-comment-permalink {
                    color:$text-grey;
                    font-size: 0.875em;
                    text-decoration: none;
                    display:block;

                }
            }
        }
        .ld-comment-body {
            overflow:hidden;
            position: relative;
            margin-left:74px;
        }
        .ld-comment-reply {
            margin: 1em 0;
            a.comment-reply-link {
                border:0;
                display: inline-block;
                padding: 0.5em 1.75em;
                color:black;
                font-weight:bold;
                font-size:0.875em;
                position:relative;
                z-index:9;
                background-color:#e2e7ed;
                border-radius:$border-radius * 3;
            }
        }
        &.bypostauthor,
        &.role-group_leader,
        &.role-administrator {
            > .ld-comment-wrapper {
                border-radius:$border-radius;
                background:#f2fafd;
                padding:1em;
                > .ld-comment-avatar {
                    img {
                        border-color:$blue;
                    }
                }
            }
        }
        &.bypostauthor.ptype-sfwd-assignment {
            > .ld-comment-wrapper {
                border-radius:0;
                background:transparent;
                padding:0;
                > .ld-comment-avatar {
                    img {
                        border-color:transparent;
                    }
                }
            }
        }
        &.ld-no-avatar-image {
            .ld-comment-body {
                margin-left:0;
            }
        }
    }
}