Customizing GWC-JS applications / Understanding GWC-JS widgets |
The Genero Web Client for JavaScript (GWC-JS) widget scss file contains the widget styles.
The scss files contain the colors, fonts and variables that define styles.
When the sass file is processed, it takes the variables you define for colors, for example $gbc-primary-medium-color, and outputs normal CSS with our variable values placed in the CSS.
.gbc_MyEditWidget { > .title { padding: 0 5px; font-size: 8pt; color: $gbc-primary-medium-color; text-transform: none; } > input { flex: 1 1 0; line-height: 32px; border-bottom: solid 2px $gbc-primary-light-color; } &.gbc_Focus > input { border-bottom: solid 2px $gbc-primary-medium-color; } }
A widget with a style in the form has a dedicated selector.
EDIT f01 = formonly.edt, STYLE="mystyle1 mystyle2 …";
You get a generated selector in the HTML structure:
class="… gbc_style_mystyle1 gbc_style_mystyle2 …"