forked from harsh98trivedi/Simple-JavaScript-Calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
126 lines (114 loc) · 2.6 KB
/
style.css
File metadata and controls
126 lines (114 loc) · 2.6 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
body,
html {
padding: 0;
margin: 0;
display: flex;
justify-content: center;
color: #ecf0f1;
background-color: rgb(23, 24, 37);
font-family: 'Fjalla One', sans-serif;
animation: fadein 1.5s;
}
@keyframes fadein {
0% {
opacity: 0%;
}
100% {
opacity: 100%;
}
}
h1 {
font-size: 2.5rem;
font-weight: 500;
margin-bottom: 0;
}
input {
background-color: rgba(52, 73, 94, 0.5);
color: #ecf0f1;
outline: none;
text-align: right;
border: none;
font-size: 3rem;
width: 78vw;
margin-bottom: 0.5rem;
border-radius: 0.5rem;
padding: 0.5rem 1.5rem;
-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
}
.container {
margin: auto;
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.calculator {
padding: 0.25rem;
display: inline-block;
}
table {
margin: auto;
}
button {
border: none;
background-color: white;
width: 20vw;
height: 10vh;
padding: 0.5rem 0;
margin: 0.25vmax;
font-size: 2rem;
border-radius: 0.5rem;
-moz-transition: all ease 0.5s;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
-o-transition: all ease 0.5s;
}
button:active {
transform: scale(0.95);
/* Scaling button to 0.98 to its original size */
box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
/* Lowering the shadow */
}
button:hover {
-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
-moz-transition: all ease 0.5s;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
-o-transition: all ease 0.5s;
}
a{
outline: none;
-moz-transition: all ease 0.5s;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
-o-transition: all ease 0.5s;
}
a:hover{
text-shadow: 0px 0px 10px rgba(241, 196, 15, 0.5);
-moz-transition: all ease 0.5s;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
-o-transition: all ease 0.5s;
}
#turn {
display: none;
z-index: 100;
position: fixed;
}
@media (orientation: landscape) and (max-height: 500px) {
#turn {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-size: 2rem;
color: rgba(52, 73, 94, 1.0);
background-color: rgba(236, 240, 241, 1.0);
}
}