From 084dbbd664a2c885381939f589bdf7606469d164 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 3 Mar 2021 09:47:11 +0100 Subject: [PATCH] Added calculator project --- calc.css | 65 ++++++++++++++++++++++++++++++++++++++++++ calculator.php | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++ header.php | 2 +- impressum.php | 2 +- index.php | 2 -- style.css | 5 +--- 6 files changed, 144 insertions(+), 8 deletions(-) create mode 100644 calc.css create mode 100644 calculator.php diff --git a/calc.css b/calc.css new file mode 100644 index 0000000..b53e9a1 --- /dev/null +++ b/calc.css @@ -0,0 +1,65 @@ +#eingabe { + resize: none; + overflow: auto; + background-color: rgba(0, 0, 0, 0.5); + color:aliceblue; + height: 100px; + font-family: 'Ubuntu', sans-serif; + font-size: 35px; + width: 400px; + border-top: rgba(0, 0, 0, 0); + border-left: rgba(0, 0, 0, 0); + border-right: rgba(0, 0, 0, 0); + border-bottom: rgba(0, 0, 0, 1); + text-align: right; +} +.numberbutton { + width: 100px; + height: 100px; + background-color: rgba(0, 0, 0, 0.5); + color:aliceblue; + font-family: 'Ubuntu', sans-serif; + font-size: 50px; + border: rgba(0, 0, 0, 0); + margin-left: -2; + margin-right: -2; +} +.zerobutton { + width: 200px; + height: 100px; + background-color: rgba(0, 0, 0, 0.5); + color:aliceblue; + font-family: 'Ubuntu', sans-serif; + font-size: 50px; + border: rgba(0, 0, 0, 0); + margin-left: -3; +} +.comabutton { + width: 100px; + height: 100px; + background-color: rgba(0, 0, 0, 0.5); + color:aliceblue; + font-family: 'Ubuntu', sans-serif; + font-size: 50px; + border: rgba(0, 0, 0, 0); + margin-left: -4; + margin-right: -2; +} +.numberbutton:hover { + background-color: rgba(10, 10, 10, 0.5); +} +.comabutton:hover { + background-color: rgba(10, 10, 10, 0.5); +} +.zerobutton:hover { + background-color: rgba(10, 10, 10, 0.5); +} +.numberbutton:active { + background-color: rgba(110, 110, 110, 0.5); +} +.comabutton:active { + background-color: rgba(110, 110, 110, 0.5); +} +.zerobutton:active { + background-color: rgba(110, 110, 110, 0.5); +} diff --git a/calculator.php b/calculator.php new file mode 100644 index 0000000..f2a6843 --- /dev/null +++ b/calculator.php @@ -0,0 +1,76 @@ + + + + Tronax - Calculator + + + + + + + + + + + + + + + + +
+
+ +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/header.php b/header.php index b8419bf..e895da9 100644 --- a/header.php +++ b/header.php @@ -8,7 +8,7 @@