comments.less
747 lines
| 13.2 KiB
| text/x-less
|
LessCssLexer
r1 | // comments.less | |||
// For use in RhodeCode applications; | ||||
// see style guide documentation for guidelines. | ||||
// Comments | ||||
r4543 | @comment-outdated-opacity: 1.0; | |||
r1344 | ||||
r1 | .comments { | |||
width: 100%; | ||||
} | ||||
r3882 | .comments-heading { | |||
margin-bottom: -1px; | ||||
background: @grey6; | ||||
display: block; | ||||
padding: 10px 0px; | ||||
font-size: 18px | ||||
} | ||||
r3884 | #comment-tr-show { | |||
padding: 5px 0; | ||||
} | ||||
r1 | tr.inline-comments div { | |||
max-width: 100%; | ||||
p { | ||||
Liviu
|
r3570 | white-space: normal; | ||
r1 | } | |||
code, pre, .code, dd { | ||||
overflow-x: auto; | ||||
width: 1062px; | ||||
} | ||||
dd { | ||||
width: auto; | ||||
} | ||||
} | ||||
#injected_page_comments { | ||||
.comment-previous-link, | ||||
.comment-next-link, | ||||
.comment-links-divider { | ||||
display: none; | ||||
} | ||||
} | ||||
.add-comment { | ||||
margin-bottom: 10px; | ||||
} | ||||
.hide-comment-button .add-comment { | ||||
display: none; | ||||
} | ||||
.comment-bubble { | ||||
color: @grey4; | ||||
margin-top: 4px; | ||||
margin-right: 30px; | ||||
visibility: hidden; | ||||
} | ||||
r4540 | .comment-draft { | |||
float: left; | ||||
margin-right: 10px; | ||||
r4543 | font-weight: 400; | |||
color: @color-draft; | ||||
} | ||||
.comment-new { | ||||
float: left; | ||||
margin-right: 10px; | ||||
font-weight: 400; | ||||
color: @color-new; | ||||
r4540 | } | |||
r1324 | .comment-label { | |||
float: left; | ||||
r4543 | padding: 0 8px 0 0; | |||
r1324 | min-height: 0; | |||
text-align: center; | ||||
font-size: 10px; | ||||
font-family: @text-italic; | ||||
r3186 | font-style: italic; | |||
r1324 | background: #fff none; | |||
r4411 | color: @grey3; | |||
r1324 | white-space: nowrap; | |||
text-transform: uppercase; | ||||
r4411 | min-width: 50px; | |||
r1324 | ||||
&.todo { | ||||
color: @color5; | ||||
r3186 | font-style: italic; | |||
font-weight: @text-bold-italic-weight; | ||||
r1324 | font-family: @text-bold-italic; | |||
} | ||||
r1326 | ||||
.resolve { | ||||
cursor: pointer; | ||||
text-decoration: underline; | ||||
} | ||||
.resolved { | ||||
text-decoration: line-through; | ||||
color: @color1; | ||||
} | ||||
.resolved a { | ||||
text-decoration: line-through; | ||||
color: @color1; | ||||
} | ||||
.resolve-text { | ||||
color: @color1; | ||||
margin: 2px 8px; | ||||
font-family: @text-italic; | ||||
r3186 | font-style: italic; | |||
r1326 | } | |||
r1324 | } | |||
r1360 | .has-spacer-after { | |||
&:after { | ||||
content: ' | '; | ||||
color: @grey5; | ||||
} | ||||
} | ||||
.has-spacer-before { | ||||
&:before { | ||||
content: ' | '; | ||||
color: @grey5; | ||||
} | ||||
} | ||||
r1324 | ||||
r1 | .comment { | |||
r1286 | ||||
&.comment-general { | ||||
border: 1px solid @grey5; | ||||
padding: 5px 5px 5px 5px; | ||||
} | ||||
r1 | margin: @padding 0; | |||
padding: 4px 0 0 0; | ||||
line-height: 1em; | ||||
r8 | .rc-user { | |||
min-width: 0; | ||||
r1324 | margin: 0px .5em 0 0; | |||
.user { | ||||
display: inline; | ||||
} | ||||
r8 | } | |||
r1 | .meta { | |||
position: relative; | ||||
width: 100%; | ||||
r1286 | border-bottom: 1px solid @grey5; | |||
r1324 | margin: -5px 0px; | |||
line-height: 24px; | ||||
r1 | ||||
&:hover .permalink { | ||||
visibility: visible; | ||||
color: @rcblue; | ||||
} | ||||
} | ||||
.author, | ||||
.date { | ||||
display: inline; | ||||
&:after { | ||||
content: ' | '; | ||||
color: @grey5; | ||||
} | ||||
} | ||||
r1286 | .author-general img { | |||
r1324 | top: 3px; | |||
r1286 | } | |||
.author-inline img { | ||||
r1324 | top: 3px; | |||
r1286 | } | |||
r1 | .status-change, | |||
.permalink, | ||||
.changeset-status-lbl { | ||||
display: inline; | ||||
} | ||||
.permalink { | ||||
visibility: hidden; | ||||
} | ||||
.comment-links-divider { | ||||
display: inline; | ||||
} | ||||
.comment-links-block { | ||||
float:right; | ||||
text-align: right; | ||||
min-width: 85px; | ||||
[class^="icon-"]:before, | ||||
[class*=" icon-"]:before { | ||||
margin-left: 0; | ||||
margin-right: 0; | ||||
} | ||||
} | ||||
.comment-previous-link { | ||||
display: inline-block; | ||||
.arrow_comment_link{ | ||||
cursor: pointer; | ||||
i { | ||||
font-size:10px; | ||||
} | ||||
} | ||||
.arrow_comment_link.disabled { | ||||
cursor: default; | ||||
color: @grey5; | ||||
} | ||||
} | ||||
.comment-next-link { | ||||
display: inline-block; | ||||
.arrow_comment_link{ | ||||
cursor: pointer; | ||||
i { | ||||
font-size:10px; | ||||
} | ||||
} | ||||
.arrow_comment_link.disabled { | ||||
cursor: default; | ||||
color: @grey5; | ||||
} | ||||
} | ||||
.delete-comment { | ||||
display: inline-block; | ||||
color: @rcblue; | ||||
Liviu
|
r3570 | |||
r1 | &:hover { | |||
cursor: pointer; | ||||
} | ||||
} | ||||
.text { | ||||
clear: both; | ||||
.border-radius(@border-radius); | ||||
.box-sizing(border-box); | ||||
.markdown-block p, | ||||
.rst-block p { | ||||
margin: .5em 0 !important; | ||||
// TODO: lisa: This is needed because of other rst !important rules :[ | ||||
} | ||||
} | ||||
r1286 | ||||
.pr-version { | ||||
r4409 | display: inline-block; | |||
r1286 | } | |||
.pr-version-inline { | ||||
r4409 | display: inline-block; | |||
r1286 | } | |||
.pr-version-num { | ||||
font-size: 10px; | ||||
} | ||||
r1 | } | |||
r1324 | @comment-padding: 5px; | |||
r1344 | .general-comments { | |||
.comment-outdated { | ||||
opacity: @comment-outdated-opacity; | ||||
} | ||||
r4543 | ||||
.comment-outdated-label { | ||||
color: @grey3; | ||||
padding-right: 4px; | ||||
} | ||||
r1344 | } | |||
r1324 | .inline-comments { | |||
r4543 | ||||
r1324 | .comment { | |||
margin: 0; | ||||
} | ||||
r4543 | ||||
r1324 | .comment-outdated { | |||
r1344 | opacity: @comment-outdated-opacity; | |||
r1324 | } | |||
r4543 | .comment-outdated-label { | |||
color: @grey3; | ||||
padding-right: 4px; | ||||
} | ||||
r1324 | .comment-inline { | |||
r4543 | ||||
&:first-child { | ||||
margin: 4px 4px 0 4px; | ||||
border-top: 1px solid @grey5; | ||||
border-bottom: 0 solid @grey5; | ||||
border-left: 1px solid @grey5; | ||||
border-right: 1px solid @grey5; | ||||
.border-radius-top(4px); | ||||
} | ||||
&:only-child { | ||||
margin: 4px 4px 0 4px; | ||||
border-top: 1px solid @grey5; | ||||
border-bottom: 0 solid @grey5; | ||||
border-left: 1px solid @grey5; | ||||
border-right: 1px solid @grey5; | ||||
.border-radius-top(4px); | ||||
} | ||||
r1324 | background: white; | |||
padding: @comment-padding @comment-padding; | ||||
r4543 | margin: 0 4px 0 4px; | |||
border-top: 0 solid @grey5; | ||||
border-bottom: 0 solid @grey5; | ||||
border-left: 1px solid @grey5; | ||||
border-right: 1px solid @grey5; | ||||
r1324 | ||||
.text { | ||||
border: none; | ||||
} | ||||
r4543 | ||||
r1324 | .meta { | |||
border-bottom: 1px solid @grey6; | ||||
margin: -5px 0px; | ||||
line-height: 24px; | ||||
} | ||||
r4543 | ||||
r1324 | } | |||
.comment-selected { | ||||
border-left: 6px solid @comment-highlight-color; | ||||
} | ||||
r4543 | ||||
.comment-inline-form-open { | ||||
display: block !important; | ||||
} | ||||
r1324 | .comment-inline-form { | |||
display: none; | ||||
} | ||||
r4543 | ||||
.comment-inline-form-edit { | ||||
padding: 0; | ||||
margin: 0px 4px 2px 4px; | ||||
} | ||||
.reply-thread-container { | ||||
display: table; | ||||
width: 100%; | ||||
padding: 0px 4px 4px 4px; | ||||
} | ||||
.reply-thread-container-wrapper { | ||||
margin: 0 4px 4px 4px; | ||||
border-top: 0 solid @grey5; | ||||
border-bottom: 1px solid @grey5; | ||||
border-left: 1px solid @grey5; | ||||
border-right: 1px solid @grey5; | ||||
.border-radius-bottom(4px); | ||||
} | ||||
.reply-thread-gravatar { | ||||
display: table-cell; | ||||
width: 24px; | ||||
height: 24px; | ||||
padding-top: 10px; | ||||
padding-left: 10px; | ||||
background-color: #eeeeee; | ||||
vertical-align: top; | ||||
r1324 | } | |||
r4543 | ||||
.reply-thread-reply-button { | ||||
display: table-cell; | ||||
width: 100%; | ||||
height: 33px; | ||||
padding: 3px 8px; | ||||
margin-left: 8px; | ||||
background-color: #eeeeee; | ||||
} | ||||
.reply-thread-reply-button .cb-comment-add-button { | ||||
border-radius: 4px; | ||||
width: 100%; | ||||
padding: 6px 2px; | ||||
text-align: left; | ||||
cursor: text; | ||||
color: @grey3; | ||||
} | ||||
.reply-thread-reply-button .cb-comment-add-button:hover { | ||||
background-color: white; | ||||
color: @grey2; | ||||
} | ||||
.reply-thread-last { | ||||
display: table-cell; | ||||
width: 10px; | ||||
} | ||||
/* Hide reply box when it's a first element, | ||||
can happen when drafts are saved but not shown to specific user, | ||||
or there are outdated comments hidden | ||||
*/ | ||||
.reply-thread-container-wrapper:first-child:not(.comment-form-active) { | ||||
display: none; | ||||
} | ||||
.reply-thread-container-wrapper.comment-outdated { | ||||
display: none | ||||
} | ||||
/* hide add comment button when form is open */ | ||||
r1324 | .comment-inline-form-open ~ .cb-comment-add-button { | |||
display: none; | ||||
} | ||||
r4543 | ||||
r1324 | /* hide add comment button when only comment is being deleted */ | |||
.comment-deleting:first-child + .cb-comment-add-button { | ||||
display: none; | ||||
} | ||||
r4543 | ||||
/* hide add comment button when form but no comments */ | ||||
.comment-inline-form:first-child + .cb-comment-add-button { | ||||
display: none; | ||||
} | ||||
r1324 | } | |||
r1 | .show-outdated-comments { | |||
display: inline; | ||||
color: @rcblue; | ||||
} | ||||
// Comment Form | ||||
div.comment-form { | ||||
margin-top: 20px; | ||||
} | ||||
.comment-form strong { | ||||
display: block; | ||||
margin-bottom: 15px; | ||||
} | ||||
.comment-form textarea { | ||||
width: 100%; | ||||
height: 100px; | ||||
r3165 | font-family: @text-monospace; | |||
r1 | } | |||
form.comment-form { | ||||
margin-top: 10px; | ||||
margin-left: 10px; | ||||
} | ||||
.comment-inline-form .comment-block-ta, | ||||
.comment-form .comment-block-ta, | ||||
.comment-form .preview-box { | ||||
.border-radius(@border-radius); | ||||
.box-sizing(border-box); | ||||
background-color: white; | ||||
} | ||||
.comment-form-submit { | ||||
margin-top: 5px; | ||||
margin-left: 525px; | ||||
} | ||||
.file-comments { | ||||
display: none; | ||||
} | ||||
.comment-form .preview-box.unloaded, | ||||
.comment-inline-form .preview-box.unloaded { | ||||
height: 50px; | ||||
text-align: center; | ||||
padding: 20px; | ||||
background-color: white; | ||||
} | ||||
.comment-footer { | ||||
r4543 | display: table; | |||
r1 | width: 100%; | |||
r4543 | height: 42px; | |||
Liviu
|
r3570 | |||
r4543 | .comment-status-box, | |||
r1 | .cancel-button { | |||
display: inline-block; | ||||
} | ||||
Liviu
|
r3570 | |||
r4543 | .comment-status-box { | |||
r4130 | margin-left: 10px; | |||
} | ||||
r1 | .action-buttons { | |||
r4543 | display: table-cell; | |||
padding: 5px 0 5px 2px; | ||||
} | ||||
.toolbar-text { | ||||
r4555 | height: 28px; | |||
r4543 | display: table-cell; | |||
r4555 | vertical-align: baseline; | |||
r4543 | font-size: 11px; | |||
color: @grey4; | ||||
text-align: right; | ||||
a { | ||||
color: @grey4; | ||||
} | ||||
r1 | } | |||
r1445 | ||||
.action-buttons-extra { | ||||
display: inline-block; | ||||
} | ||||
r1 | } | |||
.comment-form { | ||||
.comment { | ||||
margin-left: 10px; | ||||
} | ||||
.comment-help { | ||||
color: @grey4; | ||||
padding: 5px 0 5px 0; | ||||
} | ||||
.comment-title { | ||||
padding: 5px 0 5px 0; | ||||
} | ||||
.comment-button { | ||||
display: inline-block; | ||||
} | ||||
r1325 | .comment-button-input { | |||
r1 | margin-right: 0; | |||
} | ||||
r4549 | #save_general { | |||
margin-left: -6px; | ||||
} | ||||
r1 | } | |||
.comment-form-login { | ||||
.comment-help { | ||||
Liviu
|
r3570 | padding: 0.7em; //same as the button | ||
r1 | } | |||
Liviu
|
r3570 | div.clearfix { | ||
r1 | clear: both; | |||
width: 100%; | ||||
display: block; | ||||
} | ||||
} | ||||
r4404 | .comment-version-select { | |||
margin: 0px; | ||||
border-radius: inherit; | ||||
border-color: @grey6; | ||||
height: 20px; | ||||
} | ||||
r1324 | .comment-type { | |||
margin: 0px; | ||||
border-radius: inherit; | ||||
border-color: @grey6; | ||||
} | ||||
r1 | .preview-box { | |||
r1281 | min-height: 105px; | |||
r1 | margin-bottom: 15px; | |||
background-color: white; | ||||
.border-radius(@border-radius); | ||||
.box-sizing(border-box); | ||||
} | ||||
.add-another-button { | ||||
margin-left: 10px; | ||||
margin-top: 10px; | ||||
margin-bottom: 10px; | ||||
} | ||||
.comment .buttons { | ||||
float: right; | ||||
margin: -1px 0px 0px 0px; | ||||
} | ||||
// Inline Comment Form | ||||
.injected_diff .comment-inline-form, | ||||
.comment-inline-form { | ||||
r1281 | background-color: white; | |||
r4543 | margin-top: 4px; | |||
margin-bottom: 10px; | ||||
r1 | } | |||
.inline-form { | ||||
padding: 10px 7px; | ||||
} | ||||
.inline-form div { | ||||
max-width: 100%; | ||||
} | ||||
.overlay { | ||||
display: none; | ||||
position: absolute; | ||||
width: 100%; | ||||
text-align: center; | ||||
vertical-align: middle; | ||||
font-size: 16px; | ||||
background: none repeat scroll 0 0 white; | ||||
&.submitting { | ||||
display: block; | ||||
opacity: 0.5; | ||||
z-index: 100; | ||||
} | ||||
} | ||||
.comment-inline-form .overlay.submitting .overlay-text { | ||||
margin-top: 5%; | ||||
} | ||||
.comment-inline-form .clearfix, | ||||
.comment-form .clearfix { | ||||
.border-radius(@border-radius); | ||||
margin: 0px; | ||||
} | ||||
r1281 | ||||
r1 | .hide-inline-form-button { | |||
margin-left: 5px; | ||||
} | ||||
.comment-button .hide-inline-form { | ||||
background: white; | ||||
} | ||||
r1281 | ||||
.comment-area { | ||||
r4130 | padding: 6px 8px; | |||
r1281 | border: 1px solid @grey5; | |||
.border-radius(@border-radius); | ||||
r1344 | ||||
.resolve-action { | ||||
padding: 1px 0px 0px 6px; | ||||
r4573 | list-style: none; | |||
r1344 | } | |||
r1281 | } | |||
r4130 | comment-area-text { | |||
color: @grey3; | ||||
} | ||||
.comment-area-header { | ||||
height: 35px; | ||||
r4543 | border-bottom: 1px solid @grey5; | |||
r4130 | } | |||
r1281 | .comment-area-header .nav-links { | |||
display: flex; | ||||
flex-flow: row wrap; | ||||
-webkit-flex-flow: row wrap; | ||||
width: 100%; | ||||
r4543 | border: none; | |||
r1281 | } | |||
.comment-area-footer { | ||||
r3973 | min-height: 30px; | |||
r1281 | } | |||
.comment-footer .toolbar { | ||||
} | ||||
r3973 | .comment-attachment-uploader { | |||
border: 1px dashed white; | ||||
border-radius: @border-radius; | ||||
margin-top: -10px; | ||||
r4130 | line-height: 30px; | |||
r3973 | &.dz-drag-hover { | |||
border-color: @grey3; | ||||
} | ||||
.dz-error-message { | ||||
padding-top: 0; | ||||
} | ||||
} | ||||
.comment-attachment-text { | ||||
clear: both; | ||||
font-size: 11px; | ||||
color: #8F8F8F; | ||||
width: 100%; | ||||
.pick-attachment { | ||||
color: #8F8F8F; | ||||
} | ||||
.pick-attachment:hover { | ||||
color: @rcblue; | ||||
} | ||||
} | ||||
r1281 | .nav-links { | |||
padding: 0; | ||||
margin: 0; | ||||
list-style: none; | ||||
height: auto; | ||||
border-bottom: 1px solid @grey5; | ||||
} | ||||
.nav-links li { | ||||
display: inline-block; | ||||
r3248 | list-style-type: none; | |||
r1281 | } | |||
r3248 | ||||
r1281 | .nav-links li a.disabled { | |||
cursor: not-allowed; | ||||
} | ||||
.nav-links li.active a { | ||||
border-bottom: 2px solid @rcblue; | ||||
color: #000; | ||||
font-weight: 600; | ||||
} | ||||
.nav-links li a { | ||||
display: inline-block; | ||||
padding: 0px 10px 5px 10px; | ||||
margin-bottom: -1px; | ||||
font-size: 14px; | ||||
line-height: 28px; | ||||
color: #8f8f8f; | ||||
border-bottom: 2px solid transparent; | ||||
} | ||||