-
Notifications
You must be signed in to change notification settings - Fork 0
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
3e238d8
commit d26ebb3
Showing
1 changed file
with
125 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,125 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Raleway:wght@500&display=swap'); | ||
|
||
*{ | ||
margin: 0; | ||
padding: 0; | ||
font-family: "Orbitron", sans-serif; | ||
} | ||
|
||
body{ | ||
display: flex; | ||
height: 100vh; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: #060606ba; | ||
} | ||
|
||
.container{ | ||
background-color: #62616197; | ||
position: relative; | ||
min-width: 300px; | ||
min-height: 400px; | ||
padding: 40px 30px 30px; | ||
border-radius: 20px; | ||
box-shadow: 25px 25px 75px rgba(0, 0, 0, 0.25), | ||
10px 10px 10px rgba(0, 0, 0, 0.25), | ||
inset -5px -5px -15px rgba(0, 0, 0, 0.25), | ||
inset 5px 5px 15px rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.container span{ | ||
color: #fff; | ||
position: relative; | ||
display: grid; | ||
width: 80px; | ||
place-items: center; | ||
margin: 8px; | ||
height: 80px; | ||
background: linear-gradient(180deg, #2f2f2f, #3f3f33); | ||
box-shadow: inset -8px 0 8px rgba(0, 0, 0, 0.25), | ||
inset 0 -8px 8px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(0, 0, 0, 0.75), | ||
10px 20px 25px rgba(0, 0, 0, 0.4); | ||
user-select: none; | ||
cursor: pointer; | ||
font-weight: 400; | ||
border-radius: 10px; | ||
} | ||
|
||
.calculator span:active{ | ||
filter: brightness(1.5); | ||
} | ||
|
||
.calculator span::before{ | ||
content: ""; | ||
position: absolute; | ||
top: 3px; | ||
left: 4px; | ||
bottom: 14px; | ||
right: 12px; | ||
border-radius: 10px; | ||
background: linear-gradient(90deg, #2d2d2d, #4d4d4d); | ||
box-shadow: -5px -5px 15px rgba(0, 0, 0, 0.1), | ||
10px 5px 10px rgba(0, 0, 0, 0.15); | ||
border-left: 1px solid #0004; | ||
border-bottom: 1px solid #0004; | ||
border-top: 1px solid #0004; | ||
} | ||
|
||
.calculator span i{ | ||
position: relative; | ||
font-style: normal; | ||
font-size: 1.5em; | ||
text-transform: uppercase; | ||
} | ||
|
||
.calculator{ | ||
position:relative; | ||
display: grid; | ||
} | ||
|
||
.calculator .value{ | ||
position: relative; | ||
grid-column: span 4; | ||
height: 100px; | ||
/* width: calc(100%-20px); */ | ||
width: 350px; | ||
left: 10px; | ||
border: none; | ||
outline: none; | ||
background-color: #90918d; | ||
margin-bottom: 10px; | ||
border-radius: 10px; | ||
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.75); | ||
text-align: right; | ||
padding: 10px; | ||
font-size: 1.5em; | ||
} | ||
|
||
.calculator .clear{ | ||
grid-column: span 2; | ||
width: 180px; | ||
background: #f00; | ||
} | ||
|
||
.calculator .clear::before{ | ||
background: linear-gradient(90deg, #d20000, #ffffff5c); | ||
border-left: 1px solid #fff4; | ||
border-bottom: 1px solid #fff4; | ||
border-top: 1px solid #fff4; | ||
} | ||
|
||
.calculator .plus{ | ||
grid-row: span 2; | ||
height: 180px; | ||
} | ||
|
||
.calculator .equal{ | ||
background: #2196f3; | ||
} | ||
|
||
.calculator .equal::before{ | ||
background: linear-gradient(90deg, #1479c9, #ffffff5c); | ||
border-left: 1px solid #fff4; | ||
border-bottom: 1px solid #fff4; | ||
border-top: 1px solid #fff4; | ||
} |