-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
124 lines (106 loc) · 2.17 KB
/
style.css
File metadata and controls
124 lines (106 loc) · 2.17 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
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap");
* {
margin: 0;
padding: 0;
user-select: none;
box-sizing: border-box;
}
/* background, body */
html,
body {
height: 100%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
background-color: rgb(255, 178, 89);
position: relative;
}
.video-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
/* center box , main div ---------------- */
.calculator {
position: relative;
z-index: 1;
width: 350px;
height: 400px;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 5px 30px;
padding: 20px;
border-radius: 10px;
overflow: hidden;
background-color: rgb(0, 0, 0);
}
/* output area */
textarea {
height: 80px;
font-size: 35px;
background-color: rgba(2, 2, 2, 0.24);
color: rgb(255, 255, 255);
border-radius: 5px;
border: none;
outline: none;
text-align: right;
padding-right: 20px;
line-height: 80px;
grid-column: 1/5;
overflow: hidden;
resize: none;
}
/* all button */
.num {
display: grid;
place-items: center;
cursor: pointer;
color: rgb(255, 255, 255);
font-weight: 700;
font-size: 18px;
background-color: black;
border-radius: 35% 10%;
transition-duration: .1s;
}
/* special button */
.btn2 {
color: #9900ff;
font-size: 16px;
}
/* hover effects ------------------------------------------- */
.num:hover {
background-color: #9900ff;
}
.btn2:hover {
background-color: #9900ff;
color: white;
}
/* responsiveness / media queries -------------------- */
@media (width< 460px) {
html,
body {
background-color: black;
}
.calculator {
height: 100%;
width: 100%;
border-radius: 0px;
padding: 0px 10px 10px 10px;
gap: 0px 0px;
}
.num {
margin: 2vw 4vw;
}
textarea {
height: 35vh;
padding-top: 20vh;
background-color: transparent;
color: white;
place-content: center;
}
}