需求:仅记录Lsee常用变量与方法定义,便于使用。……

@color: #000;
@title-color: #000;
@bg-color: #fff;
@small-font: 12px;
@large-font: 24px;
.set-layout(@f, @j, @a){
    display: @f;
    justify-content: @j;
    align-items: @a;
}

.flex-layout-jc(@j, @a) {
  display: flex;
  justify-content: @j;
  align-items: @a;
}

.set-position(@p, @t, @r, @l, @b) {
    position: @p;
    top: @t;
    right: @r;
    left: @l;
    bottom: @b;
}

.set-wh(@w, @h) {
    width: @w;
    height: @h;
}

.set-font(@s, @c, @w) {
    font-size: @s;
    font-weight: @w;
    color: @c;
}

.set-button(@bg, @c, @fs) {
    background: @bg;
  box-shadow: 0 2px 13px -2px rgba(50,102,232,0.20);
  border: 1px solid @bg;
  border-radius: 2px;
  font-size: @fs;
  color: @c;
  margin-right: 10px;
  padding: 5px;
  cursor: pointer;
  outline: none;
}

.set-background(@bg){
    background: @bg;
}

.set-icon-button{
    display: inline-block;  
  font-size: 12px;
  color: #333333;
  text-align: left;
  line-height: 12px;
  cursor: pointer;
  .flex-layout-jc(flex-start, center);
  img{
      width: 16px;
      height: 14px;
      margin: 0 5px 0 10px;
      vertical-align: text-top;
  }
}

 

posted on 2020-12-29 10:20  羽丫头不乖  阅读(248)  评论(0编辑  收藏  举报