zoukankan      html  css  js  c++  java
  • 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;
      }
    }
  • 相关阅读:
    .NET 4.5 is an in-place replacement for .NET 4.0
    python Argparse模块的使用
    linux的fork(), vfork()区别
    Linux 的 strace 命令
    NTFS系统的ADS交换数据流
    Git和.gitignore
    GIT常用命令
    OSChina码云试用
    tcpdump用法
    linux网卡混杂模式
  • 原文地址:https://www.cnblogs.com/min77/p/14205121.html
Copyright © 2011-2022 走看看