Theme Table Header Gradient

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mobhar
User
Posts: 11660

Theme Table Header Gradient

Post by mobhar »

In the older versions, PHPMaker implemented theme table header gradient setting on project theme basis. In other words, we used to decide whether to use gradient style or not for the table header, by adjusting the related settings from "Theme" settings.

Unfortunately, in the latest version (v2017), it seems the table header gradient setting is removed from the project setting, by defining it as hard-coded in "ew.scss" file as follows (by default, the value is true):
$ThemeTableHeaderGradient: true; // Set to false to disable table header gradient

I know we can simply change it to false, so that all the generated css theme style will not the gradient style. However, for some theme colors and for some projects, we need to use the gradient style, and some other we don't need the gradient style. Change that setting each time we want to generate is cumbersome.

That would be better if that gradient theme table header setting can be defined on project/theme basis. Thoughts?


Webmaster
User
Posts: 9425

Post by Webmaster »

Currently you can override it by adding User CSS styles, e.g.

.ewGrid .ewTable > thead > tr > th, .ewGrid .ewTable > thead > tr > td, .ewScrollableTable .ewScrollableTableHeader .ewScrollableTableOverhang {
@include gradient-vertical($start-color: $ThemeTableHeaderBackColor, $end-color: $ThemeTableHeaderBackColor);
}


mobhar
User
Posts: 11660

Post by mobhar »

Thank you, it works properly. However, that would be great if this can be handled from Theme variables setting instead of adding the css in user_styles section.


Post Reply