拼写错误

This commit is contained in:
2betop 2020-04-14 17:41:53 +08:00
parent 8c70536245
commit 733b83c72e
1 changed files with 622 additions and 217 deletions

View File

@ -17,278 +17,683 @@ amis 集成了 [fontawesome](http://fontawesome.io/icons/),所以关于图标
```html ```html
<div class="hbox b-a"> <div class="hbox b-a">
<div class="col wrapper-sm bg-success">Col A</div> <div class="col wrapper-sm bg-success">Col A</div>
<div class="col wrapper-sm bg-info">Col B</div> <div class="col wrapper-sm bg-info">Col B</div>
<div class="col wrapper-sm bg-danger">Col C</div> <div class="col wrapper-sm bg-danger">Col C</div>
</div> </div>
``` ```
## 宽高 ## 宽高
```css ```css
.w-1x { width: 1em; } .w-1x {
.w-2x { width: 2em; } width: 1em;
.w-3x { width: 3em; } }
.w-xxs { width: 60px; } .w-2x {
.w-xs { width: 90px; } width: 2em;
.w-sm { width: 150px; } }
.w { width: 200px; } .w-3x {
.w-md { width: 240px; } width: 3em;
.w-lg { width: 280px; } }
.w-xl { width: 320px; } .w-xxs {
.w-xxl { width: 360px; } width: 60px;
.w-full { width: 100%; } }
.w-auto { width: auto; } .w-xs {
.h-auto { height: auto; } width: 90px;
.h-full { height: 100% !important; max-height: none !important; } }
.w-sm {
width: 150px;
}
.w {
width: 200px;
}
.w-md {
width: 240px;
}
.w-lg {
width: 280px;
}
.w-xl {
width: 320px;
}
.w-xxl {
width: 360px;
}
.w-full {
width: 100%;
}
.w-auto {
width: auto;
}
.h-auto {
height: auto;
}
.h-full {
height: 100% !important;
max-height: none !important;
}
``` ```
```html ```html
<div class="hbox b-a bg-primary"> <div class="hbox b-a bg-primary">
<div class="col wrapper-sm b-r w-1x">w-1x</div> <div class="col wrapper-sm b-r w-1x">w-1x</div>
<div class="col wrapper-sm b-r w-2x">w-2x</div> <div class="col wrapper-sm b-r w-2x">w-2x</div>
<div class="col wrapper-sm b-r w-3x">w-3x</div> <div class="col wrapper-sm b-r w-3x">w-3x</div>
<div class="col wrapper-sm b-r w-xxs">w-xxs</div> <div class="col wrapper-sm b-r w-xxs">w-xxs</div>
<div class="col wrapper-sm b-r w-xs">w-xs</div> <div class="col wrapper-sm b-r w-xs">w-xs</div>
<div class="col wrapper-sm b-r w-sm">w-sm</div> <div class="col wrapper-sm b-r w-sm">w-sm</div>
<div class="col wrapper-sm b-r w">w</div> <div class="col wrapper-sm b-r w">w</div>
<div class="col wrapper-sm lter">...</div> <div class="col wrapper-sm lter">...</div>
</div> </div>
<div class="hbox b-a bg-primary m-t"> <div class="hbox b-a bg-primary m-t">
<div class="col wrapper-sm b-r w-md">w-md</div> <div class="col wrapper-sm b-r w-md">w-md</div>
<div class="col wrapper-sm b-r w-lg">w-lg</div> <div class="col wrapper-sm b-r w-lg">w-lg</div>
<div class="col wrapper-sm b-r w-xl">w-xl</div> <div class="col wrapper-sm b-r w-xl">w-xl</div>
<div class="col wrapper-sm lter">...</div> <div class="col wrapper-sm lter">...</div>
</div> </div>
<div class="hbox b-a bg-primary m-t"> <div class="hbox b-a bg-primary m-t">
<div class="col wrapper-sm b-r w-xxl">w-xxl</div> <div class="col wrapper-sm b-r w-xxl">w-xxl</div>
<div class="col wrapper-sm lter">...</div> <div class="col wrapper-sm lter">...</div>
</div> </div>
``` ```
## 外边距 ## 外边距
```css ```css
.m-xxs { margin: 2px 4px } .m-xxs {
.m-xs { margin: 5px; } margin: 2px 4px;
.m-sm { margin: 10px; } }
.m { margin: 15px; } .m-xs {
.m-md { margin: 20px; } margin: 5px;
.m-lg { margin: 30px; } }
.m-xl { margin: 50px; } .m-sm {
.m-n { margin: 0 !important } margin: 10px;
.m-l-none { margin-left: 0 !important } }
.m-l-xs { margin-left: 5px; } .m {
.m-l-sm { margin-left: 10px; } margin: 15px;
.m-l { margin-left: 15px } }
.m-l-md { margin-left: 20px; } .m-md {
.m-l-lg { margin-left: 30px; } margin: 20px;
.m-l-xl { margin-left: 40px; } }
.m-l-xxl { margin-left: 50px; } .m-lg {
.m-l-n-xxs { margin-left: -1px } margin: 30px;
.m-l-n-xs { margin-left: -5px } }
.m-l-n-sm { margin-left: -10px } .m-xl {
.m-l-n { margin-left: -15px } margin: 50px;
.m-l-n-md { margin-left: -20px } }
.m-l-n-lg { margin-left: -30px } .m-n {
.m-l-n-xl { margin-left: -40px } margin: 0 !important;
.m-l-n-xxl { margin-left: -50px } }
.m-t-none { margin-top: 0 !important } .m-l-none {
.m-t-xxs { margin-top: 1px; } margin-left: 0 !important;
.m-t-xs { margin-top: 5px; } }
.m-t-sm { margin-top: 10px; } .m-l-xs {
.m-t { margin-top: 15px } margin-left: 5px;
.m-t-md { margin-top: 20px; } }
.m-t-lg { margin-top: 30px; } .m-l-sm {
.m-t-xl { margin-top: 40px; } margin-left: 10px;
.m-t-xxl { margin-top: 50px; } }
.m-t-n-xxs { margin-top: -1px } .m-l {
.m-t-n-xs { margin-top: -5px } margin-left: 15px;
.m-t-n-sm { margin-top: -10px } }
.m-t-n { margin-top: -15px } .m-l-md {
.m-t-n-md { margin-top: -20px } margin-left: 20px;
.m-t-n-lg { margin-top: -30px } }
.m-t-n-xl { margin-top: -40px } .m-l-lg {
.m-t-n-xxl { margin-top: -50px } margin-left: 30px;
.m-r-none { margin-right: 0 !important } }
.m-r-xxs { margin-right: 1px } .m-l-xl {
.m-r-xs { margin-right: 5px } margin-left: 40px;
.m-r-sm { margin-right: 10px } }
.m-r { margin-right: 15px } .m-l-xxl {
.m-r-md { margin-right: 20px } margin-left: 50px;
.m-r-lg { margin-right: 30px } }
.m-r-xl { margin-right: 40px } .m-l-n-xxs {
.m-r-xxl { margin-right: 50px } margin-left: -1px;
.m-r-n-xxs { margin-right: -1px } }
.m-r-n-xs { margin-right: -5px } .m-l-n-xs {
.m-r-n-sm { margin-right: -10px } margin-left: -5px;
.m-r-n { margin-right: -15px } }
.m-r-n-md { margin-right: -20px } .m-l-n-sm {
.m-r-n-lg { margin-right: -30px } margin-left: -10px;
.m-r-n-xl { margin-right: -40px } }
.m-r-n-xxl { margin-right: -50px } .m-l-n {
.m-b-none { margin-bottom: 0 !important } margin-left: -15px;
.m-b-xxs { margin-bottom: 1px; } }
.m-b-xs { margin-bottom: 5px; } .m-l-n-md {
.m-b-sm { margin-bottom: 10px; } margin-left: -20px;
.m-b { margin-bottom: 15px; } }
.m-b-md { margin-bottom: 20px; } .m-l-n-lg {
.m-b-lg { margin-bottom: 30px; } margin-left: -30px;
.m-b-xl { margin-bottom: 40px; } }
.m-b-xxl { margin-bottom: 50px; } .m-l-n-xl {
.m-b-n-xxs { margin-bottom: -1px } margin-left: -40px;
.m-b-n-xs { margin-bottom: -5px } }
.m-b-n-sm { margin-bottom: -10px } .m-l-n-xxl {
.m-b-n { margin-bottom: -15px } margin-left: -50px;
.m-b-n-md { margin-bottom: -20px } }
.m-b-n-lg { margin-bottom: -30px } .m-t-none {
.m-b-n-xl { margin-bottom: -40px } margin-top: 0 !important;
.m-b-n-xxl { margin-bottom: -50px } }
.m-t-xxs {
margin-top: 1px;
}
.m-t-xs {
margin-top: 5px;
}
.m-t-sm {
margin-top: 10px;
}
.m-t {
margin-top: 15px;
}
.m-t-md {
margin-top: 20px;
}
.m-t-lg {
margin-top: 30px;
}
.m-t-xl {
margin-top: 40px;
}
.m-t-xxl {
margin-top: 50px;
}
.m-t-n-xxs {
margin-top: -1px;
}
.m-t-n-xs {
margin-top: -5px;
}
.m-t-n-sm {
margin-top: -10px;
}
.m-t-n {
margin-top: -15px;
}
.m-t-n-md {
margin-top: -20px;
}
.m-t-n-lg {
margin-top: -30px;
}
.m-t-n-xl {
margin-top: -40px;
}
.m-t-n-xxl {
margin-top: -50px;
}
.m-r-none {
margin-right: 0 !important;
}
.m-r-xxs {
margin-right: 1px;
}
.m-r-xs {
margin-right: 5px;
}
.m-r-sm {
margin-right: 10px;
}
.m-r {
margin-right: 15px;
}
.m-r-md {
margin-right: 20px;
}
.m-r-lg {
margin-right: 30px;
}
.m-r-xl {
margin-right: 40px;
}
.m-r-xxl {
margin-right: 50px;
}
.m-r-n-xxs {
margin-right: -1px;
}
.m-r-n-xs {
margin-right: -5px;
}
.m-r-n-sm {
margin-right: -10px;
}
.m-r-n {
margin-right: -15px;
}
.m-r-n-md {
margin-right: -20px;
}
.m-r-n-lg {
margin-right: -30px;
}
.m-r-n-xl {
margin-right: -40px;
}
.m-r-n-xxl {
margin-right: -50px;
}
.m-b-none {
margin-bottom: 0 !important;
}
.m-b-xxs {
margin-bottom: 1px;
}
.m-b-xs {
margin-bottom: 5px;
}
.m-b-sm {
margin-bottom: 10px;
}
.m-b {
margin-bottom: 15px;
}
.m-b-md {
margin-bottom: 20px;
}
.m-b-lg {
margin-bottom: 30px;
}
.m-b-xl {
margin-bottom: 40px;
}
.m-b-xxl {
margin-bottom: 50px;
}
.m-b-n-xxs {
margin-bottom: -1px;
}
.m-b-n-xs {
margin-bottom: -5px;
}
.m-b-n-sm {
margin-bottom: -10px;
}
.m-b-n {
margin-bottom: -15px;
}
.m-b-n-md {
margin-bottom: -20px;
}
.m-b-n-lg {
margin-bottom: -30px;
}
.m-b-n-xl {
margin-bottom: -40px;
}
.m-b-n-xxl {
margin-bottom: -50px;
}
``` ```
## 内边距 ## 内边距
```css ```css
.wrapper-xs { padding: 5px; } .wrapper-xs {
.wrapper-sm { padding: 10px; } padding: 5px;
.wrapper { padding: 15px; } }
.wrapper-md { padding: 20px; } .wrapper-sm {
.wrapper-lg { padding: 30px; } padding: 10px;
.wrapper-xl { padding: 50px; } }
.padder-xs { padding-left: 5px; padding-right: 5px } .wrapper {
.padder-sm { padding-left: 10px; padding-right: 10px } padding: 15px;
.padder-lg { padding-left: 30px; padding-right: 30px } }
.padder-md { padding-left: 20px; padding-right: 20px } .wrapper-md {
.padder { padding-left: 15px; padding-right: 15px } padding: 20px;
.padder-v-xs { padding-top: 5px; padding-bottom: 5px } }
.padder-v-sm { padding-top: 10px; padding-bottom: 10px } .wrapper-lg {
.padder-v-lg { padding-top: 30px; padding-bottom: 30px } padding: 30px;
.padder-v-md { padding-top: 20px; padding-bottom: 20px } }
.padder-v { padding-top: 15px; padding-bottom: 15px } .wrapper-xl {
.no-padder { padding: 0 !important; } padding: 50px;
.pull-in { margin-left: -15px; margin-right: -15px; } }
.pull-out { margin: -10px -15px; } .padder-xs {
padding-left: 5px;
padding-right: 5px;
}
.padder-sm {
padding-left: 10px;
padding-right: 10px;
}
.padder-lg {
padding-left: 30px;
padding-right: 30px;
}
.padder-md {
padding-left: 20px;
padding-right: 20px;
}
.padder {
padding-left: 15px;
padding-right: 15px;
}
.padder-v-xs {
padding-top: 5px;
padding-bottom: 5px;
}
.padder-v-sm {
padding-top: 10px;
padding-bottom: 10px;
}
.padder-v-lg {
padding-top: 30px;
padding-bottom: 30px;
}
.padder-v-md {
padding-top: 20px;
padding-bottom: 20px;
}
.padder-v {
padding-top: 15px;
padding-bottom: 15px;
}
.no-padder {
padding: 0 !important;
}
.pull-in {
margin-left: -15px;
margin-right: -15px;
}
.pull-out {
margin: -10px -15px;
}
``` ```
## 边框 ## 边框
```css ```css
.b { border: 1px solid rgba(0, 0, 0, 0.05) } .b {
.b-a { border: 1px solid @border-color } border: 1px solid rgba(0, 0, 0, 0.05);
.b-t { border-top: 1px solid @border-color } }
.b-r { border-right: 1px solid @border-color } .b-a {
.b-b { border-bottom: 1px solid @border-color } border: 1px solid @border-color;
.b-l { border-left: 1px solid @border-color } }
.b-light { border-color: @brand-light } .b-t {
.b-dark { border-color: @brand-dark } border-top: 1px solid @border-color;
.b-black { border-color: @brand-dark } }
.b-primary { border-color: @brand-primary } .b-r {
.b-success { border-color: @brand-success } border-right: 1px solid @border-color;
.b-info { border-color: @brand-info } }
.b-warning { border-color: @brand-warning } .b-b {
.b-danger { border-color: @brand-danger } border-bottom: 1px solid @border-color;
.b-white { border-color: #fff } }
.b-dashed { border-style: dashed !important; } .b-l {
.b-l-light { border-left-color: @brand-light } border-left: 1px solid @border-color;
.b-l-dark { border-left-color: @brand-dark } }
.b-l-black { border-left-color: @brand-dark } .b-light {
.b-l-primary { border-left-color: @brand-primary } border-color: @brand-light;
.b-l-success { border-left-color: @brand-success } }
.b-l-info { border-left-color: @brand-info } .b-dark {
.b-l-warning { border-left-color: @brand-warning } border-color: @brand-dark;
.b-l-danger { border-left-color: @brand-danger } }
.b-l-white { border-left-color: #fff } .b-black {
.b-l-2x { border-left-width: 2px } border-color: @brand-dark;
.b-l-3x { border-left-width: 3px } }
.b-l-4x { border-left-width: 4px } .b-primary {
.b-l-5x { border-left-width: 5px } border-color: @brand-primary;
.b-2x { border-width: 2px } }
.b-3x { border-width: 3px } .b-success {
.b-4x { border-width: 4px } border-color: @brand-success;
.b-5x { border-width: 5px } }
.b-info {
border-color: @brand-info;
}
.b-warning {
border-color: @brand-warning;
}
.b-danger {
border-color: @brand-danger;
}
.b-white {
border-color: #fff;
}
.b-dashed {
border-style: dashed !important;
}
.b-l-light {
border-left-color: @brand-light;
}
.b-l-dark {
border-left-color: @brand-dark;
}
.b-l-black {
border-left-color: @brand-dark;
}
.b-l-primary {
border-left-color: @brand-primary;
}
.b-l-success {
border-left-color: @brand-success;
}
.b-l-info {
border-left-color: @brand-info;
}
.b-l-warning {
border-left-color: @brand-warning;
}
.b-l-danger {
border-left-color: @brand-danger;
}
.b-l-white {
border-left-color: #fff;
}
.b-l-2x {
border-left-width: 2px;
}
.b-l-3x {
border-left-width: 3px;
}
.b-l-4x {
border-left-width: 4px;
}
.b-l-5x {
border-left-width: 5px;
}
.b-2x {
border-width: 2px;
}
.b-3x {
border-width: 3px;
}
.b-4x {
border-width: 4px;
}
.b-5x {
border-width: 5px;
}
``` ```
## 圆角 ## 圆角
```css ```css
.r { border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base; } .r {
.r-2x { border-radius: @border-radius-base * 2; } border-radius: @border-radius-base @border-radius-base @border-radius-base
.r-3x { border-radius: @border-radius-base * 3; } @border-radius-base;
.r-l { border-radius: @border-radius-base 0 0 @border-radius-base; } }
.r-r { border-radius: 0 @border-radius-base @border-radius-base 0; } .r-2x {
.r-t { border-radius: @border-radius-base @border-radius-base 0 0; } border-radius: @border-radius-base * 2;
.r-b { border-radius: 0 0 @border-radius-base @border-radius-base; } }
.r-3x {
border-radius: @border-radius-base * 3;
}
.r-l {
border-radius: @border-radius-base 0 0 @border-radius-base;
}
.r-r {
border-radius: 0 @border-radius-base @border-radius-base 0;
}
.r-t {
border-radius: @border-radius-base @border-radius-base 0 0;
}
.r-b {
border-radius: 0 0 @border-radius-base @border-radius-base;
}
``` ```
## 字体相关 ## 字体相关
```css ```css
.font-normal { font-weight: normal; } .font-normal {
.font-thin { font-weight: 300; } font-weight: normal;
.font-bold { font-weight: 700; } }
.text-3x { font-size: 3em; } .font-thin {
.text-2x { font-size: 2em; } font-weight: 300;
.text-lg { font-size: @font-size-lg; } }
.text-md { font-size: @font-size-md; } .font-bold {
.text-base { font-size: @font-size-base; } font-weight: 700;
.text-sm { font-size: @font-size-sm; } }
.text-xs { font-size: @font-size-xs; } .text-3x {
.text-xxs { text-indent: -9999px } font-size: 3em;
.text-ellipsis { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.text-u-c { text-transform: uppercase; } .text-2x {
.text-l-t { text-decoration: line-through; } font-size: 2em;
.text-u-l { text-decoration: underline; } }
.text-left { text-align: left; } .text-lg {
.text-center { text-align: center; } font-size: @font-size-lg;
.text-right { text-align: right; } }
.text-md {
font-size: @font-size-md;
}
.text-base {
font-size: @font-size-base;
}
.text-sm {
font-size: @font-size-sm;
}
.text-xs {
font-size: @font-size-xs;
}
.text-xxs {
text-indent: -9999px;
}
.text-ellipsis {
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-u-c {
text-transform: uppercase;
}
.text-l-t {
text-decoration: line-through;
}
.text-u-l {
text-decoration: underline;
}
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
``` ```
## 定位 ## 定位
```css ```css
.pos-rlt { position: relative; } .pos-rlt {
.pos-stc { position: static !important; } position: relative;
.pos-abt { position: absolute; } }
.pos-fix { position: fixed; } .pos-stc {
position: static !important;
}
.pos-abt {
position: absolute;
}
.pos-fix {
position: fixed;
}
``` ```
## 背景 ## 背景
```html ```html
<div class="hbox b-a bg-light"> <div class="hbox b-a bg-light">
<div class="col wrapper-sm b-r bg-white">bg-white</div> <div class="col wrapper-sm b-r bg-white">bg-white</div>
<div class="col wrapper-sm b-r bg-dark">bg-dark</div> <div class="col wrapper-sm b-r bg-dark">bg-dark</div>
<div class="col wrapper-sm b-r bg-info">bg-info</div> <div class="col wrapper-sm b-r bg-info">bg-info</div>
<div class="col wrapper-sm b-r bg-success">bg-sucess</div> <div class="col wrapper-sm b-r bg-success">bg-success</div>
<div class="col wrapper-sm b-r bg-warning">bg-warning</div> <div class="col wrapper-sm b-r bg-warning">bg-warning</div>
<div class="col wrapper-sm b-r bg-danger">bg-danger</div> <div class="col wrapper-sm b-r bg-danger">bg-danger</div>
<div class="col wrapper-sm bg-primary">bg-primary</div> <div class="col wrapper-sm bg-primary">bg-primary</div>
</div> </div>
``` ```
## 其他 ## 其他
```css ```css
.show { visibility: visible; } .show {
.line { *width: 100%; height: 2px; margin: 10px 0; font-size: 0; overflow: hidden; background-color: transparent; border-width: 0; border-top: 1px solid @border-color; } visibility: visible;
.line-xs { margin: 0 } }
.line-lg { margin-top: 15px; margin-bottom: 15px } .line {
.line-dashed { border-style: dashed; background: transparent; } *width: 100%;
.no-line { border-width: 0 } height: 2px;
.no-border, .no-borders { border-color: transparent; border-width: 0 } margin: 10px 0;
.no-radius { border-radius: 0 } font-size: 0;
.block { display: block; } overflow: hidden;
.block.hide { display: none; } background-color: transparent;
.inline { display: inline-block !important; } border-width: 0;
.none { display: none; } border-top: 1px solid @border-color;
.pull-none { float: none; } }
.rounded { border-radius: 500px; } .line-xs {
.clear { display: block; overflow: hidden; } margin: 0;
.no-bg { background-color: transparent; color: inherit; } }
.no-select { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .line-lg {
margin-top: 15px;
margin-bottom: 15px;
}
.line-dashed {
border-style: dashed;
background: transparent;
}
.no-line {
border-width: 0;
}
.no-border,
.no-borders {
border-color: transparent;
border-width: 0;
}
.no-radius {
border-radius: 0;
}
.block {
display: block;
}
.block.hide {
display: none;
}
.inline {
display: inline-block !important;
}
.none {
display: none;
}
.pull-none {
float: none;
}
.rounded {
border-radius: 500px;
}
.clear {
display: block;
overflow: hidden;
}
.no-bg {
background-color: transparent;
color: inherit;
}
.no-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
``` ```