-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
112 lines (97 loc) · 1.96 KB
/
Copy pathstyles.css
File metadata and controls
112 lines (97 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
:root {
--bodyBg: cyan;
--bodyCol: black;
--fontFamily: "QuickSand", sans-serif;
--mainBg: white;
--displayBg: rgba(0, 0, 255, 0.1);
--displayErrorBg: rgba(255, 0, 0, 0.7);
--displaySuccessBg: rgb(0, 255, 0);
--boxShadow: 15px 10px 10px rgba(0, 0, 0, 0.1);
--equalBg: rgba(0, 0, 255, 0.25);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
overflow: hidden;
background: var(--bodyBg);
color: var(--bodyCol);
font-family: var(--fontFamily);
}
/* Some Classes */
.center {
display: flex;
justify-content: center;
align-items: center;
}
/* Main */
main {
flex-direction: column;
justify-content: space-evenly !important;
width: clamp(200px, 95%, 350px);
padding: 20px 0;
aspect-ratio: 2/3.3;
background: var(--mainBg);
border-radius: 40px;
opacity: 0;
animation: show 2s ease 0.05s forwards;
}
@keyframes show {
100% { opacity: 1; }
}
/* Display Screen Input */
#display {
user-select: text; /* Can Select Text Only */
justify-content: flex-start;
width: 85%;
height: 15%;
padding: 20px;
outline: 7px solid white;
border-radius: 30px;
background: var(--displayBg);
font-size: 3.5rem;
letter-spacing: 4px;
box-shadow: var(--boxShadow);
overflow: auto hidden; /* OverFlow in X-Axis */
transition: background 0.5s ease;
white-space: nowrap;
}
#display.error { background: var(--displayErrorBg); }
#display.success { background: var(--displaySuccessBg); }
/* Buttons Cont */
#btnsCont {
width: 95%;
flex-flow: row wrap;
gap: 15px;
}
.btn {
display: inline-flex;
width: 60px;
aspect-ratio: 1;
border: 0;
border-radius: 50%;
box-shadow: var(--boxShadow);
font-size: 1.2rem;
font-weight: bold;
font-family: var(--fontFamily);
cursor: pointer;
transition: opacity 0.3s ease;
user-select: none;
}
.btn:hover {
opacity: 0.5;
}
#equal {
margin-left: 3px;
width: 40%;
padding: 20px 0;
aspect-ratio: unset;
border-radius: 30px;
background: var(--equalBg);
transform: translateY(4px);
}