File tree 5 files changed +41
-33
lines changed
5 files changed +41
-33
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ $post_spacing: 30px;
65
65
66
66
.post_author a {
67
67
color : body_color_light ();
68
- font-size : 18px ;
69
68
70
69
@include slighly_narrow {
71
70
font-size : inherit ;
Original file line number Diff line number Diff line change 1
1
.submission_comment_list {
2
+ display : flex ;
3
+ flex-direction : column ;
4
+ gap : 20px ;
5
+
2
6
.submission_comment , .comment_spacer {
3
7
position : relative ;
4
- margin : 0 0 40px 0 ;
5
-
6
- & :last-child {
7
- margin-bottom : 30px ;
8
- }
9
8
}
10
9
11
10
.comment_spacer {
14
13
margin-bottom : 0 ;
15
14
16
15
& .animated {
17
- margin-bottom : 40px ;
18
-
19
16
.submission_comment {
20
17
left : 0 ;
21
18
@include opacity (2 );
31
28
}
32
29
33
30
.submission_comment {
34
- @include clearfix ;
31
+ display : flex ;
32
+ gap : 10px ;
35
33
36
34
& .loading {
37
35
position : relative ;
57
55
}
58
56
59
57
.comment_avatar {
60
- float : left ;
61
- margin-left : 20px ;
62
- margin-top : 5px ;
58
+ flex : none ;
63
59
60
+ > a {
61
+ display : block ;
62
+ }
64
63
img {
65
- display : inline- block ;
64
+ display : block ;
66
65
width : 40px ;
67
66
height : 40px ;
68
67
border-radius : 20px ;
69
68
}
70
69
}
71
70
72
- .comment_tools {
73
- float : right ;
71
+ .comment_head {
72
+ display : flex ;
73
+ gap : 10px ;
74
+ }
75
+
76
+ .comment_author {
77
+ color : body_color_light ();
78
+ }
74
79
80
+ .comment_tools {
81
+ margin-left : auto ;
75
82
a {
76
83
color : body_color_lighter ();
77
84
}
78
85
}
79
86
80
87
.comment_content {
81
- margin-left : 80px ;
82
- margin-right : 20px ;
88
+ flex : 1 ;
89
+ min-width : 0 ;
90
+ display : flex ;
91
+ flex-direction : column ;
92
+ gap : 10px ;
83
93
}
84
94
85
95
.comment_time {
86
96
color : body_color_lighter ();
87
97
}
88
98
89
- .comment_head {
90
- margin-bottom : 20px ;
91
- }
92
-
93
99
.comment_body.user_formatted {
94
100
padding : 0 ;
95
101
}
Original file line number Diff line number Diff line change 30
30
}
31
31
32
32
.submission_comment_list {
33
- padding-top : 30px ;
33
+ padding : 30px 20 px ;
34
34
border-top : 1px solid border_color ();
35
35
36
36
& :empty {
Original file line number Diff line number Diff line change 455
455
456
456
.submission_footer {
457
457
border-top : 1px solid border_color ();
458
- position : relative ;
459
- overflow : hidden ;
458
+ display : flex ;
459
+ gap : 5 px ;
460
460
461
461
.footer_inside {
462
462
padding : 10px 20px ;
463
463
position : relative ;
464
- float : left ;
465
464
}
466
465
467
466
a {
474
473
.submission_tags {
475
474
padding : 10px 20px ;
476
475
text-align : right ;
476
+ margin-left : auto ;
477
477
478
478
.submission_tag {
479
479
@include transition (all 0.2s ease );
483
483
text-decoration : none ;
484
484
color : body_color_light ();
485
485
486
+ & :first-child {
487
+ margin-left : 0 ;
488
+ }
489
+
486
490
& :hover {
487
491
color : link_color ();
488
492
}
Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ class SubmissionCommentList extends require "widgets.base"
29
29
30
30
div class : " comment_content" , ->
31
31
div class : " comment_head" , ->
32
+ if suspended
33
+ em " Suspended account"
34
+ else
35
+ a class : " comment_author" , href : user_url, comment. user\ name_for_display!
36
+
37
+ span class : " comment_time" , title : comment. created_at, time_ago_in_words comment. created_at
38
+
32
39
if @current_user
33
40
can_edit = comment\ allowed_to_edit @current_user
34
41
can_delete = @current_user . id == @submission . user_id
@@ -49,14 +56,6 @@ class SubmissionCommentList extends require "widgets.base"
49
56
raw " · "
50
57
a href : " #" , class : " delete_btn" , " Delete"
51
58
52
- if suspended
53
- em " Suspended account"
54
- else
55
- a href : user_url, comment. user\ name_for_display!
56
-
57
- raw " · "
58
- span class : " comment_time" , title : comment. created_at, time_ago_in_words comment. created_at
59
-
60
59
div class : " comment_body user_formatted" , ->
61
60
if suspended
62
61
p class : " suspended_message" , ->
You can’t perform that action at this time.
0 commit comments