zeroclickinfo-goodies/share/goodie/calculator/calculator.css

746 lines
16 KiB
CSS
Raw Normal View History

Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Typography */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
.zci--calculator,
.zci--calculator .tile__ctrl__btn,
.zci--calculator .tile__ctrl__toggle,
.zci--calculator .tile__skip-calc {
font-family: "DDG_ProximaNova", "DDG_ProximaNova_UI_0", "DDG_ProximaNova_UI_1", "DDG_ProximaNova_UI_2", "DDG_ProximaNova_UI_3", "DDG_ProximaNova_UI_4", "DDG_ProximaNova_UI_5", "DDG_ProximaNova_UI_6", "Proxima Nova", "Helvetica Neue", "Helvetica", "Segoe UI", "Nimbus Sans L", "Liberation Sans", "Open Sans", FreeSans, Arial, sans-serif;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Show UI when CSS is loaded */
.zci--calculator .tile--calculator {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
display: block !important;
outline: none;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Layout */
.zci--calculator .zci__body {
padding-left: 0px;
}
.zci--calculator .tile__calc {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
height: 352px;
}
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
.zci--calculator .tile__calc__col {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
height: 251px;
width: 35%;
max-width: 295px; /* half width of search box */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
float: left;
display: inline-block;
border-bottom: 1px solid #c8c8c8;
box-sizing: border-box;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Tabs */
.zci--calculator .tile__calc .tile__tabs {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
box-sizing: border-box;
-webkit-touch-callout: none;
}
/* Allow user-select on history tab */
.zci--calculator .tile__tab__sci,
.zci--calculator .tile__tab__basic {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Controllers */
.zci--calculator .tile__calc .tile__ctrl__btn,
.zci--calculator .tile__calc .tile__ctrl__toggle {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
float: left;
position: relative;
box-sizing: border-box;
height: 50px;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Toggle */
.zci--calculator .tile__calc .tile__ctrl__toggle {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
width: 50%;
padding: 15px 0;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
margin: 0;
background: #ebebeb;
border: 1px solid #c8c8c8;
border-bottom: 0;
border-right: 0;
color: #2e2e2e;
font-size: 0.8em;
text-align: center;
}
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
/* The switch - the box around the slider */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
.zci--calculator .tile__ctrl__toggle-indicator {
position: relative;
display: inline-block;
width: 38px;
height: 14px;
}
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
.zci--calculator .tile__ctrl__toggle-indicator input {
display: none;
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
}
.zci--calculator .tile__ctrl__toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .tile__ctrl__toggle-slider:before {
position: absolute;
content: "";
height: 15px;
width: 15px;
left: 1px;
bottom: 0px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
}
input:focus+.tile__ctrl__toggle-slider {
box-shadow: 0 0 1px #2196F3;
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
}
input:checked+.tile__ctrl__toggle-slider:before {
-webkit-transform: translateX(23px);
-ms-transform: translateX(23px);
transform: translateX(23px);
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
}
.zci--calculator .tile__ctrl__toggle-slider.tile__ctrl__round-icon {
border-radius: 34px;
margin: 3px 0;
padding: 7px 0;
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
}
.zci--calculator .tile__ctrl__toggle-slider.tile__ctrl__round-icon:before {
border-radius: 50%;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
/* Buttons */
.zci--calculator .tile__calc .tile__ctrl__btn {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
width: 25%;
padding: 0;
margin: 0;
background: #fff;
border: 1px solid #c8c8c8;
border-bottom: 0;
border-right: 0;
color: #2e2e2e;
text-align: center;
font-size: 1.6em;
}
.zci--calculator .tile__calc .tile__ctrl--double {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
width: 50%;
}
.zci--calculator .tile__calc .tile__ctrl--ops,
.zci--calculator .tile__calc .tile__tab__sci .tile__ctrl__btn {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
background: #ebebeb;
font-weight: lighter;
}
.zci--calculator .tile__calc .tile__ctrl--important {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
background: #ffd90b;
font-family: "DDG_ProximaNova_UI_0", "DDG_ProximaNova_UI_1", "DDG_ProximaNova_UI_2", "DDG_ProximaNova_UI_3", "DDG_ProximaNova_UI_4", "DDG_ProximaNova_UI_5", "DDG_ProximaNova_UI_6", "Proxima Nova", "Helvetica Neue", "Helvetica", "Segoe UI", "Nimbus Sans L", "Liberation Sans", "Open Sans", FreeSans, Arial, sans-serif;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
font-weight: lighter;
font-size: 2em;
padding-bottom: 0.1em;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Ctrl (Button, Toggle) */
.zci--calculator .tile__calc .tile__ctrl__btn,
.zci--calculator .tile__calc .tile__ctrl__toggle {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
cursor: pointer;
}
.zci--calculator .tile__calc .tile__ctrl__btn:focus,
.zci--calculator .tile__calc .tile__ctrl__toggle:focus,
.zci--calculator .tile__calc .tile__ctrl__btn:active,
.zci--calculator .tile__calc .tile__ctrl__toggle:active {
outline: none;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.no-touch .tile__calc .tile__ctrl__btn:hover,
.no-touch .tile__calc .tile__ctrl__toggle:hover {
background-color: #dadada;
}
.zci--calculator .tile__calc .tile__ctrl__btn:active,
.zci--calculator .tile__calc .tile__ctrl__toggle:active {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
background-color: #cacaca;
}
.no-touch .tile__calc .tile__ctrl--important:hover {
background-color: #ddc750;
}
.zci--calculator .tile__calc .tile__ctrl--important:active {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
background-color: #c8a900;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Accessibility skip handle */
.zci--calculator .tile__calc .tile__skip-calc {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
position: absolute;
opacity: 0;
pointer-events: none;
z-index: -9999;
background: #e8e8e8;
border: 0;
padding: 0.3em 0.8em;
font-size: 1em;
margin: 1px;
}
.zci--calculator .tile__calc .tile__skip-calc:focus {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
pointer-events: all;
opacity: 1;
z-index: 1;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Input trap */
.zci--calculator .tile__calc .tile__input-trap {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
position: absolute;
opacity: 0;
pointer-events: none;
height: 1px;
width: 1px;
z-index: -9999;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Display */
.zci--calculator .tile__calc .tile__display {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
background: #fff;
border: 1px solid #c8c8c8;
border-bottom: 0;
padding: 0.8em;
box-sizing: border-box;
width: 70%;
max-width: 590px; /* Match width of search box */
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
border-right: 0;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
height: 100px;
position: relative;
box-shadow: inset -1px -1px 0px #fff, inset 1px 1px 0px #fff;
transition: box-shadow 0.3s;
/* Text overflow */
text-align: right;
overflow: hidden;
white-space: nowrap;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .tile__calc .tile__display:hover {
box-shadow: inset -1px -1px 0px #999, inset 1px 1px 0px #999;
}
.zci--calculator .tile__calc .tile__display.selected {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
box-shadow: inset -1px -1px 0px #61a0c7, inset 1px 1px 0px #61a0c7;
}
.zci--calculator .tile__calc .tile__display:focus {
outline: none;
}
.zci--calculator .tile__calc .tile__display__aside--wrap {
position: relative;
overflow: hidden;
height: 1.3em;
}
.zci--calculator .tile__calc .tile__display__main,
.zci--calculator .tile__calc .tile__display__aside {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
display: block;
}
.zci--calculator .tile__calc .tile__display__aside {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
font-size: 1.1em;
letter-spacing: 0.025em;
color: #909090;
font-weight: lighter;
position: absolute;
right: 0;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .tile__calc .tile__display__main {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
color: #101010;
font-weight: lighter;
font-size: 2.5em;
letter-spacing: -0.05em;
padding-right: 0.05em;
cursor: default;
position: relative;
overflow: hidden;
white-space: nowrap;
outline: 0;
float: right;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .tile__calc .tile__display__main .pseudoBrace {
color: #d3d3d3;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
/* Formula presentation: Big */
.zci--calculator .tile__calc .tile__display__main sup {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
top: -0.8em;
left: 0.1em;
padding-right: 0.2em;
}
.zci--calculator .tile__calc .tile__display__main .formula__placeholder {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
color: #909090;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Formula presentation: Small */
.zci--calculator .tile__calc .tile__display__aside sup {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
top: -0.8em;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Calc display options */
.zci--calculator .tile__calc .tile__options {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
bottom: 0.4em;
padding: 0 0.8em;
width: 100%;
right: 0;
left: 0;
position: absolute;
display: table;
box-sizing: border-box;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .tile__calc .tile__option {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
transition: width 0.5s;
font-size: 0.8em;
width: auto;
text-align: center;
display: table-cell;
color: #9e9e9e;
width: 50%;
font-weight: 200;
letter-spacing: 0.03em;
}
.tile__calc .tile__option span {
cursor: pointer;
padding: 0.2em 0.5em;
margin: -0.5em;
}
.zci--calculator .tile__calc .tile__option--active {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
color: #54a3bb;
font-weight: 400;
}
.tile__calc .tile__option--active span {
cursor: default;
}
.zci--calculator .tile__calc .tile__option__sci {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
text-align: left;
}
.zci--calculator .tile__calc .tile__option__basic {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
text-align: right;
}
.zci--calculator .tile__calc .tile__option__history {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
display: none;
text-align: right;
}
.zci--calculator .tile__calc .tile__option:hover {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
text-decoration: none;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* History tab */
.zci--calculator .tile__calc .tile__history {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
width: 30%;
background-color: #f9f9f9;
position: relative;
margin-top: -100px;
padding: 0;
border: 1px solid #ccc;
height: 351px;
overflow-x: hidden;
overflow-y: auto;
transition: all 0.3s;
}
.zci--calculator .tile__calc .tile__history--hidden {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
width: 0px;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* History item */
.zci--calculator .tile__calc .tile__past-calc {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
box-sizing: border-box;
padding: 0.4em 0.6em 0.4em;
height: 50px;
border-bottom: 1px solid #ccc;
background-color: #fff;
cursor: pointer;
text-align: right;
font-size: 1.1em;
overflow: hidden;
transition: 0.5s all;
}
.zci--calculator .tile__calc .tile__past-calc.tile__past-calc--hidden {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
height: 0px;
padding-top: 0;
padding-bottom: 0;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/******************/
/* TEXT SIZE ADJS */
/******************/
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Largest */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
.set-text--largest .tile__calc .tile__display__main {
font-size: 2em;
font-weight: 400;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
.set-text--largest .tile__calc .tile__past-calc {
padding: 0.2em 0.4em;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
.set-text--largest .tile__calc .zci--calculator .zci__main--detail {
max-width: 61.9em;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
.set-text--largest .tile__calc .tile__past-result {
margin-top: -0.2em;
}
.zci--calculator .tile__calc .tile__past-calc:hover {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
background: #eee;
}
.zci--calculator .tile__calc .tile__past-formula {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
display: block;
color: #aaa;
font-weight: 100;
font-size: 0.8em;
}
.zci--calculator .tile__calc .tile__past-result {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
font-weight: 700;
color: #191919;
font-size: 1.2em;
display: inline-block;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Big Widescreens >= 1200px (Default) */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
.zci--calculator .zci__main {
max-width: 60em;
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/*****************/
/* MEDIA QUERIES */
/*****************/
/* Monitors with MQs >= 960 */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
@media only screen and (min-width: 60em) {
.zci--calculator .tile__calc .tile__options {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
bottom: -1em;
}
}
/* Tablets <= 960 */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
@media only screen and (max-width: 60em) {
/* show only one calc tab */
.zci--calculator .tile__calc .tile__tabs {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
overflow: hidden;
}
.zci--calculator .tile__calc .tile__calc__col {
width: 295px;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
/* default: basic tab */
.zci--calculator .tile__calc .tile__tabs .tile__tab__sci {
margin-left: -295px;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .tile__calc .tile__display {
max-width: 295px;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .zci__main--detail {
max-width: 43.8em;
}
.zci--calculator .tile__calc .tile__history {
max-width: 295px;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
transition: width 0.6s;
position: absolute;
}
/* show 3 tab options */
.zci--calculator .tile__calc .tile__display__main {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
margin-top: -0.2em;
}
.zci--calculator .tile__calc .tile__display .tile__options {
margin-top: 0em;
}
.zci--calculator .tile__calc .tile__display .tile__option {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
float: left;
}
.zci--calculator .tile__calc .tile__display .tile__option__sci {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
text-align: left;
}
.zci--calculator .tile__calc .tile__display .tile__option__basic {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
text-align: right;
}
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Mobiles <= 740 */
@media only screen and (max-width: 43.8em) {
.zci--calculator .tile__calc .tile__display {
width: 50%;
}
.zci--calculator .tile__calc .tile__calc__col {
width: 50%;
}
.zci--calculator .tile__calc .tile__history {
max-width: 260px;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Custom <= 660 */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
@media only screen and (max-width: 37.4em) {
.tile--calculator {
width: 100%;
box-sizing: border-box;
}
.zci--calculator .tile__calc {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
overflow: hidden;
width: 100%;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .tile__calc .tile__display {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
width: 100%;
max-width: none;
border-right: 1px solid #d8d8d8;
}
.zci--calculator .tile__calc .tile__tabs {
width: 300%;
Calculator: [Phase 2] Add Scientific calculator (#4067) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Initial PR for Phase 2 * Add support for brackets. * Added support for Pi * Add support for sin, tan, cos * Added factorial support * Add support for squared / cubed functions * Add support for natural log * Support log_10 function. * Add support for square roots. * Add eulers number. * Implement Engineers Exponent / Formatted Funcs. * Add sci-tab id to handlebars. * Removed positioning for mobile display. * Custom exponents :rocket: * Implemented Euler exponent * Support 1/x button. * Interactified deg/rad toggle. * Add support for degrees / radians * Fix radians bug. * Zaahirs / Mintsofts syntactic changes. * Fixed regex for exponents * Removed blue from toggle. * Allow backspacing through functions. * Allow backspacing through exponents. * Fix +99% bug. * Allow flipping of keypads. * Stop ! being entered first. * Stop EE being entered at start or multiple. * Allow step back through EE * Disallow multiple periods. [skip ci] * Rewrote query to handle natural language. * Addressed phase 1 feedback. * Fixed backspace bug. * Allow backspacing through constants. * Add auto paren support for funcs. * Started the commenting :boom: * Add some comments. * Updated PercentNormalizer comment. * Fix 0/0 Error. * Add 'c' key support * Fix back spacing. * Positioned deg / rad toggle. * Refactoring code. Stage 1. * Added high signal. * Add funcs for Initite/NaN * Moved eval info into separate function. * Abstracted clear function. * Add paren manager. * Refactored out paren state. * Refactored out parenState global * Removed meta. * Backspace through functions. * Set signal to high. * Fixed signal * Pushing updated code. * Refactored backspacing. * Fix up messy code / document. * Fixed + percent bug. * Support EE on mobile. * opens pseudo paren for 1/(x) * Fix large factorial issue. * Allow pi | e as exponent. * use exponents on π and e. * Removed +-3 issue. * Natural log and log now work as exponents * nit: cleaned up expression. * Fixed percent error. * Add phase 3 ledger span (hidden) * Disabled add digits. * Check in UX fixes. * Some light refactoring. * Swap functions. * Fixed shoddy regex. * Add ledger object for phase 3. * Updated percentage / trig regex * Add blank expression if error. * Allow factorial on decimals. * Update code + comments. * Add in calc trigger word. Fixed Backspace. * All backspacing fixed. * Try to recover from open/unfinished exponent * Add high signal for * Update comments. * Updated comments. * improve calculator regex * Strip trailing spaces` * Updated signal code. * Fixed backspacing issue. * swap id for class (ParenManger) * Remove console logs. * Update comment. * Fix bug in regex replacement. * Calculator: [Phase 3] Add History / Calc reloading (#4081) * Set up UI. * Phase 3 implemented. * Remove array. Replace with handlebars. * strip commas by default. * Fixed html interpolation * Add g flag to replacement regex * Strip trailing spaces * remove unneeded option from perl * Added comments to backspace. * Removed ledger properties. Updated using state. * Addressed Zaahir's p2 feedback
2017-04-12 12:31:12 -07:00
position: relative;
left: -100%;
/* default: basic tab */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
transition: left 0.7s;
}
.zci--calculator .tile__calc .tile__tabs.tile__tabs--single-basic {
left: -100%;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .tile__calc .tile__tabs.tile__tabs--single-sci {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
left: 0;
}
.zci--calculator .tile__calc .tile__tabs.tile__tabs--single-history {
left: -200%;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
.zci--calculator .tile__calc .tile__calc__col {
width: 33.33%;
max-width: 33.33%;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
border-right: 1px solid #ccc;
}
.zci--calculator .tile__calc .tile__tabs .tile__tab__sci:first-child {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
margin-left: 0;
}
.zci--calculator .tile__calc .tile__history {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
position: relative;
margin-left: 0;
margin-top: 0;
width: 100%;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
height: 251px;
}
/* 3 tab options */
.zci--calculator .tile__calc .tile__display .tile__option {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
width: 33%;
}
.zci--calculator .tile__calc .tile__display .tile__option__basic {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
text-align: center;
}
.zci--calculator .tile__calc .tile__display .tile__option__history {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
display: table-cell;
}
.is-mobile .zci--calculator .zci__body {
padding-left: 2px;
padding-right: 0;
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
}
/* Custom >= 660 & Tablets <= 960 */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
@media only screen and (min-width: 37.4em) and (max-width: 60em) {
.zci--calculator .tile__tabs.tile__tabs--single-sci .tile__tab__basic {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
width: 0;
}
.zci--calculator .tile__tabs.tile__tabs--single-sci .tile__tab__sci {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
margin-left: 0;
}
.zci--calculator .tile__tabs.tile__tabs--single-basic .tile__tab__basic {}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
}
@media only screen and (max-width: 21em) {
.is-mobile .zci--calculator .zci__body {
padding-right: 0px;
margin-left: 0;
padding-left: 1px;
}
}
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
/* Small mobiles <= 310 */
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
@media only screen and (max-width: 19.375em) {
.zci--calculator .tile__calc .tile__history {
Calculator: [Phase 1] Add basic calculator (#4051) * Phase 1: Add basic calculator * Updated tests. * change template name, use base template, prefill calc with answer * fix test * Added backlog features. * Updated js. * Light refactoring work * Refactored keycodes. * Updated C button. * Rewrote (+/-)% Expressions * Updated the spacing dertermination * Added expression to UI by default. * Update tests. * Updated formatting. * Rewrite percent queries. * Pushing updated codebase. * Add calculator as trigger word * Update tests for new triggers * Stop initializing expression if 0 * add precision support to math eval object. * Removed scientific buttons / history for Phase 1 * Updated math type. * Prevents duplicate OPERADNS * Add duplicate functionality. * Updated unicode. * Removed es6 feature. * Stop first entry being an operand. * Add operator flipping. * Added Precision support. * Handle numpad operator keys * Set and maintain focus, Improved event handling * Bind click handler in loop, stopPropgation of keydown * Cleanup trailing spaces * Fixed broken assignment. * Prevent multiple commas. * Fixed calculator stalling when trying to enter a new operator * Initial refactor. * Refactored out expression array. * Refactored out display var. * reintroduced matheval object for precision. * Cleaned up formatting. * Removed commify. * Removed positioning for mobile display. * Don't set focus on Calc automatically when displayed * Add touchstart support. * Prevent zooming. * ensure button text is not selectable * Add right borders to calc, ensure same border colour * Cleanup code style * Only apply hover state css to desktop
2017-04-06 13:40:56 -07:00
position: relative;
margin-top: 0;
}
}
2017-07-31 19:17:42 -07:00
/*
* DARK THEME
*/
.dark-bg .zci--calculator .tile__calc .tile__ctrl__btn {
background: #2B2B2B;
border: 1px solid #414141;
color: #fdfdfd;
}
.dark-bg .zci--calculator .tile__calc .tile__ctrl__btn:hover {
background: rgba(88, 88, 88, 0.75);
}
.dark-bg .zci--calculator .tile__calc .tile__ctrl--ops,
2017-07-31 19:17:42 -07:00
.dark-bg .zci--calculator .tile__calc .tile__tab__sci .tile__ctrl__btn {
background: #111;
font-weight: lighter;
}
.dark-bg .zci--calculator .tile__calc .tile__ctrl--ops:hover,
2017-07-31 19:17:42 -07:00
.dark-bg .zci--calculator .tile__calc .tile__tab__sci .tile__ctrl__btn:hover {
background: rgba(17, 17, 17, 0.7);
}
.dark-bg .zci--calculator .tile__calc .tile__ctrl__toggle {
background: #111;
border: 1px solid #414141;
color: #fdfdfd;
}
.dark-bg .zci--calculator .tile__ctrl__toggle-slider {
background: #2B2B2B;
}
.dark-bg .zci--calculator .tile__calc .tile__display__main {
background: #2B2B2B;
}
.dark-bg .zci--calculator .tile__calc .tile__ctrl--important {
background: rgb(220, 140, 0);
}
.dark-bg .zci--calculator .tile__calc .tile__ctrl--important:hover {
background: rgba(220, 140, 0, 0.7);
}
.dark-bg .zci--calculator .tile__calc .tile__display {
background: #2B2B2B;
border: 1px solid #414141;
box-shadow: none;
}
.dark-bg .zci--calculator .tile__calc .tile__display__main {
color: #fdfdfd;
}
.dark-bg .zci--calculator .tile__calc .tile__display.selected {
box-shadow: inset -1px -1px 0px #61a0c7, inset 1px 1px 0px #61a0c7;
}
.dark-bg .zci--calculator .tile__calc__col {
border-bottom: none;
}
/* history */
.dark-bg .zci--calculator .tile__calc .tile__history {
background-color: #111;
border: 1px solid #414141;
}
.dark-bg .zci--calculator .tile__calc .tile__past-calc {
background: #2B2B2B;
}
.dark-bg .zci--calculator .tile__calc .tile__past-result {
color: #fdfdfd;
}
.dark-bg .zci--calculator .tile__calc .tile__past-calc {
border-bottom: 1px solid #414141;
}
.dark-bg .zci--calculator .tile__calc .tile__past-calc:hover {
background: #111;
}