-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
104 lines (93 loc) · 2.5 KB
/
styles.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
/* Basic Reset */
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
body, h1, h2, h3, p {
margin: 0;
padding: 0;
}
form {
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 400px;
width: 100%;
}
/* Style the form container */
#userForm {
max-width: 400px;
margin: 40px auto;
padding: 20px;
background: #333; /* Darker form background */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
border-radius: 8px;
}
/* Style the input fields */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box; /* Include padding in the width calculation */
}
/* Style the submit button */
button {
width: 100%;
padding: 10px;
background-color: #0056b3;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #003d82;
}
/* Hover effect for input fields */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
textarea:hover {
border-color: #e74c3c; /* Accent color on hover */
}
/* Style for textarea */
textarea {
height: 80px; /* Adjust the height */
width: 800px; /* Adjust the width to match the inputs */
padding: 10px; /* Consistent padding with other inputs */
margin-bottom: 10px; /* Space below the textarea */
border: 1px solid #ddd; /* Consistent border with other inputs */
border-radius: 4px; /* Rounded corners like other inputs */
resize: none; /* Allow vertical resizing, none to disable */
box-sizing: border-box; /* Include padding and border in the width and height */
}
/* Style for submission message */
.submission-message {
color: #27ae60; /* Green color for success messages */
font-size: 1.2rem; /* Larger font size for visibility */
margin-top: 20px; /* Spacing from the form */
padding: 10px;
border: 1px solid #27ae60; /* Border color similar to text */
border-radius: 5px; /* Rounded corners */
background-color: #ecf8f2; /* Light green background for contrast */
display: none; /* Initially hidden */
}
/* Responsive Design */
@media screen and (max-width: 600px) {
#userForm {
width: 90%;
margin: 20px auto;
}
}