dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
50 lines (42 loc) • 870 B
text/less
@import "variables.less";
@import "../common/ToggleButton.less";
.mblToggleButton {
&:before {
content: '';
position: absolute;
width: 30px;
height: 30px;
top: 0px;
border: 2px solid @win-foreground-color;
}
&:active:not([disabled]):before {
background-color: @win-accent-color;
}
&:after {
position: absolute;
content: "";
.mblToggleButtonChecked-after-styles;
border-style: none solid solid none;
.transform(rotate(45deg) skew(10deg));
.transform-origin(50% 50%);
}
}
.mblToggleButtonChecked,
.mblToggleButtonSelected[aria-pressed='true'] {
&:before {
background-color: @win-foreground-color;
}
&:after {
border-color: @win-bg-color ;
}
}
.mblToggleButton[disabled] {
&:before {
border-color: @win-disabled-color;
}
&.mblToggleButtonChecked{
&:before {
background-color: @win-disabled-color;
}
}
}