superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring/comments/comments.scss

Summary

Maintainability
Test Coverage
// comments.scss
// Styling for COMMENTS - editor widget
// ----------------------------------------------------------------------------------------
@import '~mixins.scss';
@import '~variables.scss';


.sd-widget.comments {

    .widget-content {
        background: var(--sd-colour-panel-bg--100);
    }

    .notification-list {
        li {
          .date {
              margin-block-start: 3px !important;
          }
          .content {
              padding: 0 0 0 40px;
          }
          &.no-comments {
            background-color: transparent;
            box-shadow: none;
            padding: 16% 0 0;
            text-align: center;
            color: $sd-text-lighter;
            h3 {
              font-weight: 400;
              margin: 12px 0 4px;
            }
            span {
              font-weight: 300;
            }
            .round-box {
              display: flex;
              align-items: center;
              justify-content: center;
              height: 90px;
              width: 90px;
              background-color: var(--sd-item__main-Bg);
              border-radius: 9999px;
              margin: 0 auto;
              box-shadow: 0 0 6px 1px hsla(0, 0%, 0%, 0.12);
            }
            i {
              display: block;
              width: 52px;
              height: 52px;
              opacity: 0.2;
              margin: 0;
              font-size: 5.2rem;
              line-height: 1;
            }
          }
          &.loading-info {
            background-color: transparent;
            box-shadow: none;
            padding: 16% 0 0;
            text-align: center;
            color: #888;
          }
        }
    }
    .add-comment {
        border-block-start: 1px solid var(--sd-colour-line--light);
        padding: 10px;
        box-shadow: 0px -1px 3px 0px rgba(0, 0, 0, 0.12);
        form {
            margin:0;
        }
        .new-comment {
            border: 2px solid var(--sd-colour-interactive) !important;
            border-radius: 3px !important;
            background-color: var(--sd-colour-bg__searchbar);
            color: $sd-text;
            &:focus {
              box-shadow: inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
            }
        }
        .actions {
            height: 30px;
            margin-block-start: 10px;
            .post {
                margin-block-start: 5px;
                .sd-checkbox {
                    vertical-align: middle;
                    margin-block-start: -2px;
                    margin-inline-end: 0;
                }
            }
        }
    }
}