UNPKG

@insaic/neon

Version:

A Mobile UI Components built on Vue

82 lines (80 loc) 1.5 kB
.sq-btn { display: inline-block; position: relative; outline: 0; text-align: center; overflow: hidden; border: 0; border-radius: 4px; -webkit-box-sizing: border-box; box-sizing: border-box; color: inherit; font-size: 14px; height: 48px; padding: 0 28px; line-height: 1; } .sq-btn::after { background-color: #000; content: " "; opacity: 0; position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .sq-btn:active::after { opacity: .3; } .sq-btn-wrap { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; } .sq-btn-default { color: #4A90E2; background-color: #ddd; } .sq-btn-primary { color: #fff; background-color: #4A90E2; } .sq-btn-ghost { color: #4A90E2; background-color: #fff; border: 1px solid #4A90E2; } .sq-btn-large { width: 100%; font-size: 16px; } .sq-btn-small { height: 34px; line-height: 1; padding: 0 14px; font-size: 14px; } .sq-btn-icon .sq-icon { font-size: inherit; } .sq-btn-icon img { vertical-align: middle; width: 1em; height: 1em; } .sq-btn-icon + .sq-btn-text { margin-left: 4px; } .sq-btn ~ .sq-btn { margin-top: 10px; }