-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39905df
commit d669fb7
Showing
1 changed file
with
63 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,141 +1,78 @@ | ||
.calculator-icon{ | ||
width:35px; | ||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
background-color: #f4f4f9; | ||
margin: 0; | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
} | ||
#calculator-section{ | ||
height:90vh; | ||
width:30vw; | ||
background-color:#002147; | ||
border:3px solid #31363F; | ||
border-radius:10px; | ||
margin:auto; | ||
} | ||
.display{ | ||
height:18vh; | ||
width:93%; | ||
background-color:#282C35; | ||
border:2px solid lightgray; | ||
border-radius:10px; | ||
margin:12px auto; | ||
padding-top:3px; | ||
} | ||
#calculations{ | ||
height:8vh; | ||
width:90%; | ||
padding:10px; | ||
/* border:2px solid white; */ | ||
border-radius:10px; | ||
margin:auto; | ||
color:white; | ||
} | ||
#answers{ | ||
height:5vh; | ||
width:90%; | ||
/* border:0.1px solid white; */ | ||
border-radius:11px; | ||
margin: 1px auto; | ||
color:white; | ||
|
||
.calculator { | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
padding: 20px; | ||
background-color: #fff; | ||
box-shadow: 0px 0px 10px 0px #0000001a; | ||
} | ||
.btns-container{ | ||
height:65vh; | ||
width:98%; | ||
/* border:2px solid #0E46A3; */ | ||
margin:auto; | ||
padding:2px; | ||
display:flex; | ||
justify-content:space-evenly; | ||
align-items:space-evenly; | ||
flex-wrap:wrap; | ||
} | ||
.btns{ | ||
height:6vw; | ||
width:6vw; | ||
border:2px solid lightgray; | ||
border-radius:10px; | ||
display:flex; | ||
justify-content:center; | ||
align-items:center; | ||
|
||
} | ||
.btns p{ | ||
font-size:25px; | ||
} | ||
#button-cancel{ | ||
font-size:20px; | ||
|
||
.calculator-screen { | ||
width: 100%; | ||
height: 40px; | ||
border: none; | ||
background-color: #252525; | ||
color: #fff; | ||
text-align: right; | ||
padding-right: 10px; | ||
padding-left: 10px; | ||
font-size: 1.5rem; | ||
border-radius: 5px; | ||
margin-bottom: 10px; | ||
} | ||
.operator{ | ||
background-color:#2196F3; | ||
color:white; | ||
} | ||
.operator:hover{ | ||
background-color:#0E46A3; | ||
|
||
.calculator-keys { | ||
display: grid; | ||
grid-template-columns: repeat(4, 1fr); | ||
gap: 10px; | ||
} | ||
.operator:active{ | ||
background-color:#1E0342; | ||
|
||
button { | ||
height: 40px; | ||
border-radius: 5px; | ||
border: none; | ||
background-color: #f4f4f9; | ||
font-size: 1.2rem; | ||
transition: background-color 0.3s ease-in-out; | ||
} | ||
.num{ | ||
background-color:white; | ||
|
||
button:hover { | ||
background-color: #e1e1e8; | ||
} | ||
.num:hover{ | ||
background-color:#9AC8CD; | ||
color:white; | ||
|
||
.operator { | ||
background-color: #f9a825; | ||
color: #fff; | ||
} | ||
.num:active{ | ||
background-color:#001d3d; | ||
color:white; | ||
|
||
.operator:hover { | ||
background-color: #f57f17; | ||
} | ||
|
||
/* ResponsiveNess Section */ | ||
@media (max-width:767px){ | ||
#calculator-section{ | ||
height:80vh; | ||
width:75vw; | ||
} | ||
.btns-container{ | ||
height:55vh; | ||
width:97%; | ||
} | ||
.btns{ | ||
height:15vw; | ||
width:15vw; | ||
|
||
} | ||
.btns p{ | ||
text-align:center; | ||
font-size:20px; | ||
} | ||
#button-cancel{ | ||
font-size:15px; | ||
|
||
} | ||
.equal-sign { | ||
background-color: #4caf50; | ||
color: #fff; | ||
grid-column: span 2; | ||
} | ||
|
||
.equal-sign:hover { | ||
background-color: #388e3c; | ||
} | ||
|
||
.all-clear { | ||
background-color: #e53935; | ||
color: #fff; | ||
} | ||
@media (min-width: 768px) and (max-width: 991px) { | ||
#calculator-section{ | ||
height:80vh; | ||
width:75vw; | ||
} | ||
.btns-container{ | ||
height:55vh; | ||
width:97%; | ||
} | ||
.btns{ | ||
height:15vw; | ||
width:15vw; | ||
|
||
} | ||
.btns p{ | ||
text-align:center; | ||
font-size:20px; | ||
} | ||
#button-cancel{ | ||
font-size:15px; | ||
|
||
} | ||
|
||
} | ||
|
||
|
||
|
||
.all-clear:hover { | ||
background-color: #d32f2f; | ||
} |