1+ @import url ('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap' );
2+
3+ * {
4+ padding : 0 ;
5+ margin : 0 ;
6+ box-sizing : border-box;
7+ }
8+
9+ html {
10+ height : 100% ;
11+ }
12+
13+ body {
14+ width : 100% ;
15+ height : 100% ;
16+ display : flex;
17+ justify-content : center;
18+ align-items : center;
19+ font-family : 'Roboto' , sans-serif;
20+ }
21+
22+ .calculator {
23+
24+ min-width : 20% ;
25+ height : 100% ;
26+ display : flex;
27+ align-items : center;
28+ justify-content : center;
29+ flex-direction : column;
30+ gap : 4px ;
31+ }
32+
33+ .row {
34+ display : flex;
35+ align-items : center;
36+ width : 100% ;
37+ justify-content : center;
38+ gap : 2px ;
39+ }
40+
41+ input {
42+ width : 100% ;
43+ border : 2px solid rgb (52 , 216 , 52 );
44+ border-radius : 0.3rem ;
45+ background-color : rgba (52 , 216 , 52 , 0.527 );
46+ height : 7% ;
47+ font-size : 2rem ;
48+ text-align : right;
49+ padding-right : 4px ;
50+ color : black;
51+ }
52+
53+ button {
54+ width : 100% ;
55+ height : 3rem ;
56+ transition : transform 0.1s ease-in-out;
57+ }
58+
59+ button : active {
60+ transform : scale (0.9 );
61+ }
62+
63+ .num-btn {
64+ background-color : rgba (163 , 88 , 218 , 0.527 );
65+ border : 2px solid rgb (162 , 88 , 214 );
66+ color : rgb (162 , 88 , 214 );
67+ border-radius : 0.14rem ;
68+ font-size : 1.4rem ;
69+ }
70+
71+ .num-btn : active {
72+ background-color : rgb (81 , 41 , 110 );
73+ border : 2px solid rgb (81 , 41 , 110 );
74+ color : white;
75+ }
76+
77+ .action-btn {
78+ background-color : rgba (51 , 104 , 173 , 0.527 );
79+ border : 2px solid rgb (51 , 104 , 173 );
80+ color : rgb (51 , 104 , 173 );
81+ border-radius : 0.15rem ;
82+ font-size : 1.5rem ;
83+ }
84+
85+ .action-btn : active {
86+ border : 2px solid rgb (35 , 74 , 124 );
87+ background-color : rgb (35 , 74 , 124 );
88+ color : white;
89+ }
90+
91+ .mega-btn {
92+ background-color : rgba (233 , 171 , 55 , 0.527 );
93+ border : 2px solid rgb (233 , 171 , 55 );
94+ border-radius : 0.15rem ;
95+ font-size : 1rem ;
96+ color : black;
97+ }
98+
99+ .mega-btn : active {
100+ background-color : rgb (233 , 171 , 55 );
101+ color : black;
102+ }
0 commit comments