Skip to content

Commit 3651645

Browse files
committed
Support new comment title setting
1 parent b2876e9 commit 3651645

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

css/base.css

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ h6 {
329329
}
330330
.submitted {
331331
font-size: 0.9rem;
332+
margin: .9rem 0;
332333
}
333334
/**
334335
* Push footer down to bottom of page.
@@ -373,6 +374,9 @@ h6 {
373374
margin: 0 0 15px;
374375
border-radius: 4px;
375376
}
377+
.comment p {
378+
margin: .7rem 0;
379+
}
376380
.comments .indented {
377381
position: relative;
378382
}
@@ -381,16 +385,40 @@ h6 {
381385
display: block;
382386
width: 15px;
383387
height: 15px;
384-
transform: rotate(45deg);
385388
-webkit-transform: rotate(45deg);
389+
transform: rotate(45deg); /* LTR */
386390
position: absolute;
387391
top: 20px;
388-
left: -28px;
392+
left: -28px; /* LTR */
393+
}
394+
[dir="rtl"] .comments .indented .comment::before {
395+
-webkit-transform: rotate(225deg);
396+
transform: rotate(225deg);
397+
left: auto;
398+
right: -28px;
389399
}
390-
.comment h3 {
400+
.comment .comment-title {
391401
margin: 0;
392402
font-size: 1.2rem;
393403
}
404+
.comment.comment-title-hidden .comment-title .permalink {
405+
display: block;
406+
width: 1em;
407+
height: 1em;
408+
float: left; /* LTR */
409+
margin: .7rem 8px 0 0;
410+
text-indent: -333px;
411+
overflow: hidden;
412+
background-color: currentColor;
413+
-webkit-mask-image: url("../images/permalink.svg");
414+
mask-image: url("../images/permalink.svg");
415+
-webkit-mask-size: cover;
416+
mask-size: cover;
417+
}
418+
[dir="rtl"] .comment.comment-title-hidden .comment-title .permalink {
419+
float: right;
420+
margin: .7rem 0 0 8px;
421+
}
394422
.comment ul.links {
395423
display: block;
396424
margin-bottom: 0;

images/permalink.svg

Lines changed: 1 addition & 0 deletions
Loading

templates/comment.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<?php if ($new): ?>
6363
<mark class="new"><?php print $new; ?></mark>
6464
<?php endif; ?>
65-
<h3><?php print $title; ?></h3>
65+
<h3 class="comment-title"><?php print $title; ?></h3>
6666
<?php print render($title_suffix); ?>
6767

6868
<footer>

0 commit comments

Comments
 (0)