-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddstudentdetails.css
More file actions
128 lines (116 loc) · 3.21 KB
/
Copy pathaddstudentdetails.css
File metadata and controls
128 lines (116 loc) · 3.21 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
125
126
127
128
body {
font-family: Arial, sans-serif;
background-color: #d8e7f8;
}
/* Navigation Bar Styling */
.navbar {
background-color: #2c3e50; /* Dark blue-gray */
color: white;/*added*/
padding: 15px 0;/*added*/
/*overflow: hidden;*/
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
/* display: flex; /* Use flexbox for horizontal layout */
/*justify-content: center; /* Center the navigation items */
/* flex-wrap: wrap; /* Allow items to wrap on smaller screens */
text-align: center;/*added*/
}
.navbar ul li{ /*added*/
display: inline-block;
margin-right: 30px;
}
.navbar ul li a {
/* display: block;*/
color: white;
/* text-align: center;*/
padding: 10px 15px;
text-decoration: none;
transition: background-color 0.3s ease, color 0.3s ease;
/*font-weight: 400;*/
white-space: nowrap; /* Prevents text from breaking into multiple lines */
border-radius: 5px;/*added*/
}
.navbar ul li a:hover {
background-color: #3498db; /* Slightly lighter on hover */
color: white; /* Light gray text on hover */
}
.navbar ul li a.active {
background-color: #3498db; /* Greenish-blue for active link */
color: white;
/*font-weight: 700;*/
}
/* Special styling for logout button, pushed to the far right if space allows */
.navbar ul li.last-child {
float: right;
margin-right: 20px;
}
h2{
color: #0056b3; /* A nice blue for the heading */
margin-bottom: 10px;
font-size: 2em;
}
form {
width: 50%;
margin: 40px auto;
padding: 20px;
display: grid;
border: 1px solid #ccc;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label {
display: block;
margin-bottom: 10px;
font-weight: bold;
}
input[type="text"], input[type="email"], textarea, select {
width: calc(100%-20px);
height: 40px;
margin-bottom: 15px;
box-sizing: border-box;
padding: 10px;
border: 1px solid #c0d9ed; /* Lighter, subtle border */
border-radius: 8px;
font-size: 1em;
}
/*input[type="submit"] {
width: 100%;
height: 40px;
background-color: #4CAF50;
color: #fff;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
}
input[type="submit"]:hover {
background-color: #3e8e41;
}*/
input[type="submit"] {
background-color: #28a745; /* Green submit button */
color: white;
padding: 15px 30px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 1.2em;
font-weight: 700;
transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
margin-top: 20px; /* Space above the button */
width: auto; /* Allow button to size to its content */
align-self: center; /* Center the button in the grid */
justify-self: center; /* Center horizontally in the grid */
}
input[type="submit"]:hover {
background-color: #218838; /* Darker green on hover */
transform: translateY(-3px); /* Lift effect */
box-shadow: 0 8px 15px rgba(40, 167, 69, 0.3); /* Green shadow on hover */
}
input[type="submit"]:active {
transform: translateY(0); /* Return to original position on click */
box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}