/** 颜色变量**/@cpink:#c72c8b;//粉红色@red:#ff0000;//红色@yellow:#e9ea05;//黄色@Cyan:#99eff4;//青色@teal:#1c7997;//藏青色//文字颜色.color(@color:@teal){ color:@color;}//背景颜色.bgColor(@bgColor:@teal){ background-color:@bgColor;}// 元素尺寸.size(@w:100px,@h:100px){ width:@w; height:@h;}// 鼠标手势.pointer(@type:pointer) { cursor: @type;}// 行内块元素.inline() { display: inline-block;}// flex布局.flex(@justify:center,@align:center) { display: flex; justify-content: @justify; align-items: @align;}//超出换行.ellipsis() { white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}// 文字不换行.word-noWrap { word-break: break-all; word-wrap: break-word; white-space: normal;}// 标题一行,多余用省略号.text-overflow { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}// 边框.border(@color:red) { box-sizing: border-box; border: 1px solid @color;}// 内边距.paddin(@ori,@val)when(@ori=L) { padding-left: @val;}.paddin(@ori,@val)when(@ori=R) { padding-right: @val;}.paddin(@ori,@val)when(@ori=T) { padding-top: @val;}.paddin(@ori,@val)when(@ori=B) { padding-bottom: @val;}.padding(@val) { padding: @val;} // 背景图片.bgImg(@width:823.3px,@height:433.3px,@count:'1-1') { background: url('~@/assets/images/@{count}.png') no-repeat; background-size: @width @height; background-position: 0 0;} // 绝对定位.absolute(@left:100px,@top:100px) { position: absolute; left: @left; top: @top;} // 文字样式.text(@size:46px,@color:rgba(253, 253, 253, 1)) { font-size: @size; font-family: SimHei; font-weight: 400; color: @color;}