Skip to content

Commit

Permalink
Support new comment title setting
Browse files Browse the repository at this point in the history
  • Loading branch information
indigoxela committed Sep 4, 2022
1 parent b2876e9 commit 3651645
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
34 changes: 31 additions & 3 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ h6 {
}
.submitted {
font-size: 0.9rem;
margin: .9rem 0;
}
/**
* Push footer down to bottom of page.
Expand Down Expand Up @@ -373,6 +374,9 @@ h6 {
margin: 0 0 15px;
border-radius: 4px;
}
.comment p {
margin: .7rem 0;
}
.comments .indented {
position: relative;
}
Expand All @@ -381,16 +385,40 @@ h6 {
display: block;
width: 15px;
height: 15px;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
transform: rotate(45deg); /* LTR */
position: absolute;
top: 20px;
left: -28px;
left: -28px; /* LTR */
}
[dir="rtl"] .comments .indented .comment::before {
-webkit-transform: rotate(225deg);
transform: rotate(225deg);
left: auto;
right: -28px;
}
.comment h3 {
.comment .comment-title {
margin: 0;
font-size: 1.2rem;
}
.comment.comment-title-hidden .comment-title .permalink {
display: block;
width: 1em;
height: 1em;
float: left; /* LTR */
margin: .7rem 8px 0 0;
text-indent: -333px;
overflow: hidden;
background-color: currentColor;
-webkit-mask-image: url("../images/permalink.svg");
mask-image: url("../images/permalink.svg");
-webkit-mask-size: cover;
mask-size: cover;
}
[dir="rtl"] .comment.comment-title-hidden .comment-title .permalink {
float: right;
margin: .7rem 0 0 8px;
}
.comment ul.links {
display: block;
margin-bottom: 0;
Expand Down
1 change: 1 addition & 0 deletions images/permalink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion templates/comment.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<?php if ($new): ?>
<mark class="new"><?php print $new; ?></mark>
<?php endif; ?>
<h3><?php print $title; ?></h3>
<h3 class="comment-title"><?php print $title; ?></h3>
<?php print render($title_suffix); ?>

<footer>
Expand Down

0 comments on commit 3651645

Please sign in to comment.