123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- @import '../common/base.scss';
- .m-button {
- display: inline-block;
- padding: 12px 20px;
- line-height: 1;
- border: 1px solid #d9d9d9;
- box-sizing: border-box;
- background: #fff;
- color: #333;
- white-space: nowrap;
- outline: none;
- font-size: 14px;
- cursor: pointer;
- }
- .m-button--default{
- border: 1px solid #d9d9d9;
- background: #fff;
- color: #333;
- &:hover {
- opacity: 0.8;
- border-color: $primary;
- color: $primary;
- }
- }
- .m-button--primary{
- color: #fff;
- background-color: $primary;
- border-color: $primary;
- &:hover {
- opacity: 0.8;
- color: #fff;
- }
- }
- .m-button--success {
- color: #fff;
- background-color: $success;
- border-color: $success;
- &:hover {
- opacity: 0.8;
- background-color: $success;
- color: #fff;
- }
- }
- .m-button--danger {
- color: #fff;
- background-color: $danger;
- border-color: $danger;
- &:hover {
- color: #fff;
- border-color: $danger;
- opacity: 0.8;
- }
- }
- .m-button--info {
- color: #fff;
- background-color: $info;
- border-color: $info;
- &:hover {
- color: #fff;
- border-color: $info;
- opacity: 0.8;
- }
- }
- .m-button--warning {
- color: #fff;
- background-color: $warning;
- border-color: $warning;
- &:hover {
- color: #fff;
- border-color: $warning;
- opacity: 0.8;
- }
- }
- .m-button--text {
- border-color: transparent;
- color: #409eff;
- background: transparent;
- padding-left: 0;
- padding-right: 0;
- &:hover {
- border-color: transparent;
- opacity: 0.8;
- }
- }
- // 禁止
- .is-disabled{
- color: #fff;
- cursor: not-allowed;
- background-color: #fff;
- border-color: #ebeef5;
- }
- .m-button--default.is-disabled{
- color: #c0c4cc;
- cursor: not-allowed;
- background-color: #fff;
- border-color: #ebeef5;
- }
- .m-button--primary.is-disabled{
- color: #fff;
- background-color: #a0cfff;
- border-color: #a0cfff;
- }
- .m-button--success.is-disabled{
- color: #fff;
- background-color: #b3e19d;
- border-color: #b3e19d;
- }
- .m-button--danger.is-disabled{
- color: #fff;
- background-color: #fab6b6;
- border-color: #fab6b6;
- }
- .m-button--info.is-disabled{
- color: #fff;
- background-color: #c8c9cc;
- border-color: #c8c9cc;
- }
- .m-button--warning.is-disabled{
- color: #fff;
- background-color: #f3d19e;
- border-color: #f3d19e;
- }
- .m-button--text.is-disabled{
- cursor: no-drop;
- color: #555;
- border: 1px solid #fff;
- background: none;
- opacity: .5;
- }
- // 圆角
- .is-round{
- border-radius: 20px;
- }
- // 圆
- .is-circle{
- border-radius: 50%;
- padding: 12px;
- }
- .noText{
- margin-left: 0 !important;
- margin-right: 0 !important;
- }
- .icon-loading{
- display: inline-block;
- margin-right: 4px;
- animation: rotating 2s linear infinite;
- -webkit-animation: rotating 2s linear infinite;
- }
- @keyframes rotating {
- 0% {
- transform: rotate(0deg);
- }
- 50% {
- transform: rotate(180deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
- .m-button--medium{
- padding: 10px 20px;
- font-size: 14px;
- }
- .m-button--small{
- padding: 9px 15px;
- font-size: 12px;
- }
- .m-button--mini{
- padding: 7px 15px;
- font-size: 12px;
- }
|