PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.4.3
Forumax – AI Powered Advanced Community Forum Plugin v2.4.3
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
bbp-core / assets / frontend / voting / bbpc-voting.css

bbpc-voting.css in Forumax – AI Powered Advanced Community Forum Plugin 2.4.3, at assets/frontend/voting/bbpc-voting.css

239 lines 4.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .bbp-voting {
2 margin: 20px 0;
3 padding-right: 10px;
4 min-width: 60px;
5 left: -7px;
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 display: inline-flex;
44 align-items: center;
45 justify-content: center;
46 width: fit-content;
47 padding: 6px 16px;
48 background-color: #f8f9fa;
49 border: 1px dashed #ced4da;
50 color: #495057;
51 text-decoration: none;
52 border-radius: 4px;
53 font-size: 14px;
54 font-weight: 500;
55 margin-top: 10px;
56 transition: all 0.2s ease;
57
58 &:hover {
59 background-color: #e9ecef;
60 border-color: #adb5bd;
61 color: #212529;
62 text-decoration: none;
63 box-shadow: none;
64 }
65 }
66 }
67
68 .bbp-voting a.vote.up:hover {
69 border-bottom: 14px solid var(--bbpc_brand_color, #0073aa) !important;
70 }
71
72 .bbp-voting a.vote.down {
73 border-top: 12px solid var(--black_400, #848d95) !important;
74 border-bottom: none !important;
75 }
76
77 .bbp-voting a.vote.down:hover {
78 border-top: 14px solid var(--bbpc_brand_color, #0073aa) !important;
79 }
80
81 .bbp-voting a.vote:not(.num-hide)::after {
82 content: attr(data-votes);
83 display: block;
84 position: absolute;
85 top: -10px;
86 margin-left: 17px;
87 text-indent: 0;
88 text-align: left;
89 color: #aaa;
90 opacity: 0;
91 transition: opacity 500ms ease;
92 width: max-content;
93 }
94
95 .bbp-voting a.vote.num-hover:hover::after {
96 opacity: 1;
97 transition: opacity 200ms ease;
98 }
99
100 .bbp-voting a.vote.num-always-show::after {
101 opacity: 1;
102 }
103
104 .bbpc_attachments {
105 display: flex;
106 flex-direction: column;
107 gap: 10px;
108 }
109
110 .bbp-voting .bbp-voting-label {
111 font-size: 12px;
112 padding: 5px 0;
113 text-align: center;
114 }
115
116 .bbp-voting .bbp-voting-label.helpful {
117 color: #1e851e;
118 }
119
120 .bbp-voting .bbp-voting-label.not-helpful {
121 color: #992121;
122 }
123
124 .bbp-voting.voted-up:not(.admin-bypass) a.vote.up {
125 border-bottom-color: green !important;
126 }
127
128 .bbp-voting.voted-down:not(.admin-bypass) a.vote.down {
129 border-top-color: #a11717 !important;
130 }
131
132 .bbp-voting.view-only:not(.admin-bypass) a.vote {
133 cursor: not-allowed !important;
134 }
135
136 .bbp-voting .upvote-amp {
137 color: transparent;
138 text-shadow: 0 0 0 green;
139 }
140
141 .bbp-voting .downvote-amp {
142 color: transparent;
143 text-shadow: 0 0 0 #a11717;
144 }
145
146 /* Theme Overrides */
147 .wp-theme-docy .main-post .bbp-voting {
148 left: 25px;
149 }
150
151 @media (max-width: 450px) {
152 .bbp-private-reply .bbp-voting {
153 margin-top: 45px;
154 }
155 }
156
157 ul.bbp-topics .bbp-voting {
158 float: left;
159 }
160
161 .bbp-voting-avatars {
162 display: inline-block;
163 padding: 15px 0 0 15px;
164 }
165
166 .bbp-voting-avatars .bbp-voting-avatar {
167 display: inline-block;
168 margin: -15px 0 0 -15px;
169 }
170
171 .bbp-voting-avatars .bbp-voting-avatar img {
172 border-radius: 100px;
173 border: 3px solid black !important;
174 box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2) !important;
175 }
176
177 .bbp-voting-avatars .bbp-voting-avatar.up img {
178 border-color: green !important;
179 }
180
181 .bbp-voting-avatars .bbp-voting-avatar.down img {
182 border-color: #a11717 !important;
183 }
184
185 .bbp-voting-jump-to-answer {
186 display: table;
187 margin-top: 15px;
188 padding: 10px;
189 background-color: #ddefdd;
190 }
191
192 .bbp-voting-jump-to-answer a {
193 font-size: 1.25em;
194 }
195
196 .bbp-voting-accepted-checkmark {
197 margin-top: 15px;
198 }
199
200 .bbp-voting-accepted-checkmark>path {
201 fill: green;
202 }
203
204 #bbpress-forums div.bbp-reply-content a.bbp-voting-accept-answer-button {
205 display: inline-block;
206 background-color: green;
207 padding: 6px 12px;
208 color: white;
209 text-decoration: none;
210 }
211
212 #bbpress-forums div.bbp-reply-content a.bbp-voting-accept-answer-button:hover {
213 background-color: #005700;
214 }
215
216 .bbp-voting-sort {
217 display: block;
218 clear: both;
219 margin: 0.75em 0;
220 }
221
222 /* After User Avatar */
223 .forum-post-author+.bbp-voting {
224 position: static;
225 padding-top: 0;
226 float: left;
227 margin-right: 15px;
228 }
229
230 /* Ensure parent container has relative positioning for nested replies */
231 .forum-comment {
232 position: relative;
233 }
234
235 .bbp-author-wrap {
236 display: flex;
237 align-items: flex-start;
238 gap: 10px;
239 }