dut
New Member
Posts: 42
inherit
267454
0
Nov 22, 2024 11:11:28 GMT -8
dut
42
January 2023
dut
|
Post by dut on Jan 18, 2024 11:47:18 GMT -8
Hello! Since I rely heavily on title bars or 'dividers' with coloured backgrounds to separate different sections of information in a post on my site, I was wondering if it was possible to create them with a tag or with a plugin, that automaticly changes the colours to theme colours when the user changes themes? It annoys me quite a bit when the theme is red, and the title"bars" are blue. Right now I cant achieve the look without using coloured tables: [table style="text-align:center;background-color:rgb(48, 55, 90);width:100%;"][tbody][tr][td][font color="#faf9f0"][b]Title here[/b][/font][/td][/tr][/tbody][/table]
text here Hope anyone can help!
|
|
Kami
Forum Cat
Posts: 40,203
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,203
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jan 18, 2024 13:55:27 GMT -8
Hello! Since I rely heavily on title bars or 'dividers' with coloured backgrounds to separate different sections of information in a post on my site, I was wondering if it was possible to create them with a tag or with a plugin, that automaticly changes the colours to theme colours when the user changes themes? It annoys me quite a bit when the theme is red, and the title"bars" are blue. Right now I cant achieve the look without using coloured tables: [table style="text-align:center;background-color:rgb(48, 55, 90);width:100%;"][tbody][tr][td][font color="#faf9f0"][b]Title here[/b][/font][/td][/tr][/tbody][/table]
text here Hope anyone can help! Plugin Request BoardDirecting you immediately to plugins, as this is not possible within theme settings or even layout templates. You may also want to check the [ Style Tag Plugin] and see if its [newclass] function will allow you to declare the properties of that class in the individual theme CSS -- not sure if that works that way but it's worth trying out.
|
|
dut
New Member
Posts: 42
inherit
267454
0
Nov 22, 2024 11:11:28 GMT -8
dut
42
January 2023
dut
|
Post by dut on Jan 18, 2024 13:58:21 GMT -8
alright! Thank you!
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Feb 7, 2024 13:38:38 GMT -8
As you've probably concluded, BBCode tags don't generally allow classes, but there was one exception introduced as a byproduct of the work that was done on V6 with TABLE, TD, and TH now retaining a class. With those, we now have the ability to create a class hierarchy within posts to mimic some UI elements and inherit the CSS rules that apply to those elements. Unfortunately, the .title-bar is required to be a direct descendant of .container in order to get the rule applied to it, and tables alone cannot accomplish that... Dialog title-bars which are generally identical to container title-bars do not have this issue however so a code such as [table class="ui-dialog"][tbody][tr][td class="ui-dialog-titlebar"][table class="ui-dialog-title"][tbody][tr][td]Row 1 column 1[/td][/tr][/tbody][/table][/td][/tr][/tbody][/table] would produce Barring that solution, there is the Styles plugin, which will give you the ability to apply a class to any in-post element, thus giving you the widest ability to build the .container>.title-bar h2 CSS hierarchy within the post and have the CSS rule then apply to your title-bar element.
|
|
dut
New Member
Posts: 42
inherit
267454
0
Nov 22, 2024 11:11:28 GMT -8
dut
42
January 2023
dut
|
Post by dut on Jun 5, 2024 11:09:26 GMT -8
Thank you! Do you know if its possible to center and "stretch" the created element so it becomes a bar that fits the width of the post?`Or would I need the styles plugin to achieve that?
|
|
dut
New Member
Posts: 42
inherit
267454
0
Nov 22, 2024 11:11:28 GMT -8
dut
42
January 2023
dut
|
Post by dut on Jun 11, 2024 3:29:11 GMT -8
or, do you know the code needed for me to use in the styles plugin, so the colors matches the current theme?
|
|
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,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Jun 11, 2024 6:31:14 GMT -8
[table style="width:100%"][tbody][tr][td class="avatar-wrapper"][div style="height:2.5rem"][table class="ui-dialog" style="width:100%"][tbody][tr][td class="ui-dialog-titlebar"][table class="ui-dialog-title" style="width:100%"][tbody][tr][td]Row 1 column 1[/td][/tr][/tbody][/table][/td][/tr][/tbody][/table][/div][/td][/tr][/tbody][/table]
|
|