UNPKG

dh-c

Version:

The front-end development engineers jimberton gulp react component

79 lines (74 loc) 1.94 kB
/* begin: default style **/ /* end: default **/ /* begin: primary style **/ /* end: primary **/ /* begin: danger style **/ /* end: danger **/ .dh-btn { display: inline-block; padding: 0 16px; height: 36px; font-size: 14px; border-radius: 18px; line-height: 1; text-align: center; background-image: none; cursor: pointer; user-select: none; outline: none; box-sizing: border-box; -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); background-color: transparent; border: 1px solid #39b86e; color: #39b86e; } .dh-btn:hover { opacity: .7; } .dh-btn[disabled], .dh-btn[disabled]:hover { color: #ccc; background-color: #f6f6f6; border: 1px solid #e6e6e6; cursor: not-allowed; opacity: 1; } .dh-btn[data-role='checked'] { background-color: transparent; border: 1px solid #33a663; } .dh-btn .dh-icon + span { margin-left: 8px; } .dh-btn-primary { background-color: #39b86e; border: 1px solid #39b86e; color: #fff; } .dh-btn-primary[disabled], .dh-btn-primary[disabled]:hover { color: #ccc; background-color: #f6f6f6; border: 1px solid #e6e6e6; cursor: not-allowed; opacity: 1; } .dh-btn-primary[data-role='checked'] { background-color: #33a663; border: 1px solid #33a663; } .dh-btn-danger { background-color: #ff5a44; border: 1px solid #ff5a44; color: #fff; } .dh-btn-danger[disabled], .dh-btn-danger[disabled]:hover { color: #ccc; background-color: #f6f6f6; border: 1px solid #e6e6e6; cursor: not-allowed; opacity: 1; } .dh-btn-danger[data-role='checked'] { background-color: #e6513d; border: 1px solid #e6513d; } .dh-btn-small { height: 24px; font-size: 12px; border-radius: 12px; } .dh-btn-circle { width: 36px; height: 36px; padding: 0; font-size: 14px; border-radius: 50%; line-height: 1; }