mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
parent
765b0168ea
commit
216887490e
10 changed files with 71 additions and 99 deletions
46
client/components/activities/comments.styl
Normal file
46
client/components/activities/comments.styl
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
.new-comment
|
||||||
|
position: relative
|
||||||
|
margin: 0 0 20px 38px
|
||||||
|
|
||||||
|
.member
|
||||||
|
opacity: .7
|
||||||
|
position: absolute
|
||||||
|
top: 1px
|
||||||
|
left: -38px
|
||||||
|
|
||||||
|
&.focus
|
||||||
|
.member
|
||||||
|
opacity: 1
|
||||||
|
|
||||||
|
.helper
|
||||||
|
display: inline-block
|
||||||
|
|
||||||
|
.new-comment-input
|
||||||
|
min-height: 108px
|
||||||
|
color: #4d4d4d
|
||||||
|
cursor: auto
|
||||||
|
overflow: hidden
|
||||||
|
word-wrap: break-word
|
||||||
|
|
||||||
|
.too-long
|
||||||
|
margin-top: 8px
|
||||||
|
|
||||||
|
.new-comment-input
|
||||||
|
background-color: #fff
|
||||||
|
border: 0
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, .23)
|
||||||
|
color: #8c8c8c
|
||||||
|
height: 36px
|
||||||
|
margin: 4px 4px 6px 0
|
||||||
|
padding: 9px 11px
|
||||||
|
width: 100%
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus
|
||||||
|
background-color: #fff
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, .33)
|
||||||
|
border: 0
|
||||||
|
cursor: pointer
|
||||||
|
|
||||||
|
&:focus
|
||||||
|
cursor: auto
|
||||||
|
|
@ -5,7 +5,7 @@ template(name="cardDetails")
|
||||||
|
|
||||||
.card-details-header
|
.card-details-header
|
||||||
+inlinedForm(classNames="js-card-details-title")
|
+inlinedForm(classNames="js-card-details-title")
|
||||||
input.field.single-line(type="text" value=title autofocus)
|
input.full-line(type="text" value=title autofocus)
|
||||||
.edit-controls.clearfix
|
.edit-controls.clearfix
|
||||||
button.primary.confirm(type="submit") {{_ 'save'}}
|
button.primary.confirm(type="submit") {{_ 'save'}}
|
||||||
a.fa.fa-times-thin.js-close-inlined-form
|
a.fa.fa-times-thin.js-close-inlined-form
|
||||||
|
|
@ -25,23 +25,23 @@ template(name="cardDetails")
|
||||||
|
|
||||||
.card-details-items
|
.card-details-items
|
||||||
.card-details-item.card-details-item-members
|
.card-details-item.card-details-item-members
|
||||||
h3 {{_ 'members'}}
|
h3.card-details-item-title {{_ 'members'}}
|
||||||
each members
|
each members
|
||||||
+userAvatar(userId=this cardId=../_id)
|
+userAvatar(userId=this cardId=../_id)
|
||||||
a.member.add-member.card-details-item-add-button.js-add-members
|
a.member.add-member.card-details-item-add-button.js-add-members
|
||||||
i.fa.fa-plus
|
i.fa.fa-plus
|
||||||
|
|
||||||
.card-details-item.card-details-item-labels
|
.card-details-item.card-details-item-labels
|
||||||
h3 {{_ 'labels'}}
|
h3.card-details-item-title {{_ 'labels'}}
|
||||||
.js-add-labels
|
a.js-add-labels
|
||||||
each labels
|
each labels
|
||||||
span.card-label(class="card-label-{{color}}" title=name)= name
|
span.card-label(class="card-label-{{color}}" title=name)= name
|
||||||
a.card-label.add-label.js-add-labels
|
a.card-label.add-label.js-add-labels
|
||||||
i.fa.fa-plus
|
i.fa.fa-plus
|
||||||
|
|
||||||
//- XXX We should use "editable" to avoide repetiting ourselves
|
//- XXX We should use "editable" to avoide repetiting ourselves
|
||||||
if currentUser.isBoardMember
|
if currentUser.isBoardMember
|
||||||
h3 Description
|
h3.card-details-item-title Description
|
||||||
+inlinedForm(classNames="js-card-description")
|
+inlinedForm(classNames="js-card-description")
|
||||||
+editor(autofocus=true)
|
+editor(autofocus=true)
|
||||||
= description
|
= description
|
||||||
|
|
@ -56,7 +56,7 @@ template(name="cardDetails")
|
||||||
else
|
else
|
||||||
| {{_ 'edit'}}
|
| {{_ 'edit'}}
|
||||||
else if description
|
else if description
|
||||||
h3 Description
|
h3.card-details-item-title Description
|
||||||
+viewer
|
+viewer
|
||||||
= description
|
= description
|
||||||
if attachments.count
|
if attachments.count
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,10 @@
|
||||||
margin: 3px 0
|
margin: 3px 0
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
|
form.inlined-form
|
||||||
|
margin-top: 5px
|
||||||
|
margin-bottom: 10px
|
||||||
|
|
||||||
.card-details-list
|
.card-details-list
|
||||||
font-size: 0.85em
|
font-size: 0.85em
|
||||||
margin-bottom: 3px
|
margin-bottom: 3px
|
||||||
|
|
@ -58,6 +62,7 @@
|
||||||
border-radius: 3px
|
border-radius: 3px
|
||||||
padding: 0px 5px
|
padding: 0px 5px
|
||||||
|
|
||||||
|
|
||||||
.card-details-items
|
.card-details-items
|
||||||
display: flex
|
display: flex
|
||||||
margin: 15px 0
|
margin: 15px 0
|
||||||
|
|
@ -65,10 +70,14 @@
|
||||||
.card-details-item
|
.card-details-item
|
||||||
flex-grow: 1
|
flex-grow: 1
|
||||||
|
|
||||||
h3
|
.card-details-item-title
|
||||||
font-size: 14px
|
font-size: 14px
|
||||||
color: darken(white, 45%)
|
color: darken(white, 45%)
|
||||||
|
|
||||||
|
.card-label
|
||||||
|
padding-top: 5px
|
||||||
|
padding-bottom: 5px
|
||||||
|
|
||||||
.new-comment
|
.new-comment
|
||||||
position: relative
|
position: relative
|
||||||
margin: 0 0 20px 38px
|
margin: 0 0 20px 38px
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
// XXX Use .board-widget-labels as a flexbox container
|
// XXX Use .board-widget-labels as a flexbox container
|
||||||
.card-label
|
.card-label
|
||||||
background-color: #b3b3b3
|
|
||||||
border-radius: 4px
|
border-radius: 4px
|
||||||
color: white
|
color: white
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
|
@ -10,7 +9,6 @@
|
||||||
font-size: 13px
|
font-size: 13px
|
||||||
margin-right: 4px
|
margin-right: 4px
|
||||||
padding: 3px 8px
|
padding: 3px 8px
|
||||||
position:relative
|
|
||||||
max-width: 100%
|
max-width: 100%
|
||||||
min-width: 8px
|
min-width: 8px
|
||||||
overflow: ellipsis
|
overflow: ellipsis
|
||||||
|
|
@ -26,7 +24,6 @@
|
||||||
|
|
||||||
&.add-label
|
&.add-label
|
||||||
box-shadow: 0 0 0 2px darken(white, 25%) inset
|
box-shadow: 0 0 0 2px darken(white, 25%) inset
|
||||||
background: darken(white, 5%)
|
|
||||||
|
|
||||||
.card-label-green
|
.card-label-green
|
||||||
background-color: #3cb500
|
background-color: #3cb500
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,9 @@ input[type="email"]
|
||||||
height: 18px
|
height: 18px
|
||||||
width: 200px
|
width: 200px
|
||||||
|
|
||||||
|
&.full-line
|
||||||
|
width: 100%
|
||||||
|
|
||||||
input[type="email"]:invalid
|
input[type="email"]:invalid
|
||||||
box-shadow: none
|
box-shadow: none
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
template(name='inlinedForm')
|
template(name='inlinedForm')
|
||||||
if isOpen.get
|
if isOpen.get
|
||||||
form.js-inlined-form(id=id class=classNames)
|
form.inlined-form.js-inlined-form(id=id class=classNames)
|
||||||
+Template.contentBlock
|
+Template.contentBlock
|
||||||
else
|
else
|
||||||
+Template.elseBlock
|
+Template.elseBlock
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ template(name="listHeader")
|
||||||
|
|
||||||
template(name="editListTitleForm")
|
template(name="editListTitleForm")
|
||||||
.list-composer
|
.list-composer
|
||||||
input.field.single-line(type="text" value=title autofocus)
|
input.full-line(type="text" value=title autofocus)
|
||||||
.edit-controls.clearfix
|
.edit-controls.clearfix
|
||||||
button.primary.confirm(type="submit") {{_ 'save'}}
|
button.primary.confirm(type="submit") {{_ 'save'}}
|
||||||
a.fa.fa-times-thin.js-close-inlined-form
|
a.fa.fa-times-thin.js-close-inlined-form
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,6 @@ avatar-radius = 50%
|
||||||
align-items: center
|
align-items: center
|
||||||
justify-content: center
|
justify-content: center
|
||||||
box-shadow: 0 0 0 2px darken(white, 25%) inset
|
box-shadow: 0 0 0 2px darken(white, 25%) inset
|
||||||
background: darken(white, 5%)
|
|
||||||
|
|
||||||
.atMention
|
.atMention
|
||||||
background: #dbdbdb
|
background: #dbdbdb
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,8 @@ Mousetrap.bindGlobal('esc', function() {
|
||||||
// close the popup). We don't execute any action if the user has clicked on a
|
// close the popup). We don't execute any action if the user has clicked on a
|
||||||
// link or a button.
|
// link or a button.
|
||||||
$(document).on('click', function(evt) {
|
$(document).on('click', function(evt) {
|
||||||
if (evt.which === 1 && $(evt.target).closest('a,button').length === 0) {
|
if (evt.which === 1 &&
|
||||||
|
$(evt.target).closest('a,button,.is-editable').length === 0) {
|
||||||
EscapeActions.clickExecute(evt, 'detailsPane');
|
EscapeActions.clickExecute(evt, 'detailsPane');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -137,42 +137,6 @@ dl, dt
|
||||||
dd
|
dd
|
||||||
margin: 0 0 16px 24px
|
margin: 0 0 16px 24px
|
||||||
|
|
||||||
.edit
|
|
||||||
display: none
|
|
||||||
position: relative
|
|
||||||
|
|
||||||
.editable .current
|
|
||||||
cursor: pointer
|
|
||||||
|
|
||||||
.editable.editing
|
|
||||||
cursor: auto
|
|
||||||
|
|
||||||
.edits-warning, .edits-error
|
|
||||||
display: none
|
|
||||||
clear: both
|
|
||||||
|
|
||||||
.editing .edit
|
|
||||||
display: block
|
|
||||||
float: left
|
|
||||||
padding-bottom: 9px
|
|
||||||
z-index: 100
|
|
||||||
width: 100%
|
|
||||||
|
|
||||||
.editing .edits-warning
|
|
||||||
display: none!important
|
|
||||||
|
|
||||||
.editing .edit .field,
|
|
||||||
.editing .edit .field:active
|
|
||||||
background: rgba(0, 0, 0, .03)
|
|
||||||
box-shadow: inset 0 1px 6px rgba(0, 0, 0, .1)
|
|
||||||
border-color: rgba(0, 0, 0, .15)
|
|
||||||
margin-bottom: 4px
|
|
||||||
|
|
||||||
.edit-heavy .field
|
|
||||||
font-size: 15px
|
|
||||||
font-weight: 700
|
|
||||||
line-height: 18px
|
|
||||||
|
|
||||||
.ui-draggable-dragging
|
.ui-draggable-dragging
|
||||||
z-index: 200
|
z-index: 200
|
||||||
|
|
||||||
|
|
@ -212,53 +176,6 @@ dd
|
||||||
font-size: 25px
|
font-size: 25px
|
||||||
color: white
|
color: white
|
||||||
|
|
||||||
.new-comment
|
|
||||||
position: relative
|
|
||||||
margin: 0 0 20px 38px
|
|
||||||
|
|
||||||
.member
|
|
||||||
opacity: .7
|
|
||||||
position: absolute
|
|
||||||
top: 1px
|
|
||||||
left: -38px
|
|
||||||
|
|
||||||
&.focus
|
|
||||||
.member
|
|
||||||
opacity: 1
|
|
||||||
|
|
||||||
.helper
|
|
||||||
display: inline-block
|
|
||||||
|
|
||||||
.new-comment-input
|
|
||||||
min-height: 108px
|
|
||||||
color: #4d4d4d
|
|
||||||
cursor: auto
|
|
||||||
overflow: hidden
|
|
||||||
word-wrap: break-word
|
|
||||||
|
|
||||||
.too-long
|
|
||||||
margin-top: 8px
|
|
||||||
|
|
||||||
.new-comment-input
|
|
||||||
background-color: #fff
|
|
||||||
border: 0
|
|
||||||
box-shadow: 0 1px 2px rgba(0, 0, 0, .23)
|
|
||||||
color: #8c8c8c
|
|
||||||
height: 36px
|
|
||||||
margin: 4px 4px 6px 0
|
|
||||||
padding: 9px 11px
|
|
||||||
width: 100%
|
|
||||||
|
|
||||||
&:hover,
|
|
||||||
&:focus
|
|
||||||
background-color: #fff
|
|
||||||
box-shadow: 0 1px 3px rgba(0, 0, 0, .33)
|
|
||||||
border: 0
|
|
||||||
cursor: pointer
|
|
||||||
|
|
||||||
&:focus
|
|
||||||
cursor: auto
|
|
||||||
|
|
||||||
.atMention
|
.atMention
|
||||||
background: #dbdbdb
|
background: #dbdbdb
|
||||||
border-radius: 3px
|
border-radius: 3px
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue