2016-08-19 09:19:06 +02:00
|
|
|
$comments-width-max: 710px
|
|
|
|
|
2017-09-21 01:14:53 +02:00
|
|
|
.comments-container
|
2016-08-19 09:19:06 +02:00
|
|
|
position: relative
|
|
|
|
|
|
|
|
#comments-reload
|
|
|
|
text-align: center
|
|
|
|
cursor: pointer
|
|
|
|
padding: 15px 0
|
|
|
|
display: block
|
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
.comments-list
|
|
|
|
&-loading
|
|
|
|
+spin
|
|
|
|
color: $color-background
|
|
|
|
font-size: 2em
|
|
|
|
margin-bottom: 10px
|
|
|
|
position: relative
|
2016-08-19 09:19:06 +02:00
|
|
|
text-align: center
|
2017-09-30 23:21:54 +02:00
|
|
|
top: 25px
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&-title
|
|
|
|
padding: 15px 0 10px 0
|
2017-10-15 05:52:49 +02:00
|
|
|
font-size: 1.1em
|
2017-09-30 23:21:54 +02:00
|
|
|
font-weight: 300
|
2017-10-15 05:52:49 +02:00
|
|
|
color: rgba($color-text, .5)
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
/* Each comment on the list*/
|
|
|
|
.comment-container,
|
|
|
|
.comment-reply-container
|
|
|
|
display: flex
|
|
|
|
position: relative
|
2017-09-21 01:14:53 +02:00
|
|
|
padding: 15px 0 20px 0
|
2016-08-19 09:19:06 +02:00
|
|
|
transition: background-color 150ms ease-in-out, padding 150ms ease-in-out, margin 150ms ease-in-out
|
|
|
|
|
|
|
|
&.comment-linked
|
|
|
|
background-color: $color-background-light !important
|
2017-10-02 01:54:13 +02:00
|
|
|
box-shadow: inset 3px 0 0 $color-info
|
|
|
|
padding-right: 20px
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
&:before
|
2017-10-02 01:54:13 +02:00
|
|
|
bottom: 25px
|
|
|
|
color: $color-info
|
2016-08-19 09:19:06 +02:00
|
|
|
content: 'Linked Comment'
|
2017-10-02 01:54:13 +02:00
|
|
|
font-size: .8em
|
2016-08-19 09:19:06 +02:00
|
|
|
position: absolute
|
|
|
|
right: 20px
|
|
|
|
text-transform: uppercase
|
|
|
|
|
|
|
|
&.is-replying
|
|
|
|
margin-bottom: 15px !important
|
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
.comment-avatar
|
2016-08-19 09:19:06 +02:00
|
|
|
padding-right: 5px
|
|
|
|
padding-left: 5px
|
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
.comment-avatar
|
|
|
|
padding-right: 10px
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
img
|
|
|
|
border-radius: 50%
|
|
|
|
height: 24px
|
|
|
|
margin-top: 5px
|
|
|
|
width: 24px
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
p.comment-author
|
|
|
|
color: $color-text-dark
|
|
|
|
display: inline-block
|
|
|
|
float: left
|
|
|
|
font-weight: bold
|
2017-09-30 23:21:54 +02:00
|
|
|
margin-right: 8px
|
2017-09-25 00:39:34 +02:00
|
|
|
white-space: nowrap
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
&.op
|
|
|
|
color: $color-primary-dark
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
.comment-time
|
|
|
|
padding-left: 10px
|
|
|
|
margin-left: 10px
|
|
|
|
color: $color-text-dark-hint
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
&:before
|
|
|
|
content: '·'
|
|
|
|
position: relative
|
|
|
|
left: -10px
|
|
|
|
font-weight: 600
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
/* The actual comment body. */
|
|
|
|
/* Here we style both the preview comment and posted comments */
|
|
|
|
.comment-content,
|
|
|
|
.comment-reply-form
|
|
|
|
+node-details-description
|
2017-09-21 01:14:53 +02:00
|
|
|
+media-xs
|
|
|
|
max-width: 100%
|
|
|
|
+media-sm
|
|
|
|
max-width: 100%
|
|
|
|
+media-md
|
|
|
|
max-width: $comments-width-max
|
|
|
|
+media-lg
|
|
|
|
max-width: $comments-width-max
|
|
|
|
|
2017-10-14 03:06:08 +02:00
|
|
|
color: darken($color-text, 10%)
|
2016-08-19 09:19:06 +02:00
|
|
|
font:
|
|
|
|
size: 1em
|
|
|
|
weight: normal
|
|
|
|
transition: background-color 200ms ease-in-out, margin 200ms ease-in-out
|
|
|
|
margin: 0
|
|
|
|
border: thin solid transparent
|
|
|
|
|
|
|
|
+media-xs
|
2017-10-08 23:41:18 +02:00
|
|
|
padding-left: 0
|
|
|
|
font-size: $font-size
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
p
|
|
|
|
+media-xs
|
|
|
|
padding:
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
line-height: 1.4em
|
2017-09-21 01:14:53 +02:00
|
|
|
margin-top: 5px
|
|
|
|
|
|
|
|
&:last-child
|
|
|
|
margin-bottom: 10px
|
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
&.comment-author
|
|
|
|
margin-bottom: 0
|
2017-09-21 01:14:53 +02:00
|
|
|
|
2016-08-19 09:19:06 +02:00
|
|
|
strong, b
|
2017-10-15 05:52:49 +02:00
|
|
|
font-weight: bold
|
|
|
|
color: $color-text
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
img.emoji
|
|
|
|
padding-top: inherit
|
|
|
|
padding-bottom: inherit
|
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
.editing
|
2016-08-19 09:19:06 +02:00
|
|
|
background-color: $color-background-light
|
2017-09-25 00:39:34 +02:00
|
|
|
margin-bottom: 10px
|
2016-08-19 09:19:06 +02:00
|
|
|
border-color: $color-background-dark
|
|
|
|
border-radius: 3px
|
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
textarea
|
|
|
|
box-shadow: none
|
|
|
|
width: 100%
|
|
|
|
|
|
|
|
.comment-content
|
|
|
|
display: flex
|
|
|
|
flex-direction: column
|
|
|
|
padding-bottom: 0
|
|
|
|
width: 100%
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
/* Rating, and actions such as reply */
|
|
|
|
.comment-meta
|
2017-09-21 01:14:53 +02:00
|
|
|
+media-xs
|
|
|
|
padding:
|
|
|
|
left: 0
|
|
|
|
right: 0
|
|
|
|
|
2016-08-19 09:19:06 +02:00
|
|
|
align-items: center
|
|
|
|
color: $color-text-dark-secondary
|
2017-09-25 00:39:34 +02:00
|
|
|
display: flex
|
|
|
|
font-size: .9em
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
/* Small container for rating buttons and value */
|
|
|
|
.comment-rating
|
|
|
|
display: flex
|
|
|
|
align-items: center
|
|
|
|
|
|
|
|
&.rated
|
|
|
|
color: $color-text-dark-secondary
|
|
|
|
.down
|
|
|
|
color: $color-downvote
|
|
|
|
|
|
|
|
&.rated.positive
|
|
|
|
color: $color-upvote
|
|
|
|
.down
|
|
|
|
color: $color-text-dark-secondary
|
|
|
|
|
|
|
|
.comment-action-rating.up:before
|
|
|
|
content: '\e83f'
|
|
|
|
|
|
|
|
|
|
|
|
.comment-rating-value
|
|
|
|
padding-right: 15px
|
|
|
|
color: $color-text-dark-secondary
|
|
|
|
cursor: default
|
|
|
|
|
|
|
|
.comment-action-rating
|
2017-09-21 01:14:53 +02:00
|
|
|
cursor: pointer
|
2016-08-19 09:19:06 +02:00
|
|
|
font-family: 'pillar-font'
|
|
|
|
height: 25px
|
2017-09-21 01:14:53 +02:00
|
|
|
position: relative
|
|
|
|
top: 4px
|
2016-08-19 09:19:06 +02:00
|
|
|
width: 16px
|
|
|
|
|
|
|
|
.comment-action-rating.up
|
|
|
|
&:hover
|
|
|
|
color: $color-upvote
|
|
|
|
&:before
|
|
|
|
content: '\e83e'
|
|
|
|
top: 2px
|
|
|
|
position: relative
|
|
|
|
|
|
|
|
.comment-action-rating.down
|
|
|
|
&:hover
|
|
|
|
color: $color-downvote
|
|
|
|
&:before
|
|
|
|
content: '\e838'
|
|
|
|
|
|
|
|
/* Reply button */
|
2017-09-25 01:24:30 +02:00
|
|
|
.comment-action-reply
|
|
|
|
color: $color-primary
|
|
|
|
|
2017-10-15 05:52:49 +02:00
|
|
|
&:hover
|
|
|
|
text-decoration: underline
|
|
|
|
|
2016-08-19 09:19:06 +02:00
|
|
|
.comment-action-reply,
|
|
|
|
.comment-action-edit
|
|
|
|
padding-left: 10px
|
|
|
|
margin-left: 10px
|
|
|
|
|
|
|
|
&:before
|
2017-09-25 01:24:30 +02:00
|
|
|
color: $color-text-dark-secondary
|
2016-08-19 09:19:06 +02:00
|
|
|
content: '·'
|
|
|
|
font-weight: 600
|
2017-09-25 01:24:30 +02:00
|
|
|
left: -10px
|
|
|
|
position: relative
|
2017-10-15 05:52:49 +02:00
|
|
|
text-decoration: none
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
span
|
|
|
|
cursor: pointer
|
|
|
|
&:hover
|
|
|
|
color: $color-primary
|
|
|
|
|
|
|
|
span.edit_save,
|
|
|
|
color: $color-success
|
|
|
|
display: none
|
|
|
|
&:hover
|
|
|
|
color: lighten($color-success, 10%)
|
|
|
|
|
|
|
|
&.error
|
|
|
|
color: $color-danger
|
|
|
|
|
|
|
|
&.saving
|
|
|
|
user-select: none
|
|
|
|
pointer-events: none
|
|
|
|
cursor: default
|
|
|
|
|
|
|
|
i
|
|
|
|
font-size: .8em
|
|
|
|
margin-right: 5px
|
|
|
|
|
|
|
|
span.edit_cancel
|
|
|
|
display: none
|
|
|
|
margin-left: 15px
|
|
|
|
|
|
|
|
&.is-reply
|
|
|
|
padding:
|
2017-09-25 00:39:34 +02:00
|
|
|
left: 20px
|
|
|
|
top: 5px
|
|
|
|
margin-left: 35px
|
2017-10-15 05:52:49 +02:00
|
|
|
box-shadow: inset 3px 0 0 $color-background
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
+media-xs
|
|
|
|
padding-left: 15px
|
|
|
|
|
|
|
|
&.comment-linked
|
2017-10-02 01:54:13 +02:00
|
|
|
box-shadow: inset 3px 0 0 $color-info
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-25 00:39:34 +02:00
|
|
|
&.is-replying+.comment-reply-container
|
|
|
|
margin-left: 35px
|
|
|
|
padding-left: 25px
|
|
|
|
|
2016-08-19 09:19:06 +02:00
|
|
|
&.is-first
|
2017-10-14 03:06:08 +02:00
|
|
|
border-top: 1px solid $color-background
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
&.is-team
|
|
|
|
.comment-author
|
|
|
|
color: $color-success
|
|
|
|
|
|
|
|
&.is-replying
|
2017-09-25 00:39:34 +02:00
|
|
|
box-shadow: inset 5px 0 0 $color-primary
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
&.is-replying+.comment-reply-container
|
2017-09-25 00:39:34 +02:00
|
|
|
box-shadow: inset 5px 0 0 $color-primary
|
2016-08-19 09:19:06 +02:00
|
|
|
margin-left: 0
|
2017-09-25 00:39:34 +02:00
|
|
|
padding-left: 55px
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
.comment-badge
|
2017-09-30 23:21:54 +02:00
|
|
|
border-radius: 3px
|
2016-08-19 09:19:06 +02:00
|
|
|
border: 1px solid $color-text-dark-hint
|
|
|
|
color: $color-text-dark-hint
|
2017-09-30 23:21:54 +02:00
|
|
|
display: inline-block
|
2016-08-19 09:19:06 +02:00
|
|
|
font:
|
|
|
|
size: .7em
|
|
|
|
weight: 400
|
2017-09-30 23:21:54 +02:00
|
|
|
margin: 0 5px 0 10px
|
|
|
|
padding: 1px 4px
|
2016-08-19 09:19:06 +02:00
|
|
|
text-transform: uppercase
|
|
|
|
|
|
|
|
&.badge-team
|
|
|
|
border-color: $color-info
|
|
|
|
color: $color-info
|
|
|
|
&.badge-op
|
|
|
|
border-color: $color-primary
|
|
|
|
color: $color-primary
|
|
|
|
&.badge-own
|
|
|
|
border-color: $color-success
|
|
|
|
color: $color-success
|
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
.comment-reply
|
|
|
|
&-container
|
|
|
|
background-color: $color-background
|
|
|
|
|
|
|
|
/* Little gravatar icon on the left */
|
|
|
|
&-avatar
|
|
|
|
img
|
|
|
|
border-radius: 50%
|
|
|
|
width: 25px
|
|
|
|
height: 25px
|
|
|
|
box-shadow: 0 0 0 3px $color-background-light
|
|
|
|
|
|
|
|
/* textarea field, submit button and reply details */
|
|
|
|
&-form
|
|
|
|
padding:
|
|
|
|
top: 0
|
|
|
|
left: 10px
|
|
|
|
width: 100%
|
|
|
|
|
|
|
|
&-field
|
2017-10-14 03:06:08 +02:00
|
|
|
background-color: $color-background-dark
|
2017-09-30 23:21:54 +02:00
|
|
|
border-radius: 3px
|
2017-10-14 03:06:08 +02:00
|
|
|
box-shadow: inset 0 0 2px 0 rgba(darken($color-background-dark, 20%), .5)
|
2017-09-30 23:21:54 +02:00
|
|
|
display: flex
|
|
|
|
position: relative
|
|
|
|
transition: border-color 300ms ease-in-out
|
|
|
|
|
|
|
|
textarea
|
|
|
|
+node-details-description
|
|
|
|
border-bottom-right-radius: 0
|
|
|
|
border-top-right-radius: 0
|
|
|
|
border: none
|
|
|
|
box-shadow: none
|
|
|
|
color: $color-text-dark
|
|
|
|
flex: 1
|
|
|
|
font:
|
|
|
|
size: 1em
|
|
|
|
weight: normal
|
|
|
|
line-height: 1.5em
|
|
|
|
margin: 0
|
2017-10-03 01:26:25 +02:00
|
|
|
min-height: 35px
|
2017-09-30 23:21:54 +02:00
|
|
|
padding: 10px 0 10px 10px
|
|
|
|
resize: vertical
|
|
|
|
transition: box-shadow 250ms ease-in-out
|
|
|
|
width: 100%
|
|
|
|
|
|
|
|
&:focus
|
|
|
|
box-shadow: inset 2px 0 0 0 $color-success, inset 0 2px 0 0 $color-success, inset 0 -2px 0 0 $color-success
|
|
|
|
border: none
|
|
|
|
color: $color-text-dark
|
|
|
|
outline: none
|
2017-09-25 00:39:34 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&+.comment-reply-meta button.comment-action-submit
|
|
|
|
box-shadow: inset -2px 0 0 0 $color-success, inset 0 2px 0 0 $color-success, inset 0 -2px 0 0 $color-success
|
2017-09-25 00:39:34 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&.error
|
|
|
|
box-shadow: inset 2px 0 0 0 $color-danger, inset 0 2px 0 0 $color-danger, inset 0 -2px 0 0 $color-danger
|
2017-09-25 00:39:34 +02:00
|
|
|
|
2017-10-14 03:06:08 +02:00
|
|
|
&+.comment-reply-meta button.comment-action-submit
|
|
|
|
box-shadow: inset -2px 0 0 0 $color-danger, inset 0 2px 0 0 $color-danger, inset 0 -2px 0 0 $color-danger
|
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&.filled
|
2017-10-14 03:06:08 +02:00
|
|
|
textarea
|
|
|
|
background-color: $color-background-light
|
|
|
|
border-bottom: thin solid $color-background
|
|
|
|
|
|
|
|
&:focus
|
|
|
|
border-bottom-left-radius: 0
|
2017-09-25 00:39:34 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&+.comment-reply-preview
|
|
|
|
display: flex
|
2017-09-25 00:39:34 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
.comment-reply-meta
|
|
|
|
background-color: $color-success
|
2017-09-25 00:39:34 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
.comment-action-submit
|
|
|
|
color: white
|
|
|
|
border-bottom-right-radius: 0
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
span.hotkey
|
2016-11-09 18:15:34 +01:00
|
|
|
display: block
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&.sign-in
|
|
|
|
display: block
|
|
|
|
padding: 10px
|
|
|
|
color: $color-text-dark-primary
|
|
|
|
cursor: default
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&-preview
|
|
|
|
background-color: $color-background-light
|
|
|
|
border-bottom-left-radius: 3px
|
|
|
|
border-bottom-right-radius: 3px
|
|
|
|
box-shadow: 1px 2px 2px rgba($color-background-dark, .5)
|
|
|
|
display: none // flex when comment-reply-field has .filled class
|
|
|
|
position: relative
|
|
|
|
transition: all 150ms ease-in-out
|
|
|
|
|
|
|
|
p
|
|
|
|
padding-left: 0
|
|
|
|
padding-right: 0
|
|
|
|
|
|
|
|
&-md
|
|
|
|
flex: 1
|
|
|
|
padding: 5px 10px
|
|
|
|
|
|
|
|
&:empty
|
|
|
|
color: transparent
|
|
|
|
margin: 0 auto
|
|
|
|
padding: 0 10px
|
|
|
|
border: none
|
|
|
|
|
|
|
|
&:before
|
|
|
|
content: ''
|
|
|
|
color: transparent
|
|
|
|
|
|
|
|
&-info
|
|
|
|
background-color: $color-background-dark
|
|
|
|
display: flex
|
|
|
|
flex-direction: column
|
|
|
|
font-size: .8em
|
|
|
|
padding-bottom: 10px
|
|
|
|
text-align: center
|
|
|
|
width: 100px
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-10-03 01:26:25 +02:00
|
|
|
.comment-action-cancel
|
|
|
|
cursor: pointer
|
|
|
|
padding: 10px
|
|
|
|
text-decoration: underline
|
2017-09-30 23:21:54 +02:00
|
|
|
|
2017-10-03 01:26:25 +02:00
|
|
|
&:hover
|
|
|
|
color: $color-primary
|
2017-09-30 23:21:54 +02:00
|
|
|
|
|
|
|
&-meta
|
|
|
|
display: flex
|
|
|
|
align-items: center
|
|
|
|
border-bottom-right-radius: 3px
|
|
|
|
border-top-right-radius: 3px
|
|
|
|
transition: background-color 150ms ease-in-out, color 150ms ease-in-out
|
|
|
|
width: 100px
|
|
|
|
|
|
|
|
button.comment-action-submit
|
2017-10-15 05:52:49 +02:00
|
|
|
background: transparent
|
2017-09-30 23:21:54 +02:00
|
|
|
border: none
|
|
|
|
border-top-left-radius: 0
|
|
|
|
border-bottom-left-radius: 0
|
|
|
|
color: $color-success
|
|
|
|
flex-direction: column
|
|
|
|
height: 100%
|
|
|
|
position: relative
|
|
|
|
transition: all 200ms ease-in-out
|
|
|
|
white-space: nowrap
|
|
|
|
width: 100%
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&:focus
|
2017-10-15 05:52:49 +02:00
|
|
|
background: lighten($color-success, 10%)
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&.submitting
|
|
|
|
color: $color-info
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
&.error
|
|
|
|
background-color: $color-danger
|
|
|
|
color: white
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
span.hotkey
|
|
|
|
color: white
|
|
|
|
display: none
|
|
|
|
font-weight: normal
|
|
|
|
font-size: .9em
|
2016-08-19 09:19:06 +02:00
|
|
|
|
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
/* Style the comment container when we're replying */
|
|
|
|
.comment-container + .comment-reply-container
|
|
|
|
margin-left: 30px
|
|
|
|
padding-top: 10px
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-09-30 23:21:54 +02:00
|
|
|
.comment-reply-form
|
|
|
|
.comment-reply-meta
|
|
|
|
button.comment-action-cancel
|
|
|
|
display: inline-block
|