• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Reference xenforo color pallet with Vaultwiki table

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Results 1 to 8 of 8

    Thread: Reference xenforo color pallet with Vaultwiki table

    • Thread Tools
      • Show Printable Version
    1. August 9, 2018 #1
      expanserpb
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      expanserpb is offline
      Junior Member
      Join Date
      November 8, 2017
      Posts
      25
      Rep Power
      105

      Reference xenforo color pallet with Vaultwiki table

      I'm using vaultwiki tables for a number of templates.

      What I'd like to do is reference Xenforo colors directly so that the tables match the theme that is in use.

      For example @mutedTextColor

      The example calls on a class "primaryContent" but I'm not certain what other classes I could reference. I tried adding a custom class to extra.css:

      .infoboxheader
      {
      background-color: @primaryLight;
      color: @uix_primaryColor;
      }


      Tried to call on that from the template with class= but that also didn't seem to stick.

      Any advice on the matter @pegasus ?
      Reply With Quote Reply With Quote

    2. August 10, 2018 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      If you have a custom class you would like to you, you need to add it to table's whitelist before it will be rendered; otherwise users could use any class name, which could lead to security issues. Go to your BB-Code Manager, and edit the TABLE BB-Code. In the Wiki-Related Options, you should find a whitelisting section.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. August 10, 2018 #3
      expanserpb
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      expanserpb is offline
      Junior Member
      Join Date
      November 8, 2017
      Posts
      25
      Rep Power
      105
      Much appreciated, hadn't even looked at the options in that tab. Are they in the manual anywhere?
      Reply With Quote Reply With Quote

    4. August 10, 2018 #4
      expanserpb
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      expanserpb is offline
      Junior Member
      Join Date
      November 8, 2017
      Posts
      25
      Rep Power
      105
      Working!
      Reply With Quote Reply With Quote

    5. August 10, 2018 #5
      expanserpb
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      expanserpb is offline
      Junior Member
      Join Date
      November 8, 2017
      Posts
      25
      Rep Power
      105
      Any reason it doesn't draw through border colours?

      .bbtableheader
      {
      background-color: @textCtrlBackground;
      color: @textCtrlText;
      border-style: solid;
      border-width; 4px
      border-color: @uix_primaryColor;
      }
      Reply With Quote Reply With Quote

    6. August 10, 2018 #6
      expanserpb
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      expanserpb is offline
      Junior Member
      Join Date
      November 8, 2017
      Posts
      25
      Rep Power
      105
      Borders work when the class is applied to the whole table, but not a row. Background and font always work
      Reply With Quote Reply With Quote

    7. August 10, 2018 #7
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      This might be a limitation of CSS/HTML. On TR tags, it looks like you need to use the outline property instead of border (ref: https://stackoverflow.com/questions/...ows-in-a-table)

      Alternatively, you would have to specify border-collapse: collapse on the whole table, in order to use TR border. This might have undesired results depending on your table style.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    8. August 10, 2018 #8
      expanserpb
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      expanserpb is offline
      Junior Member
      Join Date
      November 8, 2017
      Posts
      25
      Rep Power
      105
      I'll have a good play, thanks for the help.

      Oddly setting the style for borders within a row works fine:

      | class="bbtablesubheader" colspan="2" style="border-top: 2px solid #{{{Border|C1CDCD}}}; border-bottom: 2px solid #{{{Border|C1CDCD}}}" | Personal Details
      |-

      But it won't take it from the class.
      Reply With Quote Reply With Quote

    Similar Threads

    1. VaultWiki & XenForo 2.x
      By hollosch in forum General Discussion
      Replies: 6
      Last Post: December 30, 2017, 10:31 PM
    2. Table border color V3.0.17
      By camoit in forum VaultWiki Questions
      Replies: 2
      Last Post: November 26, 2012, 4:47 PM
    3. First Rows of a table in color
      By sKippah in forum VaultWiki Questions
      Replies: 7
      Last Post: August 15, 2010, 4:07 AM
    4. VaultWiki[table] tag and BBCode [table]
      By SAS in forum Pre-Sales Questions
      Replies: 2
      Last Post: August 3, 2009, 2:35 PM

    Tags for this Thread

    color, reference, tables, xenforo

    View Tag Cloud

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 2:10 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.