inherit
264279
0
Feb 5, 2024 17:01:15 GMT -8
shawnatdgk
59
May 2021
shawnatdgk
|
Post by shawnatdgk on Jun 30, 2023 6:28:07 GMT -8
the very light border around the cells on default home page. If I wanted to call that class from a code, which class would it be? thanks
|
|
#e61919
Support Staff
224482
0
1
Nov 20, 2024 14:55:04 GMT -8
Scott
“Asking for help isn't giving up... it's refusing to give up.”
24,492
August 2015
socalso
|
Post by Scott on Jul 3, 2023 11:27:16 GMT -8
shawnatdgk - You should be able to target it with: table.list>thead>tr>th, table.list>tbody>tr>td Or by going to Admin > Themes > Advanced Styles & CSS, Visual Editor, then Forum > Body (Content) > Lists (Boards, Threads, Posts...)
|
|
inherit
264279
0
Feb 5, 2024 17:01:15 GMT -8
shawnatdgk
59
May 2021
shawnatdgk
|
Post by shawnatdgk on Jul 7, 2023 17:45:08 GMT -8
thank ya kindly sir!
|
|
inherit
264279
0
Feb 5, 2024 17:01:15 GMT -8
shawnatdgk
59
May 2021
shawnatdgk
|
Post by shawnatdgk on Jul 8, 2023 9:02:23 GMT -8
Thanks again. Is there a way with javascript to fetch what hex color code the user chose for the border via Admin > Themes > Advanced Styles & CSS, Visual Editor, then Forum > Body (Content) > Lists (Boards, Threads, Posts...)?
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,016
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jul 8, 2023 11:29:44 GMT -8
Thanks again. Is there a way with javascript to fetch what hex color code the user chose for the border via Admin > Themes > Advanced Styles & CSS, Visual Editor, then Forum > Body (Content) > Lists (Boards, Threads, Posts...)? Lookup getComputedStyle if using native JavaScript or the .css() method if using jQuery Native JS:window.getComputedStyle(cell).getPropertyValue('color') /* returns the currently applied color value of the cell */
jQuery:$(cell).css('color') /* returns the currently applied color value of the cell */
In anticipation... const rgba2hex = (rgba) => `#${rgba.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+\.{0,1}\d*))?\)$/).slice(1).map((n, i) => (i === 3 ? Math.round(parseFloat(n) * 255) : parseFloat(n)).toString(16).padStart(2, '0').replace('NaN', '')).join('')}`
|
|