Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
113 lines (99 loc) · 1.85 KB
/
Copy pathstyle.css
File metadata and controls
113 lines (99 loc) · 1.85 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
/* The file for designing my calculator */
body {
background-color: rgb(206, 253, 237);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0%;
padding: 0%;
min-height: 100vh;
}
/* To format Tip Calculator Title */
h1 {
color: rgb(0, 109, 18);
font-size: 40px;
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.container {
max-width: 500px;
width: 50vw;
min-height: 75vh;
border: 2px solid rgb(156, 228, 156);
border-radius: 20px;
box-shadow: 4px 4px 4px rgb(0, 78, 0, 0.7);
animation: slideup 3s;
}
form {
margin-top: 10px;
padding: 3vw;
display: grid;
gap: 15px;
}
label {
color: darkgreen;
font-size: 20px;
}
.total {
font-size: 20px;
color: darkgreen;
}
.error {
display: none;
}
.error.show {
display: block;
color: yellow;
background-color: red;
display: block;
text-align: center;
border: 2px solid red;
border-radius: 10px;
}
#reset_button {
width: 75%;
height: 4vh;
color: white;
background-color: red;
text-align: center;
font-size: 1.6rem;
display: block;
margin: 0 auto;
border: 2px solid red;
border-radius: 10px;
box-shadow: 4px 4px 4px rgba(240, 0, 0, 0.2);
}
/* tablets and small screens */
@media (max-width: 768px) {
.container {
width: 90vw;
height: auto;
margin-top: 5vw;
}
form {
padding: 5vw;
}
h1 {
font-size: 28px;
}
label,
.total {
font-size: 16px;
}
#reset_button {
font-size: 16px;
height: auto;
padding: 10px;
}
}
@keyframes slideup {
from {
transform: translateY(200px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}