151 lines
2.7 KiB
CSS
151 lines
2.7 KiB
CSS
|
|
/* ================= PAGE WRAPPER ================= */
|
||
|
|
.main {
|
||
|
|
margin-left: 260px;
|
||
|
|
width: calc(100% - 260px);
|
||
|
|
margin-top: 80px;
|
||
|
|
padding: 20px;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= CONTAINER ================= */
|
||
|
|
.container {
|
||
|
|
background: #ffffff;
|
||
|
|
padding: 25px;
|
||
|
|
width: 100%;
|
||
|
|
max-width: 1200px;
|
||
|
|
margin: auto;
|
||
|
|
border-radius: 8px;
|
||
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= PAGE TITLE ================= */
|
||
|
|
.container h2 {
|
||
|
|
color: #007bff;
|
||
|
|
font-size: 22px;
|
||
|
|
font-weight: 700;
|
||
|
|
margin-bottom: 25px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= FORM ================= */
|
||
|
|
form {
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= FORM GROUP ================= */
|
||
|
|
.form-group {
|
||
|
|
margin-bottom: 16px;
|
||
|
|
font-weight: 600;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= INPUTS ================= */
|
||
|
|
form input,
|
||
|
|
form select {
|
||
|
|
padding: 10px 12px;
|
||
|
|
width: 100%;
|
||
|
|
margin-top: 6px;
|
||
|
|
border: 1px solid #ccc;
|
||
|
|
border-radius: 6px;
|
||
|
|
background-color: #f8f9ff;
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
form input:focus,
|
||
|
|
form select:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: #007bff;
|
||
|
|
box-shadow: 0 0 6px rgba(0, 123, 255, 0.35);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= AUTO FIELDS ================= */
|
||
|
|
.auto {
|
||
|
|
background-color: #d5edd7;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= INLINE 2 COLUMNS ================= */
|
||
|
|
.form-group.inline-2 {
|
||
|
|
flex-direction: row;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-group.inline-2>div {
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= SUBMIT BUTTON ================= */
|
||
|
|
button {
|
||
|
|
width: 60%;
|
||
|
|
margin: 25px auto 0;
|
||
|
|
padding: 12px 20px;
|
||
|
|
background-color: #28a745;
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
border-radius: 6px;
|
||
|
|
font-size: 15px;
|
||
|
|
font-weight: 600;
|
||
|
|
cursor: pointer;
|
||
|
|
display: block;
|
||
|
|
transition: 0.3s;
|
||
|
|
}
|
||
|
|
|
||
|
|
button:hover {
|
||
|
|
background-color: #218838;
|
||
|
|
box-shadow: 0 4px 10px rgba(40, 167, 69, 0.35);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= MOBILE ================= */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
|
||
|
|
.main {
|
||
|
|
margin-left: 0;
|
||
|
|
width: 100%;
|
||
|
|
padding: 15px;
|
||
|
|
margin-top: 70px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.container {
|
||
|
|
padding: 18px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.container h2 {
|
||
|
|
font-size: 18px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* STACK INPUTS */
|
||
|
|
.form-group.inline-2 {
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
button {
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= SMALL MOBILE ================= */
|
||
|
|
@media (max-width: 420px) {
|
||
|
|
|
||
|
|
form input,
|
||
|
|
form select {
|
||
|
|
font-size: 13px;
|
||
|
|
padding: 9px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.container h2 {
|
||
|
|
font-size: 17px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ================= LARGE SCREEN ================= */
|
||
|
|
@media (min-width: 1200px) {
|
||
|
|
|
||
|
|
.container {
|
||
|
|
max-width: 1300px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.container h2 {
|
||
|
|
font-size: 24px;
|
||
|
|
}
|
||
|
|
}
|