UNPKG

react-cimpress-comment

Version:

Visualizes comment(s) for a particular platform resource

326 lines (279 loc) 6.09 kB
.comment { padding-top: 5px; padding-bottom: 5px; display: grid; grid-template-columns: 50px auto; grid-gap: 5px } .comment .alert { margin-bottom: 0px; } .comment-editable { cursor: pointer; } .comment-even { background-color: white; border-bottom: 1px solid #c4cdd6; } .comment-odd { background-color: white; border-bottom: 1px solid #c4cdd6; } .comment:last-child { border-bottom-width: 0px; } .comments { border: 0px solid #c4cdd6; border-radius: 0px; display: grid; } .no-comments { padding: 3px; background-color: white; } .comment-author, .comment-creator { display: inline-block; margin-left: 3px; margin-bottom: 2px; font-size: 10px; max-width: 500px; color: #4e4e4e } .comment-creator-inner { margin-bottom: 0px; margin-top: 0px; } .comment-editing { width: 100% } .inline-spinner { display: inline-block; vertical-align: middle; padding: 2px; } .comment-count-badge { position: absolute; right: -7px; top: 7px; background: red; text-align: center; align-content: center; border-radius: 30px 30px 30px 30px; color: white; padding: 2px 4px 1px 3px; font-size: 7px; line-height: normal; transition: opacity 1s ease-in-out; } .comment-count-badge-loading { background: transparent !important; color: #0088a9 !important; } .comment-indicator { font-size: 2em; color: #0088a9; cursor: pointer; position: relative; display: inline-block; } .comment-drawer-button { font-size: 2em; color: #0088a9; cursor: pointer; position: relative; padding-top: 5px; display: inline-block; } .comment-drawer-button:hover { color: #0088a9; } .mentions__highlighter { pointer-events: none; user-select: none; z-index: -10 !important; } .mentions__highlighter[style], .mentions__input[style] { padding: 5px 5px 5px 5px !important; font-size: 14px !important; color: #3a414c; box-sizing: border-box !important; min-height: 30px !important; line-height: 18px !important; z-index: 2; float: left; width: 100% !important; margin-bottom: 0; white-space: pre-wrap !important; word-wrap: break-word !important; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; height: inherit !important; } .mentions { display: flex; flex-flow: row; flex: 1; max-width: 100%; overflow-y: hidden; padding-bottom: 6px; } .mentions-min-height > .mentions__control > .mentions__input, .mentions-min-height > .mentions__control > .mentions__highlighter { min-height: 50px !important; } .mentions__control { position: relative; z-index: 0; border-collapse: separate; width: 100%; max-width: 100%; } .mentions__control:focus { border-color: #0088A9; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 0px #74d4c2; outline: none; } .disabled textarea:focus { box-shadow: none; } .disabled textarea { margin: 1px; pointer-events: all; border: none; outline: none; box-shadow: none; user-select: text !important; color: transparent; display: inline-block; font-size: 2em; text-shadow: 0 0 0 black; width: 2em; } textarea { resize: vertical; user-select: text !important; } .mentions__input { border: 1px solid #c4cdd6; border-radius: 4px; } .mentions__input:focus { border-color: #0088A9; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 0px #74d4c2; outline: none; } .mentions__suggestions { margin-top: 22px !important; font-size: 14px; line-height: 1.286; color: #3a414c; background-color: #fff; background-image: none; border: 1px solid #c4cdd6; border-radius: 2px; position: relative; z-index: 6 !important; float: left; width: 100%; margin-bottom: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; } .mentions__suggestions__item__display { padding: 5px; } .mentions__suggestions__item--focused { background-color: #c4cdd6; } .mentions-edit { margin-left: auto; position: relative; justify-content: flex-end; align-content: flex-end; font-size: 18px; top: 8px; right: 0px; background-color: white; padding-left: 5px; cursor: pointer; flex-grow: 0; flex-shrink: 0; } .mentions-ok { justify-content: flex-end; align-content: flex-end; margin-left: auto; position: relative; font-size: 18px; top: 5px; color: green; background-color: white; padding-left: 2px; cursor: pointer; flex-grow: 0; flex-shrink: 0; } .mentions-cancel { justify-content: flex-end; align-content: flex-end; margin-left: auto; position: relative; font-size: 20px; top: 5px; color: red; background-color: white; padding-left: 2px; cursor: pointer; flex-grow: 0; flex-shrink: 0; } .mentions-delete { justify-content: flex-end; align-content: flex-end; margin-left: auto; position: relative; font-size: 20px; top: 5px; color: red; background-color: white; padding-left: 2px; cursor: pointer; flex-grow: 0; flex-shrink: 0; } .mentions__highlighter > strong, .mentions__highlighter__caret > strong { background-color: seashell; } .input-group-btn { vertical-align: top; } div:focus { outline-style: none; } .rcc-tooltip-wide .tooltip-inner { max-width: 35em; } .rcw-main { display: block; padding-top: 5px !important; padding-bottom: 5px !important; padding-left: 4px; } .comments-add .form-group { margin-bottom: 2px !important; } .comments-add { background-color: white; margin: 0; padding: 0; } .post-button-inline { display: flex; } .post-button-inline > div { flex-grow: 1; /*min-height: 56px;*/ } .post-button-inline > button { margin-left: 10px; height: 50px; }