Dynamically set Sass variables in Foundation

后端 未结 1 622
别那么骄傲
别那么骄傲 2021-01-26 05:26

How do you dynamically set Sass variables in Foundation? According to their docs, you can customize a table with the help of a few Sass variables in _settings.scss,

相关标签:
1条回答
  • 2021-01-26 06:14

    Foundation does not offer any special constructs for tables that come in multiple colors. If you want to have 2 different styles for tables, you do it the same way you would with vanilla CSS.

    table.with-alternate-colors {
        th {
            background: blue
        }
    
        // etc.
    }
    

    If you want to see all of the styles that Foundation applies to tables so that you know what you need to override, you can find that information by browsing their repo

    Note: While you could use that table mixin, I don't recommend unless you were changing everything about the way the table is styled.

    0 讨论(0)
提交回复
热议问题