Hi
We are using T4 2.2.3 plugin with BS5 Blank 1.1.6 template.
We have noticed that T4 plugin creates a css file in '/media/t4/css' folder for each template style so in our case it's 17.css and 18.css.
These css files contain colour overrides and font overrides.
In addition, these files contain padding and margin values per section set in "Section Name" -> "Configure" -> "Row Options" -> "Responsive" tab. This allows to enter desired padding and margin per each 5 layouts e.g. desktop or mobile.
The problem is if you don't enter any padding and margin values, the plugin still creates CSS styles for each section ID and every breakpoint and puts no value for "margin" and "padding" e.g.
/* Section: section-4 */
#t4-section-4 .bg-overlay {
opacity: 0.5;
}
#t4-section-4{
margin:;
padding:;
}
@media only screen and (min-width: 576px) {
#t4-section-4{
margin:;
padding:;
}
}
@media only screen and (min-width: 768px) {
#t4-section-4{
margin:;
padding:;
}
}
@media only screen and (min-width: 992px) {
#t4-section-4{
margin:;
padding:;
}
}
@media only screen and (min-width: 1200px) {
#t4-section-4{
margin:;
padding:;
}
}
/* Section: home-contact */
#t4-home-contact .bg-overlay {
opacity: 0.5;
}
#t4-home-contact{
margin:;
padding:;
}
@media only screen and (min-width: 576px) {
#t4-home-contact{
margin:;
padding:;
}
}
@media only screen and (min-width: 768px) {
#t4-home-contact{
margin:;
padding:;
}
}
@media only screen and (min-width: 992px) {
#t4-home-contact{
margin:;
padding:;
}
}
@media only screen and (min-width: 1200px) {
#t4-home-contact{
margin:;
padding:;
}
}
This must be a bug as it our case it's hundreds of lines of CSS with errors. For users it's a waste of downloaded data. What it should do is - when no value is entered in 'padding' or 'margin' per breakpoint, no CSS is generated for it per section ID.
Could you, please, look into it?