UNPKG

@tarojs/components

Version:

Taro 组件库

160 lines • 4.04 kB
taro-button-core { display: block; overflow: hidden; position: relative; box-sizing: border-box; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; border-width: 0; border-radius: 5px; width: 100%; appearance: none; outline: 0; background-color: #f8f8f8; line-height: 2.55555556; text-decoration: none; text-align: center; font-size: 18px; color: #000; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } taro-button-core:focus { outline: 0; } taro-button-core:not([disabled]):active { background-color: #dedede; color: rgba(0, 0, 0, 0.6); } taro-button-core::after { position: absolute; left: 0; top: 0; box-sizing: border-box; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 10px; width: 200%; height: 200%; content: " "; transform: scale(0.5); transform-origin: 0 0; } taro-button-core + taro-button-core { margin-top: 15px; } taro-button-core[type=default] { background-color: #f8f8f8; color: #000; } taro-button-core[type=default]:not([disabled]):visited { color: #000; } taro-button-core[type=default]:not([disabled]):active { background-color: #dedede; color: rgba(0, 0, 0, 0.6); } taro-button-core[size=mini] { display: inline-block; padding: 0 1.32em; width: auto; line-height: 2.3; font-size: 13px; } taro-button-core[plain], taro-button-core[plain][type=default], taro-button-core[plain][type=primary] { border-width: 1px; background-color: transparent; } taro-button-core[disabled] { color: rgba(255, 255, 255, 0.6); } taro-button-core[disabled][type=default] { background-color: #f7f7f7; color: rgba(0, 0, 0, 0.3); } taro-button-core[disabled][type=primary] { background-color: #9ed99d; } taro-button-core[disabled][type=warn] { background-color: #ec8b89; } taro-button-core[loading] .weui-loading { margin: -0.2em 0.34em 0 0; } taro-button-core[loading][type=primary], taro-button-core[loading][type=warn] { color: rgba(255, 255, 255, 0.6); } taro-button-core[loading][type=primary] { background-color: #179b16; } taro-button-core[loading][type=warn] { background-color: #ce3c39; } taro-button-core[plain][type=primary] { border: 1px solid #1aad19; color: #1aad19; } taro-button-core[plain][type=primary]:not([disabled]):active { border-color: rgba(26, 173, 25, 0.6); background-color: transparent; color: rgba(26, 173, 25, 0.6); } taro-button-core[plain][type=primary]::after { border-width: 0; } taro-button-core[plain][type=warn] { border: 1px solid #e64340; color: #e64340; } taro-button-core[plain][type=warn]:not([disabled]):active { border-color: rgba(230, 67, 64, 0.6); background-color: transparent; color: rgba(230, 67, 64, 0.6); } taro-button-core[plain][type=warn]::after { border-width: 0; } taro-button-core[plain], taro-button-core[plain][type=default] { border: 1px solid #353535; color: #353535; } taro-button-core[plain]:not([disabled]):active, taro-button-core[plain][type=default]:not([disabled]):active { border-color: rgba(53, 53, 53, 0.6); background-color: transparent; color: rgba(53, 53, 53, 0.6); } taro-button-core[plain]::after, taro-button-core[plain][type=default]::after { border-width: 0; } taro-button-core[type=primary] { background-color: #1aad19; color: #fff; } taro-button-core[type=primary]:not([disabled]):visited { color: #fff; } taro-button-core[type=primary]:not([disabled]):active { background-color: #179b16; color: rgba(255, 255, 255, 0.6); } taro-button-core[type=warn] { background-color: #e64340; color: #fff; } taro-button-core[type=warn]:not([disabled]):visited { color: #fff; } taro-button-core[type=warn]:not([disabled]):active { background-color: #ce3c39; color: rgba(255, 255, 255, 0.6); } taro-button-core[plain][disabled] { border: 1px solid rgba(0, 0, 0, 0.2); background-color: #f7f7f7; color: rgba(0, 0, 0, 0.3); } taro-button-core[plain][disabled][type=primary] { border: 1px solid rgba(0, 0, 0, 0.2); background-color: #f7f7f7; color: rgba(0, 0, 0, 0.3); }