-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobileform.css
139 lines (122 loc) · 2.37 KB
/
mobileform.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
/* General body styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #282828;
color: white;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* Header styling */
header {
display: flex;
justify-content: left;
align-items: left;
font-size: 24px;
padding: 15px;
width: 100%;
box-sizing: border-box;
color: white;
}
/* Center the main heading */
h1 {
text-align: center;
margin-left: 12px;
margin-top: 25px;
margin-bottom: 0;
}
.container {
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
margin-bottom: 20px;
padding: 0 30px;
align-items: center;
}
/* Form container styling */
form {
width: 100%;
max-width: 400px; /* Constrain the form width */
background-color: rgba(255, 255, 255, 0); /* Semi-transparent white background */
padding: 20px;
margin-top: 15px;
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
align-items: left; /* Center the form elements */
}
form label {
display: block;
margin: 10px 0 5px;
}
form input[type="text"],
form input[type="number"],
form input[type="date"],
form textarea,
form select {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
}
/* Increase height for the text areas */
form textarea#supplements_taken {
height: 200px; /* Increase height as needed */
}
form textarea#peds_taken {
height: 250px; /* Increase height as needed */
}
/* Submit button styling */
input[type="submit"] {
background-color: #007BFF;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
width: auto;
max-width: 200px;
align-self: center;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
/* Footer styling */
.footer {
text-align: center;
padding: 20px;
}
/* Responsive design adjustments */
@media (max-width: 600px) {
header {
font-size: 18px;
}
form {
padding: 10px;
}
input[type="submit"] {
font-size: 14px;
padding: 8px;
}
form label, form input[type="text"],
form input[type="number"],
form input[type="date"],
form textarea, form select {
font-size: 14px;
}
.footer {
font-size: 14px;
}
}