Skip to content
Snippets Groups Projects
Commit dc4734df authored by Haidar's avatar Haidar
Browse files

style: add styling for responsive

hall of fame admin page
parent d4d2d03c
Branches
Tags
No related merge requests found
body { body {
background-color: white; background-image: url('../img/basic-wallpaper5.jpeg');
text-align: center;
font-family: Arial, sans-serif;
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
}
.back {
background-color: #007BFF;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 3px;
font-size: 18px;
cursor: pointer;
margin-top: 21px;
} }
#form { #form {
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
padding: 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin-bottom: 20px; margin: 50px auto 20px auto;
max-width: 40%; max-width: 80%;
margin-left: 400px;
}
.center-content {
background-color: #ffffff;
padding: 20px; padding: 20px;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
text-align: center; border-radius: 5px;
} }
h1 { h1 {
...@@ -28,13 +37,18 @@ h1 { ...@@ -28,13 +37,18 @@ h1 {
.form-grid { .form-grid {
display: grid; display: grid;
grid-template-columns: repeat(2, 1fr); grid-template-columns: 1fr;
gap: 40px; gap: 20px;
} }
.form-group {
margin-right: 10px;
}
label { label {
display: block; display: block;
margin-bottom: 5px; margin-bottom: 10px;
font-weight: bold; font-weight: bold;
color: #007BFF; color: #007BFF;
} }
...@@ -44,13 +58,12 @@ input[type="email"], ...@@ -44,13 +58,12 @@ input[type="email"],
input[type="password"], input[type="password"],
input[type="checkbox"] { input[type="checkbox"] {
width: 100%; width: 100%;
max-width: 300px;
padding: 8px; padding: 8px;
border: 3px solid #ccc; border: 3px solid #ccc;
border-radius: 3px; border-radius: 3px;
font-size: 16px; font-size: 16px;
color: #333; color: #333;
margin-bottom: 8px; margin-bottom: 15px;
} }
input[type="submit"] { input[type="submit"] {
...@@ -68,3 +81,18 @@ input[type="submit"] { ...@@ -68,3 +81,18 @@ input[type="submit"] {
margin-bottom: 20px; margin-bottom: 20px;
text-align: center; text-align: center;
} }
@media (min-width: 768px) {
#form {
max-width: 40%;
margin-left: 400px;
margin-top: 50px;
}
.form-grid {
grid-template-columns: repeat(2, 1fr);
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment