• Less常用变量与方法记录


    需求:仅记录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) {
         @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{
           16px;
          height: 14px;
          margin: 0 5px 0 10px;
          vertical-align: text-top;
      }
    }
  • 相关阅读:
    python 核心编程 第十三章
    pytho 核心编程 第十二章
    python 核心编程 第十章
    python 核心编程 第九章
    python核心编程 第八章
    python 核心编程第七章
    面试题总结(61-100)
    面试题总结(41-60)
    面试题总结(21-40)
    面试题总结(1-20)
  • 原文地址:https://www.cnblogs.com/min77/p/14205121.html
Copyright © 2020-2023  润新知