-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstyle.css
172 lines (151 loc) · 3.2 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat&family=Pacifico&display=swap');
body {
font-family: 'Roboto', sans-serif;
background: url('./public/background.jpg');
background-size: cover;
display: grid;
grid-template-columns: 0.5fr 0.5fr;
grid-template-rows: 150px 0.1fr 80px;
}
header {
grid-column: 1/3;
font-size: 3rem;
text-align: center;
}
header h1 {
margin: 0;
color: rgb(185, 182, 115);
font-family: monospace;
text-shadow: 1px 2px 7px #79a8db;
animation: h1-animate 2s infinite;
}
@keyframes h1-animate {
0%,
90%,
100% {
opacity: 1;
}
95% {
opacity: 0;
}
}
header quote {
color: white;
font-family: 'Caveat', cursive;
font-size: 2rem;
margin-left: 250px;
}
.container {
width: 350px;
height: 250px;
background: linear-gradient(75deg, #6eb66e, #8b9baf, #c9b49a, #68ac68);
border-radius: 20px;
font-weight: bold;
margin-top: 14.5%;
margin-left: 35%;
text-align: center;
box-shadow: 5px 5px 50px #8b8680cc;
transform: scale(1.2);
}
.unit {
display: flex;
justify-content: center;
grid-gap: 130px;
color: white;
padding: 10px 0;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
background: rgba(0, 0, 161, 0.801);
}
.unit #us:hover,
.unit #si:hover {
transition: .3s;
transform: scale(1.1, 1) translateY(3px);
cursor: pointer;
}
.form input[type="text"],
.form input[type="radio"],
.form input[type="submit"] {
border-radius: 5px;
background: rgb(211, 211, 211);
}
.age,
.size,
.btn {
margin: 10px 0;
}
.gender>label {
margin-right: 25px;
}
#fheight,
#fweight {
margin-bottom: 10px;
width: 100px;
}
.btn {
display: flex;
grid-gap: 25px;
padding-left: 20%;
}
.btn>button {
padding: 5px 7px;
box-shadow: 2px 2px 5px #5c5955;
font-size: 1.1rem;
border-radius: 10px;
background: rgb(211, 211, 211);
cursor: pointer;
}
.btn>button:hover {
transition: 0.3s;
transform: translateY(4px);
}
.table {
width: 400px;
height: 300px;
background: rgba(255, 255, 255, 0.199);
border-radius: 20px;
margin-top: 10%;
box-shadow: 5px 5px 50px #8b8680cc;
color: white;
}
.result {
display: flex;
justify-content: space-around;
border-bottom: 1px double #8f806e;
}
.index {
height: 40px;
width: 7%;
margin-left: 30px;
margin-top: 15px;
/*do dai 30-345*/
transition: 1.5s;
font-weight: bold;
}
.index img {
width: 25px;
filter: invert(90%);
}
.table .ruler {
background: linear-gradient(90deg, rgba(255, 0, 0, 0.877) 12.9%, pink 14.8%, yellow 19.35%, rgb(0, 214, 0) 40.6%, rgb(16, 16, 247) 46.4%, magenta 70.9%, red 87%, rgb(163, 0, 27) 100%);
width: 80%;
height: 50px;
margin-left: 10%;
border-radius: 15px;
}
.table .infor {
margin: 20px 10px;
}
footer {
background: rgba(223, 223, 223, 0.281);
grid-column: 1/3;
margin-top: 25px;
margin-left: 29%;
display: flex;
justify-content: center;
align-items: center;
width: 40%;
border-radius: 30px;
color: white;
}