pip-webui
Version:
HTML5 UI for LOB applications
51 lines (40 loc) • 1.4 kB
text/less
// @file Sizing mixins
// @copyright Digital Living Software Corp. 2014-2015
.w(@size) { width: @size ; }
.min-w(@size) { min-width: @size ; }
.max-w(@size) { max-width: @size ; }
.h(@size) { height: @size ; }
.min-h(@size) { min-height: @size ; }
.max-h(@size) { max-height: @size ; }
.m(@size) { margin: @size ; }
.tm(@size) { margin-top: @size ; }
.bm(@size) { margin-bottom: @size ; }
.lm(@size) { margin-left: @size ; }
.rm(@size) { margin-right: @size ; }
.p(@size) { padding: @size ; }
.tp(@size) { padding-top: @size ; }
.bp(@size) { padding-bottom: @size ; }
.lp(@size) { padding-left: @size ; }
.rp(@size) { padding-right: @size ; }
.size(@width; @height) {
width: @width;
height: @height;
}
.square(@size) {
.size(@size; @size);
}
.circle(@size){
.size(@size; @size);
height: @size ;
border-radius: @size / 2;
}
.resizable(@direction) {
resize: @direction; // Options: horizontal, vertical, both
overflow: auto; // Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`
}
.box-sizing (@type: border-box) {
-webkit-box-sizing: @type;
-moz-box-sizing: @type;
-ms-box-sizing: @type;
box-sizing: @type;
}