Skip to content

Commit fbb5d95

Browse files
authored
Privately remind users not to leave 👍 and 👎 as comments (refined-github#1231)
1 parent 04626e6 commit fbb5d95

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"stylelint": {
113113
"extends": "stylelint-config-xo",
114114
"rules": {
115+
"selector-type-no-unknown": null,
115116
"declaration-no-important": null,
116117
"property-no-vendor-prefix": null,
117118
"no-descending-specificity": null,

source/content.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@
4040
margin: 0;
4141
}
4242

43+
/* Privately remind users to use Reactions for +1/-1 voting */
44+
.current-user .comment-body > p:only-child > g-emoji[alias='+1']:only-child,
45+
.current-user .comment-body > p:only-child > g-emoji[alias='-1']:only-child {
46+
display: flex;
47+
flex-direction: column;
48+
text-align: center;
49+
padding: 3em;
50+
font-size: 4em;
51+
}
52+
.current-user .comment-body > p:only-child > g-emoji[alias='+1']:only-child::after,
53+
.current-user .comment-body > p:only-child > g-emoji[alias='-1']:only-child::after {
54+
content: 'This should be posted as a reaction, not as a comment.';
55+
font-family: sans-serif;
56+
margin-top: 2em;
57+
font-size: 20px;
58+
}
59+
4360
/* Remove the toolbar from the right repo box on the dashboard */
4461
.dashboard-sidebar .user-repos > h3,
4562
.dashboard-sidebar .user-repos > .boxed-group-action {

0 commit comments

Comments
 (0)