Overriding Default Styles
Start by styling the default appearance of elements, such as buttons and input fields, to set a consistent base for any additional customization.
default-skin.css
.wg-body {
button:not(.skin){
background: #979797;
color: white;
border:0;
padding: 0.3rem 1rem;
}
dialog button:not(.skin){
background: #e4e4e4;
color: #272727;
border:0;
padding: 0.3rem 1rem;
}
}
For every button that will be customized later, add the skin
class. This allows the button to use the default styling unless a custom skin is specified.
<button data-onclick="add-activity" class="wg-btn-new-activity skin">
<span class="icon-mate-o">add</span>
</button>
https://vanillawebdev.blogspot.com/2024/11/css-styling-guide-on-skinning.html
https://www.blogger.com/blog/post/edit/8166404610182826392/2006482956518953115
https://www.blogger.com/blog/page/edit/8166404610182826392/2006482956518953115
CSS Styling Guide on Skinning
November 04, 2024
Overriding Default Styles
Start by styling the default appearance of elements, such as buttons and input fields, to set a consistent base for any additional customization.
default-skin.css
.wg-body {
button:not(.skin){
background: #979797;
color: white;
border:0;
padding: 0.3rem 1rem;
}
dialog button:not(.skin){
background: #e4e4e4;
color: #272727;
border:0;
padding: 0.3rem 1rem;
}
}
For every button that will be customized later, add the skin
class. This allows the button to use the default styling unless a custom skin is specified.
<button data-onclick="add-activity" class="wg-btn-new-activity skin">
<span class="icon-mate-o">add</span>
</button>
Comments
Post a Comment