diff options
author | 2022-04-01 01:05:07 +0000 | |
---|---|---|
committer | 2022-04-01 01:25:24 +0000 | |
commit | 618694df599da5a2027a6f7bcd9b0bf58ead309d (patch) | |
tree | 439a90439947cdf189491285353c20b2091f6a83 /apps/Calculator/styles/_calculator.scss | |
parent | e5e5fde6d4c50bcecc61c67b2fd0f97d927f623d (diff) | |
download | my_apps-618694df599da5a2027a6f7bcd9b0bf58ead309d.tar.gz my_apps-618694df599da5a2027a6f7bcd9b0bf58ead309d.tar.bz2 my_apps-618694df599da5a2027a6f7bcd9b0bf58ead309d.zip |
Added Calculator app
Diffstat (limited to 'apps/Calculator/styles/_calculator.scss')
-rw-r--r-- | apps/Calculator/styles/_calculator.scss | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/apps/Calculator/styles/_calculator.scss b/apps/Calculator/styles/_calculator.scss new file mode 100644 index 0000000..987a0ea --- /dev/null +++ b/apps/Calculator/styles/_calculator.scss @@ -0,0 +1,92 @@ +.calculator { + width: 100%; + height: 100%; + position: relative; + background-color: #000; + display: flex; + flex-direction: column; + background-color: var(--color-window-content); +} + +.display { + height: 20%; + background-color: var(--color-text); + color: var(--color-window-content); + display: flex; + flex-direction: column; + padding-right: 1em; + + > div:nth-child(1) { + font-size: 1em; + padding-top: .5em; + white-space: nowrap; + text-align: right; + } + + > div:nth-child(2) { + font-size: 2.5em; + flex-grow: 1; + display: flex; + align-items: center; + justify-content: flex-end; + } +} + +.keys { + height: 80%; + width: 100%; + display: flex; + + & > div { + height: 100%; + display: flex; + + & > div { + height: 25%; + display: flex; + justify-content: center; + align-items: center; + border: 1px solid var(--color-window-buttons); + transition: .3s background-color; + font-size: 2em; + } + + &:nth-of-type(1) { + width: 75%; + flex-wrap: wrap; + background-color: var(--color-window-popup); + + & > div { + width: 33.3%; + flex-grow: 1; + + &:hover { + background-color: var(--color-window-content); + } + + &:first-of-type { + order: 2; + } + + &:nth-of-type(12) { + order: 3; + } + } + } + + &:nth-of-type(2) { + width: 25%; + flex-direction: column; + + & > div { + width: 100%; + background-color: var(--color-window-menu-alt); + + &:hover { + background-color: var(--color-window-content); + } + } + } + } + +} |