ten-design-vue
Version:
ten-vue
286 lines (285 loc) • 6.22 kB
CSS
/* dependencies icon */
/**
* 文字部分
* size 大小,line 行高, color 颜色
*/
/* button */
/* input */
/* transfer */
/* alert */
/* menu */
/* message */
/* modal */
/* badge */
/* tag */
/* progress */
/* popup */
/* tooltip */
/* loading */
/* tabs */
/* check */
/* mention */
/* popup */
/* steps */
/* tabs */
/* modal */
/* form */
/* table */
/* pagination */
/* upload */
/* collapse */
/* anchor */
/* list */
.ten-button {
display: inline-block;
position: relative;
white-space: nowrap;
text-align: center;
background-image: none;
border: 1px solid transparent;
cursor: pointer;
transition: all 0.3s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
touch-action: manipulation;
font-size: 14px;
line-height: 38px;
height: 40px;
border-radius: 0px;
color: #333;
border-color: #d9d9d9;
background-color: #fff;
outline: none;
-webkit-appearance: none;
}
.ten-button .ten-icon {
vertical-align: middle;
margin-top: -2px;
}
.ten-button > .ten-icon + span {
margin-left: 8px;
}
.ten-button > span + .ten-icon {
margin-left: 8px;
}
.ten-button + .ten-button {
margin-left: 10px;
}
.ten-button--size-default {
min-width: 120px;
padding: 0 24px;
line-height: 38px;
height: 40px;
border-radius: 0px;
font-size: 14px;
}
.ten-button--size-default .ten-icon {
font-size: 20px;
}
.ten-button--size-large {
min-width: 160px;
padding: 0 32px;
line-height: 62px;
height: 64px;
border-radius: 0px;
font-size: 20px;
}
.ten-button--size-large .ten-icon {
font-size: 28px;
}
.ten-button--size-small {
min-width: 104px;
padding: 0 18px;
line-height: 30px;
height: 32px;
border-radius: 0px;
font-size: 14px;
}
.ten-button--size-small .ten-icon {
font-size: 16px;
}
.ten-button--autowidth[class*='ten-button--size'] {
min-width: auto;
}
.ten-button--round.ten-button--size-default {
height: 40px;
border-radius: 20px;
}
.ten-button--round.ten-button--size-large {
height: 64px;
border-radius: 32px;
}
.ten-button--round.ten-button--size-small {
height: 32px;
border-radius: 16px;
}
.ten-button--notext {
min-width: initial;
padding-left: 0;
padding-right: 0;
}
.ten-button--notext.ten-button--size-default {
width: 40px;
}
.ten-button--notext.ten-button--size-large {
width: 64px;
}
.ten-button--notext.ten-button--size-small {
width: 32px;
}
.ten-button--type-primary {
color: #fff;
background-color: #0052d9;
border-color: #0052d9;
}
.ten-button--type-primary:hover,
.ten-button--type-primary:focus {
background-color: #4088ff;
border-color: #4088ff;
}
.ten-button--type-primary:active {
background-color: #002b73;
border-color: #002b73;
color: #cccccc;
}
.ten-button--type-primary.ten-button--disabled {
color: #fff;
background-color: #c0c0c0;
border-color: #c0c0c0;
}
.ten-button--type-default {
color: #666;
background-color: none;
border-color: #d9d9d9;
}
.ten-button--type-default:hover,
.ten-button--type-default:focus {
color: #0052d9;
border-color: #0052d9;
}
.ten-button--type-default:active {
color: #002b73;
border-color: #002b73;
}
.ten-button--type-default.ten-button--disabled {
color: #c0c0c0;
background-color: #f5f5f5;
border-color: #c0c0c0;
}
.ten-button--type-text {
background: transparent;
border-color: transparent;
min-width: auto;
color: #0052d9;
}
.ten-button--type-text:hover,
.ten-button--type-text:focus {
color: #4088ff;
}
.ten-button--type-text:active {
color: #002b73;
}
.ten-button--type-text.ten-button--disabled {
color: #c0c0c0;
}
.ten-button--type-defaulttext {
background: transparent;
border-color: transparent;
min-width: auto;
color: #666;
}
.ten-button--type-defaulttext:hover,
.ten-button--type-defaulttext:focus {
color: #333;
}
.ten-button--type-defaulttext:active {
color: #333;
}
.ten-button--type-defaulttext.ten-button--disabled {
color: #c0c0c0;
}
.ten-button--block.ten-button {
display: block;
width: 100%;
margin: 0;
}
.ten-button--block + .ten-button--block {
margin-top: 10px;
}
.ten-button--disabled {
text-shadow: none;
box-shadow: none;
cursor: not-allowed;
}
.ten-button-group {
display: inline-block;
font-size: 0;
}
.ten-button-group + .ten-button-group {
margin-left: 10px;
}
.ten-button-group .ten-button {
position: relative;
margin: 0;
min-width: initial;
border-radius: 0;
}
.ten-button-group .ten-button:hover,
.ten-button-group .ten-button:active,
.ten-button-group .ten-button:focus {
z-index: 2;
}
.ten-button-group .ten-button--type-primary {
z-index: 3;
}
.ten-button-group .ten-button:first-child.ten-button--size-default {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.ten-button-group .ten-button:first-child.ten-button--size-large {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.ten-button-group .ten-button:first-child.ten-button--size-small {
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
}
.ten-button-group .ten-button:last-child.ten-button--size-default {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
.ten-button-group .ten-button:last-child.ten-button--size-large {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
.ten-button-group .ten-button:last-child.ten-button--size-small {
border-top-right-radius: 0px;
border-bottom-right-radius: 0px;
}
.ten-button-group .ten-button + .ten-button {
margin-left: -1px;
}
.ten-button-group .ten-button--block:first-child.ten-button--size-default {
border-radius: 0px 0px 0 0;
}
.ten-button-group .ten-button--block:first-child.ten-button--size-large {
border-radius: 0px 0px 0 0;
}
.ten-button-group .ten-button--block:first-child.ten-button--size-small {
border-radius: 0px 0px 0 0;
}
.ten-button-group .ten-button--block:last-child.ten-button--size-default {
border-radius: 0 0 0px 0px;
}
.ten-button-group .ten-button--block:last-child.ten-button--size-large {
border-radius: 0 0 0px 0px;
}
.ten-button-group .ten-button--block:last-child.ten-button--size-small {
border-radius: 0 0 0px 0px;
}
.ten-button-group .ten-button--block + .ten-button--block {
margin-left: 0px;
margin-top: -1px;
}