UNPKG

@ttk/component

Version:

ttk组件库

155 lines (154 loc) 2.98 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ .react-calculator { width: 100%; height: 365px; display: flex; flex-direction: column; } .react-calculator .result-panel { display: flex; padding-top: 40px; flex: 2; flex-direction: column; background-color: #e3e7e9; text-align: right; padding: 0px 10px; line-height: 40px; } .react-calculator .result-panel .last-row { flex: 1; color: #969ba3; font-size: 20px; align-items: flex-end; display: flex; justify-content: flex-end; overflow: auto; max-width: 100%; } .react-calculator .result-panel .cur-row { flex: 1; color: #46494d; font-size: 22px; overflow: auto; max-width: 100%; } .react-calculator .button-panel { flex: 5; } .react-calculator .button-panel .button { cursor: pointer; position: relative; margin: 0; padding: 0; box-shadow: inset 1px 1px 0 0 #e3e7e9; border: none; background-color: #fafafa; font-size: 30px; text-align: center; color: #979ca4; overflow: hidden; } .react-calculator .button-panel .button:before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; background: #aaa; opacity: 0; } .react-calculator .button-panel .button.clicked:before { -webkit-animation: react-calculator-click 0.5s ease-out 0s 1 alternate forwards; animation: react-calculator-click 0.5s ease-out 0s 1 alternate forwards; } .react-calculator .button-panel .button.button-equal { color: #fff; background-color: #fa722e; } .react-calculator .button-panel .button:focus { outline: none; } .react-calculator .text-center { display: flex; justify-content: center; flex-direction: column; text-align: center; } .react-calculator .row { display: flex; flex-direction: row; } .react-calculator .column { display: flex; flex-direction: column; } .react-calculator .s1 { flex: 1; } .react-calculator .s2 { flex: 2; } .react-calculator .s3 { flex: 3; } .react-calculator .s4 { flex: 4; } .react-calculator .s5 { flex: 5; } .react-calculator .s6 { flex: 6; } .react-calculator .s7 { flex: 7; } .react-calculator .s8 { flex: 8; } .react-calculator .s9 { flex: 9; } .react-calculator .s10 { flex: 10; } .react-calculator .s11 { flex: 11; } .react-calculator .s12 { flex: 12; } .react-calculator .center { display: flex; justify-content: center; flex-direction: column; text-align: center; } @-webkit-keyframes react-calculator-click { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } } @keyframes react-calculator-click { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }