-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
110 lines (97 loc) · 2.45 KB
/
Copy pathstyle.css
File metadata and controls
110 lines (97 loc) · 2.45 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
:root{
--color_one: #272727;
--color_two: #1b74b5;
--color_three: #0c802e;
}
*{
margin:0;
padding: 0;
box-sizing: border-box;
user-select: none;
}
html{
font-size: 10px;
}
body{
font-family: 'Segoe UI', Tahoma, sans-serif;
height: 100vh;
background-color: var(--color_one);
background: radial-gradient(circle at 50% 0, #454545, var(--color_one) 72%);
}
.container{
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.calculator{
width: min(390px, calc(100vw - 32px));
min-height: 560px;
border-radius: 30px;
border: 2px solid #666;
display: flex;
flex-wrap: nowrap;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 12px;
padding: 28px;
background: #242424;
box-shadow: 0 24px 55px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.08);
}
.btn_cont{
display: flex;
width: 100%;
gap: 12px;
}
.btn, .equals, .AC, .DE, .result{
display: flex;
align-items: center;
justify-content: center;
color: var(--color_two);
font-weight: bold;
text-align: center;
width: 100%;
aspect-ratio: 1;
font-size: 1.35rem;
border-radius: 50%;
background: #303030;
cursor: pointer;
outline: none;
border: none;
box-shadow: 0 5px 0 #111;
transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover, .AC:hover, .DE:hover, .equals:hover{background:#3e3e3e;}
.btn:focus-visible, .AC:focus-visible, .DE:focus-visible, .equals:focus-visible{outline:3px solid #54c7ff;outline-offset:3px;}
.btn, .equlas, .AC, .DE{
text-shadow: 1px 1px 2px rgb(3, 125, 155);
}
.btn:active, .equals:active, .AC:active, .DE:active{
transform: translateY(4px) scale(.97);
box-shadow: 0 1px 0 #111;
}
.btn:not(.num), .equals, .AC, .DE{
color: var(--color_three);
text-shadow: 1px 1px 2px var(--color_three);
}
.result{
display: flex;
justify-content: end;
color: white;
width: 100%;
min-height: 78px;
text-align: right;
padding-inline: 10px;
letter-spacing: 2px;
font-weight: normal;
text-shadow: 1px 1px 2px rgb(212, 212, 212);
cursor: auto;
border-radius: 14px;
background: #171717;
box-shadow: inset 0 2px 8px rgba(0,0,0,.45);
overflow: hidden;
text-wrap: nowrap;
}
@media (max-width: 380px){.calculator{min-height:500px;padding:20px;gap:9px;}.btn_cont{gap:9px;}.result{min-height:64px;}}