diff options
author | Abijeet <abijeetpatro@gmail.com> | 2018-01-19 02:32:57 +0530 |
---|---|---|
committer | Abijeet <abijeetpatro@gmail.com> | 2018-03-27 00:49:34 +0530 |
commit | 001cd986ed5ed8897043d9ce6d41d8a7b60af2f8 (patch) | |
tree | 2b2acd9af3014eb5487a8cfcfcf7ab39b926c20a /apps/comments/css/comments.scss | |
parent | 61b38a16fa69880603d3aa2ad21fd2b541c67772 (diff) | |
download | nextcloud-server-001cd986ed5ed8897043d9ce6d41d8a7b60af2f8.tar.gz nextcloud-server-001cd986ed5ed8897043d9ce6d41d8a7b60af2f8.zip |
Converts the css file to scss file, and adds border-top to comments.
Signed-off-by: Abijeet <abijeetpatro@gmail.com>
Diffstat (limited to 'apps/comments/css/comments.scss')
-rw-r--r-- | apps/comments/css/comments.scss | 217 |
1 files changed, 217 insertions, 0 deletions
diff --git a/apps/comments/css/comments.scss b/apps/comments/css/comments.scss new file mode 100644 index 00000000000..88b890323aa --- /dev/null +++ b/apps/comments/css/comments.scss @@ -0,0 +1,217 @@ +/* + * Copyright (c) 2016 + * + * This file is licensed under the Affero General Public License version 3 + * or later. + * + * See the COPYING-README file. + * + */ + +#commentsTabView .emptycontent { + margin-top: 0; +} + +#commentsTabView .newCommentForm { + margin-left: 36px; +} + +#commentsTabView .newCommentForm .message { + /* width = 100% - (width of submit button (44px) + margin (3px) + inline-block gap) */ + width: calc(100% - 52px); + display: inline-block; +} + +#commentsTabView .newCommentForm .submit { + width: 44px; + margin: 0; + padding: 13px; + background-color: transparent; + border: none; + opacity: .3; + vertical-align: bottom; +} + +#commentsTabView .deleteLoading { + float: right; + padding: 14px; + vertical-align: middle; +} + +#commentsTabView .submitLoading { + vertical-align: bottom; + display: inline-block; + padding: 14px; +} + +#commentsTabView .newCommentForm .submit:not(:disabled):hover, +#commentsTabView .newCommentForm .submit:not(:disabled):focus { + opacity: 1; +} + +#commentsTabView .newCommentForm .cancel { + margin-right: 6px; +} + +#commentsTabView .newCommentForm div.message { + resize: none; +} + +#commentsTabView .newCommentForm div.message:empty:before { + content: attr(data-placeholder); + color: grey; +} + +#commentsTabView .comment { + position: relative; + /** padding bottom is little more so that the top and bottom gap look uniform **/ + padding: 10px 0px 15px; + word-wrap: break-word; + overflow-wrap: break-word; +} + +#commentsTabView .comments .comment { + border-top: 1px solid $color-border; +} + +#commentsTabView .comment .avatar, +.atwho-view-ul * .avatar{ + width: 32px; + height: 32px; + line-height: 32px; + margin-right: 5px; +} + +#commentsTabView .comment .message .avatar, +.atwho-view-ul * .avatar +{ + display: inline-block; +} + +#activityTabView li.comment.collapsed .activitymessage, +#commentsTabView .comment.collapsed .message { + white-space: pre-wrap; +} + +#activityTabView li.comment.collapsed .activitymessage, +#commentsTabView .comment.collapsed .message { + max-height: 70px; + overflow: hidden; +} + +#activityTabView li.comment .message-overlay, +#commentsTabView .comment .message-overlay { + display: none; +} + +#activityTabView li.comment.collapsed .message-overlay, +#commentsTabView .comment.collapsed .message-overlay { + display: block; + position: absolute; + z-index: 2; + height: 50px; + pointer-events: none; + left: 0; + right: 0; + bottom: 0; + background: -moz-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1)); + background: -webkit-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1)); + background: -o-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1)); + background: -ms-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1)); + background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1)); + background-repeat: no-repeat; +} + +#commentsTabView .hidden { + display: none !important; +} + +/** set min-height as 44px to ensure that it fits the button sizes. **/ +#commentsTabView .comment .authorRow { + min-height: 44px; +} +#commentsTabView .comment .authorRow .tooltip { + /** because of the padding on the element, the tooltip appear too far up, + adding this brings them closer to the element**/ + margin-top: 5px; +} +#commentsTabView .comments li .message .avatar-name-wrapper, +.atwho-view-ul * .avatar-name-wrapper, +#commentsTabView .comment .authorRow { + position: relative; + display: inline-flex; + align-items: center; + width: 100%; +} + +#commentsTabView .comment:not(.newCommentRow) .message .avatar-name-wrapper:not(.currentUser), +#commentsTabView .comment:not(.newCommentRow) .message .avatar-name-wrapper:not(.currentUser) .avatar, +#commentsTabView .comment .authorRow .avatar:not(.currentUser), +#commentsTabView .comment .authorRow .author:not(.currentUser) { + cursor: pointer; +} + +.atwho-view-ul .avatar-name-wrapper, +.atwho-view-ul .avatar-name-wrapper .avatar { + cursor: pointer; +} + +#commentsTabView .comments li .message .atwho-inserted { + margin-left: 5px; +} + +.atwho-view-ul * .avatar-name-wrapper { + white-space: nowrap; +} + +#commentsTabView .comment .author, +#commentsTabView .comment .date { + opacity: .5; +} +#commentsTabView .comment .date { + margin-left: auto; + /** this is to fix the tooltip being too close due to the margin-top applied + to bring the tooltip closer for the action icons **/ + padding: 10px 0px; +} + +#commentsTabView .comments > li:not(.newCommentRow) .message { + padding-left: 40px; +} + +#commentsTabView .comment .action { + opacity: 0.3; + padding: 14px; + display: inline-block; + vertical-align: middle; +} + +#commentsTabView .comment .action:hover, +#commentsTabView .comment .action:focus { + opacity: 1; +} + +#commentsTabView .newCommentRow .action-container { + margin-left: auto; + /** setting minimum width so as to avoid these two buttons from appearing on top of + each other when author name is long. width = icon-width * 2 + (inline-block gap) **/ + min-width: 92px; +} + +#commentsTabView .comment.disabled { + opacity: 0.3; +} + +#commentsTabView .comment.disabled .action { + display: none; +} + +#commentsTabView .message.error { + color: #e9322d; + border-color: #e9322d; + box-shadow: 0 0 6px #f8b9b7; +} + +.app-files .action-comment { + padding: 16px 14px; +} |