Hi
It quite complicated to implement your question,
1. Learn carefully about LESS at
http://lesscss.org/#docs
2. Use when condition mixins
It seems we can not use the single checkboxes type for this case.
Here the steps:
1. Define variables (should be in variables.less)
@mod-border-top: 1; //can be 1 or 0 based on default value in xml file
@mod-border-right: 1;
.....
.....
@border-width: 10px;
2. Define mixins (can be in mixins.less file or any other files which you use to add style )
.mod-border-mixins() when (@mod-border-top = 1) {
border-top-width: @border-width;
}
.mod-border-mixins() when (@mod-border-top = 0) {
}
.mod-border-mixins() when (@mod-border-right = 1) {
border-right-width: @border-width;
}
.mod-border-mixins() when (@mod-border-right = 0) {
}
3. Use the mixins in css selector
.t3-module {
border-style: solid;
.mod-border-mixins();
}
4. Define thememagic variable
<field name="mod-border-top" type="radio" class="btn-group"
label="Border Top"
description="">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field name="mod-border-right" type="radio" class="btn-group"
label="Border Right"
description="">
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field name="border-width" type="text" class="input-small t3tm-dimension" label="Border width" default="10px" description="" />
Hope it helps,
Regards