Comments: Cleanup and convert more IDs to classes when possible
No functional changes.
This commit is contained in:
@@ -9,33 +9,22 @@ $comments-width-max: 710px
|
|||||||
padding: 15px 0
|
padding: 15px 0
|
||||||
display: block
|
display: block
|
||||||
|
|
||||||
.comments-list-title
|
.comments-list
|
||||||
|
&-loading
|
||||||
|
+spin
|
||||||
|
color: $color-background
|
||||||
|
font-size: 2em
|
||||||
|
margin-bottom: 10px
|
||||||
|
position: relative
|
||||||
|
text-align: center
|
||||||
|
top: 25px
|
||||||
|
|
||||||
|
&-title
|
||||||
padding: 15px 0 10px 0
|
padding: 15px 0 10px 0
|
||||||
font-size: 1.3em
|
font-size: 1.3em
|
||||||
font-weight: 300
|
font-weight: 300
|
||||||
color: $color-text-dark-hint
|
color: $color-text-dark-hint
|
||||||
|
|
||||||
#comments-list-items-loading
|
|
||||||
font-size: 2em
|
|
||||||
color: $color-background
|
|
||||||
text-align: center
|
|
||||||
position: relative
|
|
||||||
top: 25px
|
|
||||||
margin-bottom: 10px
|
|
||||||
+spin
|
|
||||||
|
|
||||||
#comments-list-items,
|
|
||||||
.comment-reply-container
|
|
||||||
position: relative
|
|
||||||
|
|
||||||
.nocomments
|
|
||||||
color: $color-text-dark-hint
|
|
||||||
text-align: center
|
|
||||||
cursor: default
|
|
||||||
padding: 8px 0
|
|
||||||
|
|
||||||
.comments-list
|
|
||||||
|
|
||||||
/* Each comment on the list*/
|
/* Each comment on the list*/
|
||||||
.comment-container,
|
.comment-container,
|
||||||
.comment-reply-container
|
.comment-reply-container
|
||||||
@@ -84,7 +73,7 @@ $comments-width-max: 710px
|
|||||||
display: inline-block
|
display: inline-block
|
||||||
float: left
|
float: left
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
margin-right: 10px
|
margin-right: 8px
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
|
|
||||||
&.op
|
&.op
|
||||||
@@ -147,6 +136,10 @@ $comments-width-max: 710px
|
|||||||
font-weight: 500
|
font-weight: 500
|
||||||
color: $color-info
|
color: $color-info
|
||||||
|
|
||||||
|
img.emoji
|
||||||
|
padding-top: inherit
|
||||||
|
padding-bottom: inherit
|
||||||
|
|
||||||
.editing
|
.editing
|
||||||
background-color: $color-background-light
|
background-color: $color-background-light
|
||||||
margin-bottom: 10px
|
margin-bottom: 10px
|
||||||
@@ -163,46 +156,6 @@ $comments-width-max: 710px
|
|||||||
padding-bottom: 0
|
padding-bottom: 0
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
.comment-content-preview
|
|
||||||
display: none
|
|
||||||
+node-details-description
|
|
||||||
padding: 10px 0 0 10px
|
|
||||||
font:
|
|
||||||
size: 1em
|
|
||||||
weight: normal
|
|
||||||
|
|
||||||
position: relative
|
|
||||||
margin-top: 15px
|
|
||||||
|
|
||||||
&:empty
|
|
||||||
margin: 0
|
|
||||||
padding: 0
|
|
||||||
&:before, &:after
|
|
||||||
display: none
|
|
||||||
|
|
||||||
&:before
|
|
||||||
content: 'Live Preview'
|
|
||||||
position: absolute
|
|
||||||
top: -20px
|
|
||||||
left: 30px
|
|
||||||
font-size: .9em
|
|
||||||
color: $color-text-dark-hint
|
|
||||||
transition: color 150ms ease-in-out
|
|
||||||
|
|
||||||
+media-md
|
|
||||||
visibility: visible
|
|
||||||
+media-sm
|
|
||||||
visibility: hidden
|
|
||||||
|
|
||||||
&:after
|
|
||||||
content: 'Markdown Supported'
|
|
||||||
position: absolute
|
|
||||||
top: -20px
|
|
||||||
right: 20px
|
|
||||||
font-size: .9em
|
|
||||||
color: $color-text-dark-hint
|
|
||||||
transition: color 150ms ease-in-out
|
|
||||||
|
|
||||||
/* Rating, and actions such as reply */
|
/* Rating, and actions such as reply */
|
||||||
.comment-meta
|
.comment-meta
|
||||||
+media-xs
|
+media-xs
|
||||||
@@ -339,15 +292,15 @@ $comments-width-max: 710px
|
|||||||
padding-left: 55px
|
padding-left: 55px
|
||||||
|
|
||||||
.comment-badge
|
.comment-badge
|
||||||
display: inline-block
|
border-radius: 3px
|
||||||
border: 1px solid $color-text-dark-hint
|
border: 1px solid $color-text-dark-hint
|
||||||
color: $color-text-dark-hint
|
color: $color-text-dark-hint
|
||||||
padding: 1px 4px
|
display: inline-block
|
||||||
margin: 0 5px 0 10px
|
|
||||||
border-radius: 3px
|
|
||||||
font:
|
font:
|
||||||
size: .7em
|
size: .7em
|
||||||
weight: 400
|
weight: 400
|
||||||
|
margin: 0 5px 0 10px
|
||||||
|
padding: 1px 4px
|
||||||
text-transform: uppercase
|
text-transform: uppercase
|
||||||
|
|
||||||
&.badge-team
|
&.badge-team
|
||||||
@@ -360,11 +313,12 @@ $comments-width-max: 710px
|
|||||||
border-color: $color-success
|
border-color: $color-success
|
||||||
color: $color-success
|
color: $color-success
|
||||||
|
|
||||||
.comment-reply-container
|
.comment-reply
|
||||||
|
&-container
|
||||||
background-color: $color-background
|
background-color: $color-background
|
||||||
|
|
||||||
/* Little gravatar icon on the left */
|
/* Little gravatar icon on the left */
|
||||||
.comment-reply-avatar
|
&-avatar
|
||||||
img
|
img
|
||||||
border-radius: 50%
|
border-radius: 50%
|
||||||
width: 25px
|
width: 25px
|
||||||
@@ -372,13 +326,13 @@ $comments-width-max: 710px
|
|||||||
box-shadow: 0 0 0 3px $color-background-light
|
box-shadow: 0 0 0 3px $color-background-light
|
||||||
|
|
||||||
/* textarea field, submit button and reply details */
|
/* textarea field, submit button and reply details */
|
||||||
.comment-reply-form
|
&-form
|
||||||
padding:
|
padding:
|
||||||
top: 0
|
top: 0
|
||||||
left: 10px
|
left: 10px
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
.comment-reply-field
|
&-field
|
||||||
background-color: white
|
background-color: white
|
||||||
border-radius: 3px
|
border-radius: 3px
|
||||||
box-shadow: 1px 2px 2px rgba($color-background-dark, .5)
|
box-shadow: 1px 2px 2px rgba($color-background-dark, .5)
|
||||||
@@ -388,11 +342,11 @@ $comments-width-max: 710px
|
|||||||
|
|
||||||
textarea
|
textarea
|
||||||
+node-details-description
|
+node-details-description
|
||||||
color: $color-text-dark
|
|
||||||
border: none
|
|
||||||
border-bottom-right-radius: 0
|
border-bottom-right-radius: 0
|
||||||
border-top-right-radius: 0
|
border-top-right-radius: 0
|
||||||
|
border: none
|
||||||
box-shadow: none
|
box-shadow: none
|
||||||
|
color: $color-text-dark
|
||||||
flex: 1
|
flex: 1
|
||||||
font:
|
font:
|
||||||
size: 1em
|
size: 1em
|
||||||
@@ -402,8 +356,8 @@ $comments-width-max: 710px
|
|||||||
min-height: 45px
|
min-height: 45px
|
||||||
padding: 10px 0 10px 10px
|
padding: 10px 0 10px 10px
|
||||||
resize: vertical
|
resize: vertical
|
||||||
width: 100%
|
|
||||||
transition: box-shadow 250ms ease-in-out
|
transition: box-shadow 250ms ease-in-out
|
||||||
|
width: 100%
|
||||||
|
|
||||||
&:focus
|
&:focus
|
||||||
box-shadow: inset 2px 0 0 0 $color-success, inset 0 2px 0 0 $color-success, inset 0 -2px 0 0 $color-success
|
box-shadow: inset 2px 0 0 0 $color-success, inset 0 2px 0 0 $color-success, inset 0 -2px 0 0 $color-success
|
||||||
@@ -443,8 +397,7 @@ $comments-width-max: 710px
|
|||||||
a
|
a
|
||||||
margin-right: 4px
|
margin-right: 4px
|
||||||
|
|
||||||
|
&-preview
|
||||||
.comment-reply-preview
|
|
||||||
background-color: $color-background-light
|
background-color: $color-background-light
|
||||||
border-bottom-left-radius: 3px
|
border-bottom-left-radius: 3px
|
||||||
border-bottom-right-radius: 3px
|
border-bottom-right-radius: 3px
|
||||||
@@ -462,7 +415,7 @@ $comments-width-max: 710px
|
|||||||
flex: 1
|
flex: 1
|
||||||
padding: 5px 10px
|
padding: 5px 10px
|
||||||
|
|
||||||
.comment-reply-preview:empty
|
&:empty
|
||||||
color: transparent
|
color: transparent
|
||||||
margin: 0 auto
|
margin: 0 auto
|
||||||
padding: 0 10px
|
padding: 0 10px
|
||||||
@@ -472,7 +425,7 @@ $comments-width-max: 710px
|
|||||||
content: ''
|
content: ''
|
||||||
color: transparent
|
color: transparent
|
||||||
|
|
||||||
.comment-reply-info
|
&-info
|
||||||
background-color: $color-background-dark
|
background-color: $color-background-dark
|
||||||
display: flex
|
display: flex
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
@@ -489,7 +442,7 @@ $comments-width-max: 710px
|
|||||||
&:hover
|
&:hover
|
||||||
color: $color-primary
|
color: $color-primary
|
||||||
|
|
||||||
.comment-reply-meta
|
&-meta
|
||||||
display: flex
|
display: flex
|
||||||
align-items: center
|
align-items: center
|
||||||
border-bottom-right-radius: 3px
|
border-bottom-right-radius: 3px
|
||||||
@@ -536,5 +489,3 @@ $comments-width-max: 710px
|
|||||||
.comment-reply-meta
|
.comment-reply-meta
|
||||||
button.comment-action-cancel
|
button.comment-action-cancel
|
||||||
display: inline-block
|
display: inline-block
|
||||||
|
|
||||||
// @import plugins/_ckeditor
|
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
include ../../_node_details
|
include ../../_node_details
|
||||||
|
|
||||||
#comments-embed
|
#comments-embed
|
||||||
#comments-list-items-loading
|
.comments-list-loading
|
||||||
i.pi-spin
|
i.pi-spin
|
||||||
|
|
||||||
include ../../_scripts
|
include ../../_scripts
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
include ../../_node_details
|
include ../../_node_details
|
||||||
|
|
||||||
#comments-embed
|
#comments-embed
|
||||||
#comments-list-items-loading
|
.comments-list-loading
|
||||||
i.pi-spin
|
i.pi-spin
|
||||||
|
|
||||||
include ../../_scripts
|
include ../../_scripts
|
||||||
|
@@ -46,7 +46,7 @@
|
|||||||
include ../../_node_details
|
include ../../_node_details
|
||||||
|
|
||||||
#comments-embed
|
#comments-embed
|
||||||
#comments-list-items-loading
|
.comments-list-loading
|
||||||
i.pi-spin
|
i.pi-spin
|
||||||
|
|
||||||
script(type="text/javascript").
|
script(type="text/javascript").
|
||||||
|
@@ -41,7 +41,7 @@
|
|||||||
| {% endif %}
|
| {% endif %}
|
||||||
|
|
||||||
#comments-embed
|
#comments-embed
|
||||||
#comments-list-items-loading
|
.comments-list-loading
|
||||||
i.pi-spin
|
i.pi-spin
|
||||||
|
|
||||||
include ../_scripts
|
include ../_scripts
|
||||||
|
@@ -72,7 +72,7 @@
|
|||||||
section.comments-list-header
|
section.comments-list-header
|
||||||
.comments-list-title
|
.comments-list-title
|
||||||
| {{ nr_of_comments }} comment{{ nr_of_comments|pluralize }}
|
| {{ nr_of_comments }} comment{{ nr_of_comments|pluralize }}
|
||||||
#comments-list-items
|
.comments-list-items
|
||||||
| {% for comment in comments['_items'] %}
|
| {% for comment in comments['_items'] %}
|
||||||
| {{ macros.render_comment(comment, False) }}
|
| {{ macros.render_comment(comment, False) }}
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#comments-embed
|
#comments-embed
|
||||||
#comments-list-items-loading
|
.comments-list-loading
|
||||||
i.pi-spin
|
i.pi-spin
|
||||||
|
|
||||||
include ../_scripts
|
include ../_scripts
|
||||||
|
Reference in New Issue
Block a user