You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_django/static/styles/forms.css

249 lines
4.9 KiB
CSS

/* Basic form styling */
:root {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 16px;
font-weight: 600; /* Makes all text semi-bold by default */
line-height: 1.5;
}
form {
max-width: 600px;
margin: 20px auto;
padding: 20px;
/*background-color: #ead9cb;; !* Add this line *!*/
border-radius: 8px; /* Optional: for better appearance */
/*box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);*/
border: 1px solid #a57d52;
/*border-width: 3px;*/
/*border-color: #00aaff;*/
}
/* Label styling */
label {
display: block;
margin-bottom: 2px;
/*font-weight: 500;*/
color: #a57d52;
}
/* Input field styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
width: 100%;
padding: 8px;
margin-bottom: 0px;
border: 1px solid #a57d52;
border-radius: 4px;
box-sizing: border-box;
font-family: "Noto Sans", sans-serif;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
font-size: 1.1rem;
font-variation-settings:
"wdth" 100;
}
/* Submit button styling */
button[type="submit"] {
background-color: #a57d52;
color: white;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
/*margin-top: 20px;*/
}
button[type="submit"]:hover {
background-color: #a67744;
}
/* Error messages */
.errorlist {
color: #dc3545;
list-style: none;
padding: 0;
margin: 5px 0;
font-size: 0.9em;
}
/* Help text */
.helptext {
color: #666;
font-size: 0.9em;
margin-bottom: 10px;
display: block;
}
.card {
margin-top: 24px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.card-header {
padding: 16px 24px;
border-bottom: 1px solid #ddd;
}
.card-header h3 {
margin: 0;
font-size: 18px;
font-weight: bold;
color: #333;
}
.card-body {
padding: 15px;
overflow-x: auto; /* Allow horizontal scroll if table is wide */
}
.table-container {
overflow-x: auto;
}
/*table {*/
/* width: 100%;*/
/* border-collapse: collapse;*/
/*}*/
/*thead {*/
/* background-color: #f9f9f9;*/
/*}*/
/*th, td {*/
/* padding: 12px 16px;*/
/* text-align: left;*/
/* font-size: 14px;*/
/*}*/
/*th {*/
/* font-weight: bold;*/
/* text-transform: uppercase;*/
/* color: #666;*/
/* border-bottom: 1px solid #ddd;*/
/*}*/
/*tbody tr {*/
/* border-bottom: 1px solid #eee;*/
/*}*/
/* Rename dashboard-table to match exactly with your HTML */
/*.dashboard-table,*/
/*table {*/
/* border-collapse: separate;*/
/* border-spacing: 0;*/
/* margin: 10px auto;*/
/* width: 100%;*/
/* border: 1px solid #E1C6A8; !* Make border more visible *!*/
/* border-radius: 10px;*/
/* overflow: hidden;*/
/* line-height: 1.2;*/
/*}*/
/*!* Keep header and footer styles *!*/
/*thead {*/
/* background-color: #E1C6A8;*/
/*}*/
/*tfoot {*/
/* background-color: #E1C6A8;*/
/*}*/
/*!* Update cell styles *!*/
/*.dashboard-table th,*/
/*.dashboard-table td,*/
/*table th,*/
/*table td {*/
/* padding: 8px;*/
/* text-align: center;*/
/* border-right: 1px solid #E1C6A8; !* Add vertical borders *!*/
/* border-bottom: 1px solid #E1C6A8; !* Add horizontal borders *!*/
/*}*/
/*!* Remove right border from last cell in each row *!*/
/*.dashboard-table th:last-child,*/
/*.dashboard-table td:last-child,*/
/*table th:last-child,*/
/*table td:last-child {*/
/* border-right: none;*/
/*}*/
/*!* Remove bottom border from last row cells *!*/
/*.dashboard-table tr:last-child td,*/
/*table tr:last-child td {*/
/* border-bottom: none;*/
/*}*/
/*.footer-container {*/
/* display: flex;*/
/* justify-content: space-between;*/
/* align-items: center;*/
/*}*/
/*.footer-left button,*/
/*.footer-right button {*/
/* margin: 0 3px;*/
/* padding: 3px 6px;*/
/* font-size: 12px;*/
/*}*/
/*.page-number {*/
/* margin: 0 10px;*/
/* font-weight: bold;*/
/*}*/
/*.status {*/
/* display: inline-block;*/
/* padding: 4px 8px;*/
/* font-size: 12px;*/
/* font-weight: bold;*/
/* border-radius: 12px;*/
/* background-color: #e0f0ff;*/
/* color: #0066cc;*/
/*}*/
/*.actions button {*/
/* background: none;*/
/* border: none;*/
/* color: #0066cc;*/
/* font-size: 14px;*/
/* cursor: pointer;*/
/* margin-right: 10px;*/
/*}*/
/*.actions button:hover {*/
/* color: #004999;*/
/*}*/
/*.actions button:last-child {*/
/* color: #cc0000;*/
/* margin-right: 0;*/
/*}*/
/*.actions button:last-child:hover {*/
/* color: #990000;*/
/*}*/
/* Update dashboard card styles */
.dashboard-card {
margin: 15px;
background-color: white;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
overflow: hidden; /* Ensure content doesn't overflow */
}