react-jam-ui
Version:
React JAM UI components
36 lines (31 loc) • 940 B
text/stylus
$default = json('default.json', { hash: true });
$layoutDefault = json('../Layout/default.json', { hash: true });
$custom = json('../../../../ui.config.json', { hash: true, optional: true });
$checkboxes = typeof($custom) != 'null' ? $custom.$checkboxes : $default.$checkboxes;
$sizes = typeof($custom) != 'null' ? $custom.$sizes : $layoutDefault.$sizes;
@import 'themes/default.styl';
@import 'themes/simple.styl';
.checkbox {
font-weight: 400;
position: relative;
input {
}
label {
margin: 0;
font-weight: 400;
cursor: pointer;
}
for type, params in $checkboxes {
if (type == 'default') {
& {
define('name', params.theme)
checkbox-{name}(params)
}
} else {
&.checkbox-{type} {
define('name', params.theme)
checkbox-{name}(params)
}
}
}
}