-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
115 lines (95 loc) · 2.21 KB
/
style.css
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
113
114
115
@import url('https://fonts.googleapis.com/css2?family=Inter&family=Roboto:ital,wght@0,300;1,500&display=swap');
*{
box-sizing: border-box;
font-family: 'Roboto', 'Inter', sans-serif;
margin: 0;
padding: 0;
}
body{
background-color: aliceblue;
background-image: linear-gradient(rgb(15, 15, 54), rgb(44, 44, 116));
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
.title{
color: white;
}
.calculator_container{
border:1px solid white;
border-radius: 40px;
background-color: black;}
.calculator_container:hover{
box-shadow: 0 0 8px white;
}
.screen, .preview{
display: flex;
justify-content:end;
align-items: center;
margin-right: 10px;
}
.preview{
padding: 3px;
margin-right: 16px;
}
.screen{
padding: 10px 0;
color: white;
}
.screen span, .preview span{
color:rgb(161, 160, 160)
}
.preview span{
font-size: 20px;
}
.screen span{
font-size: 60px;
}
.calculator_container .btns{
display: grid;
grid-template-columns: auto;
gap:10px;
margin:10px;
}
.calculator_container .btns > [class |= "row"]{
display: flex ;
justify-content: space-between;
gap:10px;
}
.calculator_container .btns > [class |= "row"] > div{
border-radius: 50%;
width:60px;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(31, 31, 31);
transition: transform 0.2s ease-in-out;
}
.calculator_container .btns > [class |= "row"] > div:hover{
background-color: rgb(128, 128, 126);
}
.calculator_container .btns > [class = "row-1"] > div:hover{
opacity: 0.9;
}
.calculator_container .btns > [class |= "row"] > div:hover{
cursor: pointer;
transform: translate(-3px, -3px);
}
.calculator_container .btns > [class = "row-1"] > div{
background-color: rgb(86, 86, 86);
}
.calculator_container .btns [class = "row-5"] > div:first-child{
flex-grow: 1;
border-radius: 40px;
}
.calculator_container .btns > [class |= "row"] > div:last-child{
background-color: orange;
}
.calculator_container .btns > [class |= "row"] span{
color: white;
text-align: center;
font-size: 30px;
}