From 39658cc749e7d211881e2b82a70f1b263cdea4b3 Mon Sep 17 00:00:00 2001 From: Yufi Ariftiyo Sidi <55576721+yufias@users.noreply.github.com> Date: Thu, 21 Nov 2019 21:41:49 +0700 Subject: [PATCH 1/2] Kalkulator Yufi --- index.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/index.html b/index.html index b7becba..8edb2be 100644 --- a/index.html +++ b/index.html @@ -7,5 +7,35 @@

Kalkulator

+ +
+
+
+ + + + + + + +
+ + + + +
+ + + + +
+ + + + +
+
+
From c53a60443712439d980789e89cb25b1a7e302a3e Mon Sep 17 00:00:00 2001 From: Yufi Ariftiyo Sidi <55576721+yufias@users.noreply.github.com> Date: Thu, 21 Nov 2019 21:42:36 +0700 Subject: [PATCH 2/2] Add files via upload --- style.css | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 style.css diff --git a/style.css b/style.css new file mode 100644 index 0000000..3db9c1a --- /dev/null +++ b/style.css @@ -0,0 +1,104 @@ +body { + background: linear-gradient(94deg, rgba(6,80,97,1) 0%, rgba(15,150,158,1) 43%, rgba(2,18,80,0.8743872549019608) 100%); + font-family: Arial; +} + +h1{ + color: gold; +} + +.container { + display: flex; + align-items: center; + justify-content: center; + height: 100vh; + width: 100vw; +} + +#container { + width: 200px; + padding: 8px 8px 20px 8px; + margin: 10px auto; + background-color: silver; + border-radius: 4px; + border-top: 2px solid whitesmoke; + border-right: 2px solid whitesmoke; + border-bottom: 2px solid whitesmoke; + border-left: 2px solid whitesmoke; + box-shadow: -3px 3px 7px rgba(0, 0, 0, .6), inset -100px 0px 100px rgba(255, 255, 255, .5); +} + +#display { + display: block; + margin: 20px auto; + height: 48px; + width: 170px; + padding: 15px; + border-radius: 4px; + border-top: 2px solid #C1C1C1; + border-right: 2px solid #C1C1C1; + border-bottom: 2px solid #FFF; + border-left: 2px solid #FFF; + background-color: #FFF; + box-shadow: inset 0px 0px 10px #030303, inset 0px -20px 1px rgba(150, 150, 150, .2); + font-size: 28px; + color: #666; + text-align: right; + font-weight: 400; +} + +.button { + display: inline-block; + margin: 2px; + width: 42px; + height: 42px; + font-size: 16px; + font-weight: bold; + border-radius: 4px; +} + +.mathButtons { + margin: 2px 2px 6px 2px; + color: #FFF; + text-shadow: -1px -1px 0px #44006F; + background-color: #434343; + border-top: 2px solid #C1C1C1; + border-right: 2px solid #C1C1C1; + border-bottom: 2px solid #181818; + border-left: 2px solid #181818; + box-shadow: 0px 0px 2px #030303, inset 0px -20px 1px #2E2E2E; +} + +.digits { + color: #181818; + text-shadow: 1px 1px 0px #FFF; + background-color: #EBEBEB; + border-top: 2px solid #FFF; + border-right: 2px solid #FFF; + border-bottom: 2px solid #C1C1C1; + border-left: 2px solid #C1C1C1; + border-radius: 4px; + box-shadow: 0px 0px 2px #030303, inset 0px -20px 1px #DCDCDC; +} + +.digits:hover, +.mathButtons:hover, +#clearButton:hover { + background-color: #FFBA75; + box-shadow: 0px 0px 2px #FFBA75, inset 0px -20px 1px #FF8000; + border-top: 2px solid #FFF; + border-right: 2px solid #FFF; + border-bottom: 2px solid #AE5700; + border-left: 2px solid #AE5700; +} + +#clearButton { + color: #FFF; + text-shadow: -1px -1px 0px #44006F; + background-color: #D20000; + border-top: 2px solid #FF8484; + border-right: 2px solid #FF8484; + border-bottom: 2px solid #800000; + border-left: 2px solid #800000; + box-shadow: 0px 0px 2px #030303, inset 0px -20px 1px #B00000; +} \ No newline at end of file