| 1 |
.bbp-voting { |
| 2 |
margin: 5px 0; |
| 3 |
padding-right: 10px; |
| 4 |
min-width: 60px; |
| 5 |
left: 25px; |
| 6 |
} |
| 7 |
|
| 8 |
.bbp-voting.bbp-voting-float { |
| 9 |
float: left; |
| 10 |
} |
| 11 |
|
| 12 |
.bbp-voting .score { |
| 13 |
font-size: 22px; |
| 14 |
font-weight: bold; |
| 15 |
text-align: center; |
| 16 |
color: var(--black_400, #848d95); |
| 17 |
padding: 7px; |
| 18 |
line-height: normal; |
| 19 |
} |
| 20 |
|
| 21 |
.bbp-voting a.vote { |
| 22 |
display: block !important; |
| 23 |
position: relative; |
| 24 |
overflow: visible; |
| 25 |
text-indent: -9999em; |
| 26 |
width: 0; |
| 27 |
height: 0; |
| 28 |
margin: 3px auto; |
| 29 |
border: 12px solid transparent !important; |
| 30 |
border-left-width: 12px !important; |
| 31 |
border-right-width: 12px !important; |
| 32 |
cursor: pointer; |
| 33 |
} |
| 34 |
|
| 35 |
.bbp-voting a.vote.up { |
| 36 |
border-bottom: 12px solid var(--black_400, #848d95) !important; |
| 37 |
border-top: none !important; |
| 38 |
} |
| 39 |
|
| 40 |
/** Outline button **/ |
| 41 |
.bbp-form .bbpc_attachments { |
| 42 |
.bbpc-attachment-addfile { |
| 43 |
width: 200px; |
| 44 |
text-align: center; |
| 45 |
padding: 6px 12px; |
| 46 |
border: 2px solid var(--bbpc_brand_color) !important; |
| 47 |
color: var(--bbpc_brand_color); |
| 48 |
text-decoration: none; |
| 49 |
border-radius: 4px; |
| 50 |
transition: background-color 200ms ease, color 200ms ease; |
| 51 |
margin-top: 10px; |
| 52 |
font-size: 14px; |
| 53 |
&:hover { |
| 54 |
background-color: var(--bbpc_brand_color); |
| 55 |
color: white; |
| 56 |
text-decoration: none !important; |
| 57 |
} |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
.bbp-voting a.vote.up:hover { |
| 62 |
border-bottom: 14px solid var(--bbpc_brand_color, #0073aa) !important; |
| 63 |
} |
| 64 |
|
| 65 |
.bbp-voting a.vote.down { |
| 66 |
border-top: 12px solid var(--black_400, #848d95) !important; |
| 67 |
border-bottom: none !important; |
| 68 |
} |
| 69 |
|
| 70 |
.bbp-voting a.vote.down:hover { |
| 71 |
border-top: 14px solid var(--bbpc_brand_color, #0073aa) !important; |
| 72 |
} |
| 73 |
|
| 74 |
.bbp-voting a.vote:not(.num-hide)::after { |
| 75 |
content: attr(data-votes); |
| 76 |
display: block; |
| 77 |
position: absolute; |
| 78 |
top: -10px; |
| 79 |
margin-left: 17px; |
| 80 |
text-indent: 0; |
| 81 |
text-align: left; |
| 82 |
color: #aaa; |
| 83 |
opacity: 0; |
| 84 |
transition: opacity 500ms ease; |
| 85 |
width: max-content; |
| 86 |
} |
| 87 |
|
| 88 |
.bbp-voting a.vote.num-hover:hover::after { |
| 89 |
opacity: 1; |
| 90 |
transition: opacity 200ms ease; |
| 91 |
} |
| 92 |
|
| 93 |
.bbp-voting a.vote.num-always-show::after { |
| 94 |
opacity: 1; |
| 95 |
} |
| 96 |
|
| 97 |
.bbpc_attachments { |
| 98 |
display: flex; |
| 99 |
flex-direction: column; |
| 100 |
gap: 10px; |
| 101 |
margin-bottom: 20px; |
| 102 |
} |
| 103 |
|
| 104 |
.bbp-voting .bbp-voting-label { |
| 105 |
font-size: 12px; |
| 106 |
padding: 5px 0; |
| 107 |
text-align: center; |
| 108 |
} |
| 109 |
|
| 110 |
.bbp-voting .bbp-voting-label.helpful { |
| 111 |
color: #1e851e; |
| 112 |
} |
| 113 |
|
| 114 |
.bbp-voting .bbp-voting-label.not-helpful { |
| 115 |
color: #992121; |
| 116 |
} |
| 117 |
|
| 118 |
.bbp-voting.voted-up:not(.admin-bypass) a.vote.up { |
| 119 |
border-bottom-color: green !important; |
| 120 |
} |
| 121 |
|
| 122 |
.bbp-voting.voted-down:not(.admin-bypass) a.vote.down { |
| 123 |
border-top-color: #a11717 !important; |
| 124 |
} |
| 125 |
|
| 126 |
.bbp-voting.view-only:not(.admin-bypass) a.vote { |
| 127 |
cursor: not-allowed !important; |
| 128 |
} |
| 129 |
|
| 130 |
.bbp-voting .upvote-amp { |
| 131 |
color: transparent; |
| 132 |
text-shadow: 0 0 0 green; |
| 133 |
} |
| 134 |
|
| 135 |
.bbp-voting .downvote-amp { |
| 136 |
color: transparent; |
| 137 |
text-shadow: 0 0 0 #a11717; |
| 138 |
} |
| 139 |
|
| 140 |
/* Theme Overrides */ |
| 141 |
.wp-theme-docy .main-post .bbp-voting { |
| 142 |
left: 25px; |
| 143 |
} |
| 144 |
|
| 145 |
.wp-theme-docy .bbp-private-reply .bbp-voting { |
| 146 |
left: 50px; |
| 147 |
} |
| 148 |
|
| 149 |
@media (max-width: 450px) { |
| 150 |
.bbp-private-reply .bbp-voting { |
| 151 |
margin-top: 45px; |
| 152 |
} |
| 153 |
} |
| 154 |
|
| 155 |
ul.bbp-topics .bbp-voting { |
| 156 |
float: left; |
| 157 |
} |
| 158 |
|
| 159 |
.bbp-voting-avatars { |
| 160 |
display: inline-block; |
| 161 |
padding: 15px 0 0 15px; |
| 162 |
} |
| 163 |
|
| 164 |
.bbp-voting-avatars .bbp-voting-avatar { |
| 165 |
display: inline-block; |
| 166 |
margin: -15px 0 0 -15px; |
| 167 |
} |
| 168 |
|
| 169 |
.bbp-voting-avatars .bbp-voting-avatar img { |
| 170 |
border-radius: 100px; |
| 171 |
border: 3px solid black !important; |
| 172 |
box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2) !important; |
| 173 |
} |
| 174 |
|
| 175 |
.bbp-voting-avatars .bbp-voting-avatar.up img { |
| 176 |
border-color: green !important; |
| 177 |
} |
| 178 |
|
| 179 |
.bbp-voting-avatars .bbp-voting-avatar.down img { |
| 180 |
border-color: #a11717 !important; |
| 181 |
} |
| 182 |
|
| 183 |
.bbp-voting-jump-to-answer { |
| 184 |
display: table; |
| 185 |
margin-top: 15px; |
| 186 |
padding: 10px; |
| 187 |
background-color: #ddefdd; |
| 188 |
} |
| 189 |
|
| 190 |
.bbp-voting-jump-to-answer a { |
| 191 |
font-size: 1.25em; |
| 192 |
} |
| 193 |
|
| 194 |
.bbp-voting-accepted-checkmark { |
| 195 |
margin-top: 15px; |
| 196 |
} |
| 197 |
|
| 198 |
.bbp-voting-accepted-checkmark > path { |
| 199 |
fill: green; |
| 200 |
} |
| 201 |
|
| 202 |
#bbpress-forums div.bbp-reply-content a.bbp-voting-accept-answer-button { |
| 203 |
display: inline-block; |
| 204 |
background-color: green; |
| 205 |
padding: 6px 12px; |
| 206 |
color: white; |
| 207 |
text-decoration: none; |
| 208 |
} |
| 209 |
|
| 210 |
#bbpress-forums div.bbp-reply-content a.bbp-voting-accept-answer-button:hover { |
| 211 |
background-color: #005700; |
| 212 |
} |
| 213 |
|
| 214 |
.bbp-voting-sort { |
| 215 |
display: block; |
| 216 |
clear: both; |
| 217 |
margin: 0.75em 0; |
| 218 |
} |
| 219 |
|
| 220 |
/* After User Avatar */ |
| 221 |
.forum-post-author + .bbp-voting { |
| 222 |
position: absolute; |
| 223 |
padding-top: 45px; |
| 224 |
} |
| 225 |
|