Code Monkey home page Code Monkey logo

mui's Introduction

mui

兼容pc移动端的全局ui

属性目录:

变量说明

颜色值

// [color]
$color: (
    success: $green,
    error: $red,
    info: $blue,
    dark: $gray-dark,
    warning: $orange,
    fff: #ffffff
    c666: $c666,
    c999: $c999,
    aaa: $aaa,
    ccc: $ccc,
    gray-light: $gray-light,
    gray-lighter: $gray-lighter,
    gray-lightest: $gray-lightest
) !default;

边框方向类型

// [borderType]
$borderType: (
    l: 0 0 0 1px,
    r: 0 1px 0 0,
    t: 1px 0 0 0,
    b: 0 0 1px 0,
    lr: 0 1px,
    tb: 1px 0
) !default;

字体大小

// [fontSize]
$font: 8 10 12 14 16 18 20 24 28 32 40 45 !default;

边距大小

// [mpSize]
$mpSize: 5 10 15 20 25 30 40 45 50 55 60 70 80 90 100 !default;

圆角

// [radius]
$radius: 2 3 4 5 6 10 15 20 25 !default;

边框

移动端有前缀m-,实现利用的伪元素边框缩放

  • bd-[color]
  • m-bd-[borderType]
  • bd-[color]-[borderType]
  • bd-none
  • m-bd-none
  • radius-[radius]
  • no-outline

按钮

涉及尺寸的前缀均为 px-/rem-

  • [前缀]-btn
  • btn
  • btn-disabled
  • btn-[color]
  • btn-inverse
  • btn-block

颜色

颜色分为色值/背景色/边框色

  • color-[color]
  • bg-[color]
  • bd-[color]

字体

涉及尺寸的前缀均为 px-/rem-

  • font-0
  • [前缀]-font-[fontSize]

内外边距

涉及尺寸的前缀均为 px-/rem-

// [mpType]
$mpType: t r b l lr tb;
  • margin-auto
  • [前缀]-margin-[fontSize]-[mpType][mpSize]
  • [前缀]-padding-[fontSize]-[mpType][mpSize]

标签

涉及尺寸的前缀均为 px-/rem-

  • [前缀]-tag-[color]
  • [前缀]-tag-bg-[color]
  • tag-small

文本

// [align]
$align: left right center;
  • text-[align]
  • no-wrap
  • over-text
  • line-through
  • line-none

对齐方式

  • ib-top
  • ib-middle
  • ib-bottom

阴影

  • shadow-block
  • shadow-bottom
  • inner-shadow
  • shadow-block-big

手势

  • cursor-p
  • cursor-m

透明度

  • opacity-0
  • opacity-1

定位

  • fixed-top
  • fixed-bottom
  • top-0
  • left-0
  • right-0
  • bottom-0
  • z-index-[5 ~ 10]
  • [px/rem]-[top/left/right/bottom]-[mapSize]

更多请点击查看 utilities

编译

# compile
sass --watch _index.scss:../dist/mui.css --style compressed

mui's People

Contributors

jmingzi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.